Skip to content

Commit f742388

Browse files
committed
DNS config for WARP Connector
1 parent 6bcbd2c commit f742388

File tree

5 files changed

+57
-16
lines changed

5 files changed

+57
-16
lines changed

src/content/docs/cloudflare-one/connections/connect-networks/private-net/warp-connector/site-to-internet.mdx

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ This guide covers how to connect a private network to the Internet using WARP Co
3535

3636
## 3. Route traffic from subnet to WARP Connector
3737

38-
Depending on where you installed the WARP Connector, you may need to configure other devices on the subnet to route outbound requests through WARP Connector.
38+
The WARP Connector host will automatically forward DNS and network traffic to Cloudflare. Depending on where you installed the WARP Connector, you may need to configure other devices on the subnet to route outbound requests through WARP Connector.
3939

4040
### Option 1: Default gateway
4141

@@ -48,7 +48,7 @@ Depending on where you installed the WARP Connector, you may need to configure o
4848
product="cloudflare-one"
4949
/>
5050

51-
#### Add route to router
51+
#### Add IP route to router
5252

5353
For example, for all traffic from the subnet to egress through WARP Connector, add a rule on the router that routes `0.0.0.0` to the WARP Connector host machine (`10.0.0.100`).
5454

@@ -57,24 +57,36 @@ For example, for all traffic from the subnet to egress through WARP Connector, a
5757
product="cloudflare-one"
5858
/>
5959

60+
#### Configure DNS resolver on router
61+
62+
<Render
63+
file="tunnel/warp-connector-alternate-gateway-dns"
64+
product="cloudflare-one"
65+
/>
66+
6067
### Option 3: Intermediate gateway
6168

6269
<Render
6370
file="tunnel/warp-connector-intermediate-gateway"
6471
product="cloudflare-one"
6572
/>
6673

67-
#### Add route to devices
74+
#### Add IP route to devices
6875

6976
<Render
7077
file="tunnel/warp-connector-route-all-traffic"
7178
product="cloudflare-one"
7279
/>
7380

74-
#### Verify routes
75-
7681
<Render file="tunnel/warp-connector-verify-routes" product="cloudflare-one" />
7782

83+
#### Configure DNS resolver on devices
84+
85+
<Render
86+
file="tunnel/warp-connector-intermediate-gateway-dns"
87+
product="cloudflare-one"
88+
/>
89+
7890
## 4. Test the WARP Connector
7991

8092
You can now test if traffic from your subnet routes through Cloudflare. For example,

src/content/docs/cloudflare-one/connections/connect-networks/private-net/warp-connector/site-to-site.mdx

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ In this example, we will create a WARP Connector for subnet `10.0.0.0/24` and in
3838

3939
<Render file="tunnel/warp-connector-device-profile" product="cloudflare-one" />
4040

41-
## 3. Route traffic from WARP Connector to subnet
41+
## 3. Route traffic between WARP Connector and Cloudflare
4242

4343
1. In [Zero Trust](https://one.dash.cloudflare.com), go to **Networks** > **Routes**.
4444
2. Select **Create route**.
@@ -65,9 +65,17 @@ The WARP Connector will now forward inbound requests to devices on the subnet.
6565
6666
```
6767

68+
### DNS filtering
69+
If you would like to filter private DNS queries using Cloudflare Gateway, check [Split Tunnels](/cloudflare-one/connections/connect-devices/warp/configure-warp/route-traffic/split-tunnels/) and ensure that the following IPs route through WARP Connector:
70+
- Internal DNS resolver IP
71+
- <GlossaryTooltip term="initial resolved IP">Initial resolved IP</GlossaryTooltip> CGNAT range:
72+
<Render file="gateway/egress-selector-cgnat-ips" product="cloudflare-one"/>
73+
74+
When you resolve DNS queries from WARP Connector through Gateway, Gateway will log the queries with the private source IP. You can use the private source IP to create [resolver policies](/cloudflare-one/policies/gateway/resolver-policies/) for queries intended for [internal DNS records](/cloudflare-one/policies/gateway/resolver-policies/#internal-dns).
75+
6876
## 4. Route traffic from subnet to WARP Connector
6977

70-
Depending on where you installed the WARP Connector, you may need to configure other devices on the subnet to route outbound requests through WARP Connector.
78+
The WARP Connector host will automatically forward DNS and network traffic to Cloudflare. Depending on where you installed the WARP Connector, you may need to configure other devices on the subnet to route outbound requests through WARP Connector.
7179

7280
```mermaid
7381
flowchart LR
@@ -94,7 +102,7 @@ Depending on where you installed the WARP Connector, you may need to configure o
94102
product="cloudflare-one"
95103
/>
96104

97-
#### Add route to router
105+
#### Add IP route to router
98106

99107
For example, for devices on subnet `10.0.0.0/24` to reach applications behind subnet `192.168.1.0/24`, add a rule on the router that routes `192.168.1.0/24` to the WARP Connector host machine (`10.0.0.100`).
100108

@@ -103,14 +111,21 @@ For example, for devices on subnet `10.0.0.0/24` to reach applications behind su
103111
product="cloudflare-one"
104112
/>
105113

114+
#### Configure DNS resolver on router
115+
116+
<Render
117+
file="tunnel/warp-connector-alternate-gateway-dns"
118+
product="cloudflare-one"
119+
/>
120+
106121
### Option 3: Intermediate gateway
107122

108123
<Render
109124
file="tunnel/warp-connector-intermediate-gateway"
110125
product="cloudflare-one"
111126
/>
112127

113-
#### Add route to devices
128+
#### Add IP route to devices
114129

115130
<Render
116131
file="tunnel/warp-connector-route-all-traffic"
@@ -141,10 +156,15 @@ route /p add <DESTINATION-IP> mask 255.255.255.255 <WARP-CONNECTOR-IP>
141156

142157
</TabItem> </Tabs>
143158

144-
#### Verify routes
145-
146159
<Render file="tunnel/warp-connector-verify-routes" product="cloudflare-one" />
147160

161+
#### Configure DNS resolver on devices
162+
163+
<Render
164+
file="tunnel/warp-connector-intermediate-gateway-dns"
165+
product="cloudflare-one"
166+
/>
167+
148168
## 5. Install another WARP Connector
149169

150170
Repeat steps 1, 3, and 4 above to install an additional WARP Connector on subnet `192.168.1.0/24`. The device profile created in Step 2 will apply to all WARP Connectors.
@@ -183,10 +203,11 @@ You can now test the connection between the two subnets. For example, on the `10
183203
```
184204

185205
:::note
186-
187206
If you are testing with curl using private hostnames, add the `--ipv4` flag to your curl commands.
188207
:::
189208

209+
Your [Gateway activity logs](/cloudflare-one/insights/logs/gateway-logs/) will show traffic associated with the email `warp_connector@<your-team-name>.cloudflareaccess.com`.
210+
190211
[^1]:
191212
<Render
192213
file="tunnel/warp-connector-linux-packages"

src/content/docs/cloudflare-one/connections/connect-networks/private-net/warp-connector/user-to-site.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Depending on where you installed the WARP Connector, you may need to configure o
5959
product="cloudflare-one"
6060
/>
6161

62-
#### Add route to router
62+
#### Add IP route to router
6363

6464
`100.96.0.0/12` is the default CIDR for all user devices running the [WARP client](/cloudflare-one/connections/connect-devices/warp/). On your router, add a rule that routes the destination IP `100.96.0.0/12` to the WARP Connector host machine (`10.0.0.100`).
6565

@@ -75,7 +75,7 @@ Depending on where you installed the WARP Connector, you may need to configure o
7575
product="cloudflare-one"
7676
/>
7777

78-
#### Add route to devices
78+
#### Add IP route to devices
7979

8080
To route all <GlossaryTooltip term="CGNAT IP">CGNAT IP</GlossaryTooltip> traffic through WARP Connector:
8181

@@ -101,8 +101,6 @@ route /p add 100.96.0.0/12 mask 255.255.255.255 <WARP-CONNECTOR-IP>
101101

102102
</TabItem> </Tabs>
103103

104-
#### Verify routes
105-
106104
<Render file="tunnel/warp-connector-verify-routes" product="cloudflare-one" />
107105

108106
## 5. Test the WARP Connector
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
{}
3+
---
4+
5+
To forward DNS traffic from the subnet to Cloudflare Gateway, your router should point DNS queries to either WARP Connector's [local DNS proxy](/cloudflare-one/connections/connect-devices/warp/configure-warp/route-traffic/warp-architecture/#dns-traffic) (for example, `10.0.0.100:53`) or directly to the Gateway DNS resolver IPs (`172.64.36.1` and `172.64.36.2`).
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
{}
3+
---
4+
5+
To filter DNS traffic with Cloudflare Gateway, the DNS resolver on your device should point to either WARP Connector's [local DNS proxy](/cloudflare-one/connections/connect-devices/warp/configure-warp/route-traffic/warp-architecture/#dns-traffic) (for example, `10.0.0.4:53`) or directly to the Gateway DNS resolver IPs (`172.64.36.1` and `172.64.36.2`).

0 commit comments

Comments
 (0)