Skip to content

Commit 8aa3671

Browse files
committed
Initial commit
1 parent a15567a commit 8aa3671

File tree

1 file changed

+25
-0
lines changed
  • src/content/docs/cloudflare-one/policies/gateway

1 file changed

+25
-0
lines changed

src/content/docs/cloudflare-one/policies/gateway/proxy.mdx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,31 @@ You can forward [HTTP](/cloudflare-one/policies/gateway/initial-setup/http/) and
1111

1212
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.
1313

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+
1439
## Proxy protocols
1540

1641
Gateway supports proxying TCP, UDP, and ICMP traffic.

0 commit comments

Comments
 (0)