WAN Connector IPsec Tunnels, Health Checks, Routing, and Validation
How third-party routers and SD-WAN appliances connect to Cloudflare WAN with IPsec or GRE, tunnel health checks, policy routing, and verification.
This page summarizes Cloudflare documentation on Cloudflare WAN (formerly Magic WAN) third-party connectors: linking customer routers, firewalls, and SD-WAN edges to Cloudflare’s anycast network over IPsec or GRE, steering east-west (site-to-site) and optional north-south (Internet via Secure Web Gateway) traffic. Vendor-specific CLI and UI steps live in linked tutorials below; the patterns here repeat across those guides.
Cloudflare WAN connectors: what you are building
Section titled “Cloudflare WAN connectors: what you are building”A Cloudflare WAN connector is the combination of tunnels you define in the Cloudflare dashboard plus configuration on your customer premise equipment (CPE). Cloudflare documents partners such as Aruba EdgeConnect, Cisco IOS XE, Fortinet FortiGate, HPE Juniper SRX, Palo Alto Networks NGFW, and many others.
Cloudflare partners with Aruba’s EdgeConnect SD-WAN solution to provide users with an integrated solution. The EdgeConnect appliances manage subnets associated with branch offices or retail locations. Anycast tunnels are set up between the EdgeConnect appliances and Cloudflare to securely route traffic.
— Cloudflare, Aruba EdgeConnect Enterprise
Most on-prem guides assume two parallel tunnels to two Cloudflare anycast endpoints for resilience. Traffic models commonly described are:
| Traffic model | Typical use |
|---|---|
| East-west | Private subnets at one site reach private subnets at another site through Cloudflare WAN |
| North-south | Private subnet traffic exits to the Internet through Secure Web Gateway (needs Cloudflare Zero Trust where noted) |
Note that north-south traffic routed through Cloudflare’s Secure Web Gateway is an optional add-on feature set and requires a Cloudflare Zero Trust account.
— Cloudflare, Aruba EdgeConnect Enterprise
Cloud-only paths (for example Google Cloud VPN, Microsoft Azure VPN Gateway, Alibaba Cloud VPN Gateway) follow the same WAN side tunnel objects but use the cloud provider’s VPN instead of a branch CPE.
Prerequisites: dashboard tunnels, leased IPs, and /31 inner addresses
Section titled “Prerequisites: dashboard tunnels, leased IPs, and /31 inner addresses”Before editing CPE configuration, Cloudflare’s third-party guides expect WAN-side setup to be largely complete.
Common prerequisites on Aruba EdgeConnect include:
- A contract that includes Cloudflare WAN and, when using Gateway, Secure Web Gateway
- Two Cloudflare endpoints (anycast IP addresses), available in Leased IPs
- A private static /31 IP pair per tunnel, on a subnet separate from LAN subnets behind the appliance
Firewall guides such as HPE Juniper Networking SRX and Palo Alto Networks NGFW also assume you already created IPsec tunnels and static routes in the dashboard, obtained each tunnel’s local identifier (FQDN/hostname) and pre-shared key, and plan MSS clamping for flows inside the tunnels.
Cisco Meraki MX (static routing) adds platform-specific notes: Unified Routing dataplane for Automatic Return Routing, non-standard fields for IPsec tunnel health checks on MX, and topology choices (east-west only, Internet via Gateway, or all traffic via WAN and Gateway).
IPsec and GRE on CPE: route-based tunnels and who initiates IKE
Section titled “IPsec and GRE on CPE: route-based tunnels and who initiates IKE”Virtual tunnel interfaces and IKEv2
Section titled “Virtual tunnel interfaces and IKEv2”Most CPE guides use route-based IPsec: virtual tunnel interfaces (VTI), IKEv2, and routing—not policy-based VPN selectors—to decide what crosses the tunnel.
IPsec tunnels leverage a route-based site-to-site Virtual Private Network (VPN) model. This model relies on the use of virtual tunnel interfaces and routing to define the traffic that flows across the IPsec tunnels.
— Cloudflare, Fortinet
On HPE Juniper SRX, Cloudflare stresses tunnel initiation direction:
Enabling establish-tunnels-immediately ensures the SRX is always the tunnel initiator. This is crucial as Cloudflare will never initiate the IPsec tunnel.
— Cloudflare, HPE Juniper Networking SRX Series Firewalls
SRX examples bind tunnels to st0 units, place them in a cloudflare security zone with ping allowed for health checks, and use dashboard-supplied IKE hostname identities.
GRE versus IPsec by vendor
Section titled “GRE versus IPsec by vendor”| Vendor / product | GRE to Cloudflare WAN | IPsec to Cloudflare WAN |
|---|---|---|
| Aruba EdgeConnect | Documented (with overlay breakout for health ICMP) | Documented |
| Cisco SD-WAN (vManage SIG) | Validated example (GRE) | — |
| Sophos Firewall | CLI system gre tunnel add … |
XFRM interface + SD-WAN routes |
| SonicWall | Not supported | Required |
You can connect your SonicWall appliance through IPsec tunnels to Cloudflare WAN. Generic Routing Encapsulation (GRE) is not supported on SonicWall.
— Cloudflare, SonicWall
Tunnel health checks: ICMP breakout, asymmetric routing, and bidirectional replies
Section titled “Tunnel health checks: ICMP breakout, asymmetric routing, and bidirectional replies”Cloudflare WAN depends on tunnel health checks. Mis-routing health ICMP through the tunnel itself is a frequent integration failure.
Send health ICMP directly from the WAN, not inside the tunnel
Section titled “Send health ICMP directly from the WAN, not inside the tunnel”On EdgeConnect, health checks are ICMP replies encapsulated in GRE or IPsec, sourced from the WAN interface toward Cloudflare:
Cloudflare’s tunnel health checks are ping reply packets encapsulated in GRE packets. The source IP is the EdgeConnect WAN interface used to establish a tunnel, and the destination IP is Cloudflare servers. These packets need to be sent directly from the WAN interface and not through the established tunnels.
— Cloudflare, Aruba EdgeConnect Enterprise
The documented fix is a breakout Business Intent Overlay matching Cloudflare public IPs and ICMP, ordered before overlays that send traffic into Cloudflare_GRE or Cloudflare_IPsec.
FortiGate: asymmetric ICMP and policy routing per tunnel
Section titled “FortiGate: asymmetric ICMP and policy routing per tunnel”FortiGate requires asymmetric routing for ICMP:
Enable asymmetric routing for ICMP to ensure health checks work as expected. This option is required. Otherwise, the tunnel health checks, which are critical for proper Cloudflare WAN functionality, will not work as designed.
— Cloudflare, Fortinet
FortiGate also uses policy-based routing so bidirectional health-check replies egress the same IPsec tunnel they ingress:
Add policy-based routing rules to ensure traffic associated with bidirectional health checks received over an IPsec tunnel returns across the same tunnel.
— Cloudflare, Fortinet
SonicWall documents Enable Asymmetric Route Support on the VPN tunnel interface for the same reason.
Cisco IOS XE: IP SLA is separate from Cloudflare checks
Section titled “Cisco IOS XE: IP SLA is separate from Cloudflare checks”When using Policy-Based Routing into a VRF with equal-cost defaults across two VTIs, Cisco warns that VTI line protocol can stay up when IKE/IPsec has failed:
On Cisco IOS XE, a Virtual Tunnel Interface (VTI) remains up/up based on its tunnel source and destination configuration, not on the state of the underlying IKE/IPsec security associations.
— Cloudflare, Cisco IOS XE
IP SLA icmp-echo probes with track objects remove failed paths from ECMP in the VRF. That mechanism is complementary—not a substitute—for Cloudflare’s own bidirectional checks on the Cloudflare side.
Policy routing and static routes: what to send over Cloudflare WAN
Section titled “Policy routing and static routes: what to send over Cloudflare WAN”Not every deployment sends all traffic to Cloudflare. Options include:
- Full default via tunnels (simpler when the CPE can use Cloudflare as the global default)
- Selective steering with PBR, filter-based forwarding, SD-WAN business policies, or UniFi policy table routes
Cisco IOS XE explains that PBR alone does not ECMP; steering matched LAN traffic into a VRF with two equal-cost 0.0.0.0/0 routes via each tunnel enables per-flow load sharing, while the global default can remain for underlay and management.
Juniper SRX uses filter-based forwarding: a firewall filter on the LAN ingress sends a source subnet to routing instance CF_WAN_RI with next hops on the Cloudflare side of each st0 link.
Palo Alto Networks NGFW uses Policy Based Forwarding from the trust zone to tunnel interfaces and remote VTI next hops, with a reminder to exempt PBF traffic from local NAT because Gateway handles NAT for Internet-bound flows.
SD-WAN platforms steer by policy instead of CLI static routes—for example Aruba EdgeConnect Business Intent Overlays, Arista VeloCloud Business Policy toward a Non SD-WAN Destination / cloud security service, Ubiquiti UniFi Policy Table route policies, and Sophos SD-WAN routes.
East-west meshing often needs matched static routes on Cloudflare and on the CPE/Orchestrator. EdgeConnect’s guide defines dashboard static routes to LAN subnets with next hop set to the tunnel’s private endpoint, and Orchestrator routes to remote site subnets via the GRE or IPsec service.
East-west and Secure Web Gateway: how to validate traffic
Section titled “East-west and Secure Web Gateway: how to validate traffic”North-south through Secure Web Gateway
Section titled “North-south through Secure Web Gateway”From a host on a steered subnet, HTTP requests through Gateway should show Cloudflare Zero Trust signaling:
You can validate the request went through Gateway with the presence of the Cf-Team response header, or by looking at the logs in the dashboard under Logs > Gateway > HTTP.
— Cloudflare, Aruba EdgeConnect Enterprise
East-west through Cloudflare WAN
Section titled “East-west through Cloudflare WAN”Traceroute between clients on different private subnets should traverse the local EdgeConnect LAN IP, the Cloudflare private tunnel endpoint, the remote EdgeConnect, and the remote host—the path documented for GRE and IPsec examples in Aruba EdgeConnect.
On FortiGate, ping remote /31 tunnel endpoint IPs after configuring virtual tunnel interfaces (Fortinet). On SRX, verify IKE SAs and ping Cloudflare-side VTIs (Juniper).
Third-party connector tutorials by vendor
Section titled “Third-party connector tutorials by vendor”Use the guide that matches your CPE. Cloudflare publishes parallel paths under Cloudflare WAN third-party configuration (and equivalent Cloudflare One connector URLs for several vendors).
| CPE / platform | Documentation |
|---|---|
| Aruba EdgeConnect Enterprise | Aruba EdgeConnect |
| Arista VeloCloud | Velocloud |
| Cisco IOS XE | Cisco IOS XE |
| Cisco Meraki MX (static routing) | Cisco Meraki MX |
| Cisco SD-WAN (vManage / Catalyst 8000) | Cisco SD-WAN |
| Fortinet FortiGate | Fortinet |
| Furukawa FITELnet | FITELnet |
| HPE Juniper SRX | Juniper SRX |
| Palo Alto NGFW | Palo Alto |
| pfSense | pfSense |
| SonicWall | SonicWall |
| Sophos Firewall | Sophos Firewall |
| strongSwan | strongSwan |
| Ubiquiti UniFi Gateway | Ubiquiti |
| VyOS | VyOS |
| Yamaha RTX | Yamaha RTX Router |
| Alibaba Cloud | Alibaba Cloud VPN Gateway |
| Google Cloud | Google Cloud VPN |
| Microsoft Azure | Azure VPN Gateway, Azure Virtual WAN |
| Oracle Cloud | Oracle Cloud |
After tunnels are up, filtering and analytics may use Cloudflare Network Firewall (referenced from EdgeConnect’s policy section) and Secure Web Gateway policy docs for north-south HTTP controls.
Common mistakes
Section titled “Common mistakes”- Using LAN subnets for tunnel /31 inner pairs instead of separate private ranges (Aruba EdgeConnect prerequisites).
- Omitting ICMP breakout on SD-WAN overlays, so health checks loop through the tunnel (Aruba EdgeConnect).
- Expecting Cloudflare to initiate IKE on SRX without
establish-tunnels immediatelyor traffic to trigger bring-up (Juniper). - Treating multiple PBR next hops on IOS XE as ECMP instead of failover (Cisco IOS XE).
- Skipping FortiGate
asymroute-icmpor symmetric PBR for health reply traffic (Fortinet). - Assuming GRE on SonicWall (SonicWall).
How to check this on your site
Section titled “How to check this on your site”-
In the Cloudflare dashboard, open Connectors and confirm both IPsec or GRE tunnels show healthy status; compare local identifier, anycast peers, and inner /31 pairs with your CPE config (Fortinet, Juniper).
-
From the CPE, ping the Cloudflare-side tunnel endpoint on each VTI (for example FortiGate
execute pingtoremote-ip, or SRXpingto169.254.250.0/.2sourcing your local VTI). -
For north-south via Gateway, run
curlfrom a steered subnet and confirm aCf-Teamresponse header or Logs > Gateway > HTTP entries (Aruba EdgeConnect). -
For east-west, run traceroute or ping between hosts on remote LAN subnets and confirm hops through the Cloudflare private tunnel endpoint (Aruba EdgeConnect).
-
You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact sentence you are asking about.