Skip to content

Commit

Permalink
[MWAN] WARP Connector breakout traffic (#17138)
Browse files Browse the repository at this point in the history
* added warp encapsulation partial

* added new warp info to pages

* reworked explainer

* refined text

* refined text
  • Loading branch information
marciocloudflare authored Sep 26, 2024
1 parent 6c06754 commit bfe134c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,7 @@ Take note of the `"id"` value for the application that want to delete.
```

</TabItem> </Tabs>

## WARP traffic

<Render file="connector/app-aware-policies/warp-traffic" />
22 changes: 13 additions & 9 deletions src/content/docs/magic-wan/zero-trust/warp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@ You must log out and log back in with at least one WARP device to ensure the con

<Render file="traceroute" />

## Double encapsulation

When a WARP user goes to a location (like an office) with a Magic WAN tunnel already set up, WARP traffic is doubly encapsulated — first by WARP and then by Magic WAN. This is unnecessary, since each on-ramp method provides full Zero Trust protection.

Since WARP traffic is already protected on its own, Cloudflare recommends that you set up Magic WAN to exclude WARP traffic, sending it to the Internet through regular connections.

To learn which IP addresses and UDP ports you should exclude to accomplish this, refer to [WARP ingress IP](/cloudflare-one/connections/connect-devices/warp/deployment/firewall/#warp-ingress-ip).

### WARP and Magic WAN Connector

<Render file="connector/app-aware-policies/warp-traffic" />

## Test WARP integration

Before testing, be sure to [configure domain fallback](/cloudflare-one/connections/connect-devices/warp/configure-warp/route-traffic/local-domains/#add-a-domain) for the server or service in WARP settings. This is needed because by default Cloudflare Zero Trust excludes common top level domains used for local resolution from being sent to Gateway for processing.
Expand All @@ -71,12 +83,4 @@ nslookup <SERVER_BEHIND_MAGIC_WAN>

This DNS lookup should return a valid IP address associated with the server or service you are testing for.

Next, test with a browser that you can connect to a service on the WAN by opening a webpage that is only accessible on the WAN. The server can be the same server used in the DNS lookup or another server in the WAN. Connecting using an IP address instead of a domain name should work.

## Double encapsulation

When a WARP user goes to a location (like an office) with a Magic WAN tunnel already set up, WARP traffic is doubly encapsulated - first by WARP and then by Magic WAN. This is unnecessary, since each on-ramp method provides full Zero Trust protection.

Since WARP traffic is already protected on its own, Cloudflare recommends that you set up Magic WAN to exclude WARP traffic, sending it to the Internet through regular connections.

To learn which IP addresses and UDP ports you should exclude to accomplish this, refer to [WARP ingress IP](/cloudflare-one/connections/connect-devices/warp/deployment/firewall/#warp-ingress-ip) and [WARP UDP ports](/cloudflare-one/connections/connect-devices/warp/deployment/firewall/#warp-ingress-ip).
Next, test with a browser that you can connect to a service on the WAN by opening a webpage that is only accessible on the WAN. The server can be the same server used in the DNS lookup or another server in the WAN. Connecting using an IP address instead of a domain name should work.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
{}
---

If you have Magic WAN Connector and WARP clients deployed in your premises, Magic WAN Connector automatically routes WARP traffic to the Internet rather than Magic WAN IPsec tunnels. This prevents traffic from being encapsulated twice.

You may need to configure your firewall to allow this new traffic. Make sure to allow the following IPs and ports:

- **Destination IPs**: `162.159.193.0/24`, `162.159.197.0/24`
- **Destination ports**: `443`, `500`, `1701`, `2408`, `4443`, `4500`, `8095`, `844`
Refer to [WARP with firewall](/cloudflare-one/connections/connect-devices/warp/deployment/firewall/) for more information on this topic.

0 comments on commit bfe134c

Please sign in to comment.