You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/cloudflare-one/policies/gateway/proxy.mdx
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,31 @@ You can forward [HTTP](/cloudflare-one/policies/gateway/initial-setup/http/) and
11
11
12
12
The Gateway proxy is required for filtering HTTP and network traffic via the WARP client in Gateway with WARP mode. To proxy HTTP traffic without deploying the WARP client, you can configure [PAC files](/cloudflare-one/connections/connect-devices/agentless/pac-files/) on your devices.
13
13
14
+
## Happy Eyeballs
15
+
16
+
When connections are proxied through Gateway they follow the below order.
17
+
18
+
When Gateway proxies traffic, it uses the [Happy Eyeballs algorithm](https://datatracker.ietf.org/doc/html/rfc6555) in the following order:
19
+
20
+
1. Receive a TCP SYN from the client
21
+
2. Send a TCP SYN to the origin
22
+
3. If the origin sends SYN/ACK back, then we finish the TCP handshakes of both 1 and 2 above
23
+
4. If all of that is successful, both TCP connections are passed to Gateway that runs the firewall (possibly consuming data from connection 1)
24
+
5. If the firewall allows, then Gateway proxies the connection 1 to connection 2 bidirectionally
25
+
26
+
```mermaid
27
+
flowchart TD
28
+
A[Client sends TCP SYN to Gateway] --> B[Gateway sends TCP SYN to Origin]
29
+
B --> C{{Origin responds with TCP SYN/ACK?}}
30
+
C -->|Yes| D[Complete handshake with Origin]
31
+
C -->|No| E[Connection fails]
32
+
D --> F[Complete handshake with Client]
33
+
F --> G[Firewall inspects traffic from Client]
34
+
G --> H{{Firewall allows connection?}}
35
+
H -->|Yes| I[Gateway proxies data bidirectionally]
36
+
H -->|No| J[Connection blocked by Firewall]
37
+
```
38
+
14
39
## Proxy protocols
15
40
16
41
Gateway supports proxying TCP, UDP, and ICMP traffic.
0 commit comments