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/partials/networking-services/magic-wan/zero-trust/tunnel.mdx
+15-10Lines changed: 15 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,25 +8,29 @@ params:
8
8
9
9
import { Render } from"~/components"
10
10
11
-
Magic WAN can be used together with <ahref="/cloudflare-one/networks/connectors/cloudflare-tunnel/">Cloudflare Tunnel</a> for easy access between your networks and applications.
11
+
Magic WAN can work together with <ahref="/cloudflare-one/networks/connectors/cloudflare-tunnel/">Cloudflare Tunnel</a> to provide easy access between your networks and applications.
12
12
13
-
By default, TCP, UDP, and ICMP traffic routed through Magic WAN tunnels and destined to routes behind Cloudflare Tunnel will be proxied/filtered through <ahref={props.gatewayURL}>Cloudflare Gateway</a>.
13
+
By default, TCP, UDP, and ICMP traffic routed through Magic WAN tunnels and destined to routes behind Cloudflare Tunnel is proxied and filtered through <ahref={props.gatewayURL}>Cloudflare Gateway</a>.
14
14
15
-
## Cloudflare Tunnel and Magic Networking Route interactions
15
+
## Route evaluation and precedence
16
16
17
-
<ahref="/cloudflare-one/networks/connectors/cloudflare-tunnel/private-net/cloudflared/">Private network routes</a> are evaluated together across Cloudflare Tunnel and Magic Networking routing tables. If traffic matches either a Cloudflare Tunnel route (in any virtual network) or a Magic Networking route, then the matched route will determine the next-hop.
17
+
<ahref="/cloudflare-one/networks/connectors/cloudflare-tunnel/private-net/cloudflared/">Private network routes</a> are evaluated together across the Cloudflare Tunnel and Magic Networking routing tables. If traffic matches either a Cloudflare Tunnel route (in any virtual network) or a Magic Networking route, the matched route determines the nexthop.
18
18
19
-
To design solutions where a destination IP may match both a Cloudflare Tunnel private network route and a Magic Networking route, consult your solutions engineer for guidance.
19
+
When a destination IP matches both a Cloudflare Tunnel private network route and a Magic Networking route, Cloudflare Tunnel takes precedence. This happens whenever a `cloudflared` tunnel CIDR matches a packet, regardless of prefix length. For example, a `cloudflared` tunnel with prefix `10.1.2.0/24` takes precedence over a static route configured to `10.1.2.4/32`, and Cloudflare sends packets over the tunnel instead of a GRE tunnel.
20
20
21
-
## Test `cloudflared` tunnel integration
21
+
For complex deployments where you need overlapping routes in both Cloudflare Tunnel and Magic Networking, consult your Solutions Engineering team for guidance.
22
+
23
+
For more information about private network routes with `cloudflared`, refer to <ahref="/cloudflare-one/networks/connectors/cloudflare-tunnel/private-net/cloudflared/">Connect with cloudflared</a>.
22
24
23
-
To check if a `cloudflared` tunnel is working properly with your Magic WAN connection, open a browser from a host behind your customer premise equipment, and browse to the `cloudflared` tunnel endpoint.
25
+
## Test `cloudflared` tunnel integration
24
26
25
-
For example, imagine you have a Cloudflare Tunnel set up with a private network CIDR of `10.1.2.3/32`, a static route defined in Magic WAN for `10.1.2.3/24`, and the device you are trying to connect to is a web server. You can test connectivity to the web server by using a browser to load `https://10.1.2.3`. If the page loads correctly, your Cloudflare Tunnel is working properly. In this scenario, you have overlapping routes defined for Cloudflare Tunnel and Magic WAN.
27
+
To verify that a `cloudflared` tunnel works correctly with your Magic WAN connection:
26
28
27
-
As mentioned above, if you have overlapping routes in your Magic WAN and Cloudflare Tunnel routing configurations, Cloudflare Tunnel will take precedence. This happens whenever a `cloudflared` tunnel CIDR matches a packet, regardless of prefix length. For example, a `cloudflared` tunnel with prefix `10.1.2.0/24` will take precedence over a static route configured to `10.1.2.4/32`, sending packets over a GRE tunnel.
29
+
1. From a host behind your customer premises equipment, open a browser.
30
+
2. Browse to an IP address or hostname that is reachable through a Cloudflare Tunnel private network route, such as the example destination `10.1.2.3`.
31
+
3. Confirm that the application loads as expected.
28
32
29
-
For more information, refer to <ahref="/cloudflare-one/networks/connectors/cloudflare-tunnel/private-net/cloudflared/">Connect private networks</a>.
33
+
If the application loads correctly, Cloudflare Tunnel is handling the traffic as configured.
30
34
31
35
<Render
32
36
file="traceroute"
@@ -37,3 +41,4 @@ For more information, refer to <a href="/cloudflare-one/networks/connectors/clou
0 commit comments