WAN IPsec Tunnel Endpoints, IKE Identity, and Third-Party CPE
How to plan Cloudflare WAN IPsec tunnels, IKE IDs, crypto settings, health checks, and third-party firewall integration limits.
This page summarizes Cloudflare documentation for connecting site routers and firewalls to Cloudflare WAN (and related Magic Transit / Cloudflare One WAN connectors) over route-based IPsec tunnels. Most clusters of operational questions boil down to: what to enter in the dashboard before tunnel creation, which IKE identity format to use, how redundant tunnels and health checks behave, and where a specific vendor diverges from Cloudflare’s default crypto recommendations.
IPsec tunnel endpoints: what to prepare before creation
Section titled “IPsec tunnel endpoints: what to prepare before creation”Before creating a tunnel, Cloudflare expects you to gather endpoint addressing that will stay stable for the life of the tunnel pair.
Before creating a tunnel, make sure you have the following information:
Cloudflare endpoint address: The anycast IP address assigned to your account. You can find it in the Cloudflare dashboard under Address Space > Leased IPs ↗︎. Customer endpoint IP: A public Internet routable IP address outside of the prefixes Cloudflare will advertise on your behalf (typically provided by your ISP). Not required if using Cloudflare Network Interconnect or for IPsec tunnels (unless your router uses an IKE ID of type ID_IPV4_ADDR). Interface address: A /31 (recommended) or /30 subnet from RFC 1918 private IP space (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) or 169.254.240.0/20(this address space is also a link-local address).
— Cloudflare, Configure tunnel endpoints
The interface address is the point-to-point link inside the tunnel (for example 169.254.250.0/31 on tunnel 1 and 169.254.250.2/31 on tunnel 2 in Cisco’s reference designs). Cloudflare only supports IKEv2 for IPsec; see supported cipher lists via the same guide’s pointer to IPsec ciphers.
On VyOS, Cloudflare’s template stresses that tunnel interface IPs must be a /31 or /30 pair on private space, the customer side initiates IKE, and the Cloudflare side peer is an anycast address from Leased IPs—see VyOS third-party integration.
IKE identity formats: how Cloudflare matches your tunnel
Section titled “IKE identity formats: how Cloudflare matches your tunnel”Your on-prem device must present an IKE ID Cloudflare can map to the tunnel object. Supported types include RFC822, FQDN, KEY_ID, and sometimes IPv4 address.
Cloudflare WAN supports the following IKE ID types for IPsec:
Request for Comments (RFC) name ID_RFC822_ADDR
Format:
ipsec@<TUNNEL_ID>.<ACCOUNT_ID>.ipsec.cloudflare.comRFC name ID_FQDN
Format:
<TUNNEL_ID>.<ACCOUNT_ID>.ipsec.cloudflare.comRFC name ID_KEY_ID
Format:
<ACCOUNT_ID>_<TUNNEL_ID>Additionally, Cloudflare supports the IKE ID type of ID_IPV4_ADDR if the following two conditions are met:
You set the IPsec tunnel’s customer_endpoint value. The combination of cloudflare_endpoint and customer_endpoint is unique among the customer’s IPsec tunnels.
— Cloudflare, GRE and IPsec tunnels
Vendor guides typically show ID_FQDN as the local IKE identity after tunnel creation (for example bf6c493d03….ipsec.cloudflare.com on Cisco IOS XE and Palo Alto Networks NGFW).
Each tunnel also gets its own pre-shared key after creation—do not reuse keys across tunnels.
IKEv2 and IPsec crypto: Cloudflare defaults vs platform limits
Section titled “IKEv2 and IPsec crypto: Cloudflare defaults vs platform limits”Most tested third-party guides in this cluster use route-based VPN, IKEv2, pre-shared key auth, AES-256-CBC, SHA-256, and DH Group 20 for Phase 1 and Phase 2, with anti-replay protection disabled on the Cloudflare side where the dashboard allows it. Examples: HPE Juniper Networking SRX, Palo Alto Networks NGFW, Sophos Firewall (Phase 1/2 DH group 20, AES256, SHA2-256).
| Aspect | Typical Cloudflare WAN recommendation | Notable vendor exception |
|---|---|---|
| IKE version | IKEv2 only | Same across guides |
| Phase 1 DH group | Group 20 | Cisco Meraki MX: Group 14 only (Meraki static routing) |
| Anti-replay | Disabled (Cloudflare) | Meraki MX: cannot disable; may drop packets on jittery links |
| Redundant tunnels | Active/Active on many platforms | Meraki MX: Active/Standby for Non-Meraki VPN peers |
| PQC (IKE) | Optional ML-KEM 768 on IOS XE | Add/remove pqc mlkem768 in IKEv2 proposal (Cisco IOS XE) |
Cisco IOS XE documents optional post-quantum negotiation:
Simply add/remove pqc mlkem768 from the proposal to enable/disable Post-Quantum Cryptography.
— Cloudflare, Cisco IOS XE
Furukawa Electric FITELnet uses IKEv2 with group 20, AES-256, SHA-256, and explicitly disables IPsec replay checking on the router to align with Cloudflare—see FITELnet.
For a full vendor list (Alibaba, AWS, Check Point, Fortinet, pfSense, strongSwan, Velocloud, Yamaha RTX, and others), use Cloudflare’s third-party integration index rather than copying entire CLI trees here.
Redundant IPsec tunnels: dashboard fields that affect operations
Section titled “Redundant IPsec tunnels: dashboard fields that affect operations”Reference designs use two tunnels (CF_WAN_TUN_01 / CF_WAN_TUN_02) to separate anycast endpoints (for example 162.159.135.1 and 172.64.135.1) with matching /31 interface addresses. Common dashboard attributes across guides include:
- Tunnel health checks: enabled; Type
Request(not bare ICMP Reply where stateful firewalls drop replies). - Direction:
Bidirectional. - Turn on replay protection:
Falsewhere Cloudflare recommends it (except Meraki, which forces replay on). - Automatic return routing:
Truefor many topologies; disabled on Cloudflare tunnels for Meraki “east/west only” private traffic—see below.
On Cisco IOS XE, establishing tunnels follows a fixed object model: virtual tunnel interfaces, IKEv2 proposal/policy/keyring/profile per tunnel, IPsec profile per tunnel, optional nat force-encap when IKE must use UDP 4500 from the start, then policy-based routing and IP SLA—outlined in Cisco IOS XE.
Velocloud is configured as Generic IKEv2 Router (Route Based VPN) with Active/Hot-Standby or Active/Standby tunnel mode (Velocloud).
Tunnel health checks on Cisco Meraki MX (no VTIs)
Section titled “Tunnel health checks on Cisco Meraki MX (no VTIs)”Meraki is the most restriction-heavy integration in this cluster because virtual tunnel interfaces cannot be configured on MX appliances.
Virtual Tunnel Interfaces (VTIs) cannot be configured on MX appliances.
— Cloudflare, Cisco Meraki MX (static routing)
Meraki-specific Cloudflare tunnel settings
Section titled “Meraki-specific Cloudflare tunnel settings”For MX, Cloudflare documents non-standard tunnel fields: health check Rate Low, Target Custom, Target address set to the MX LAN interface IP (example 192.168.125.1), Turn on replay protection True, and firmware MX 19.2.7+ for route-based third-party IPsec.
Ensure tunnel health checks for both CF_WAN_TUN_01 and CF_WAN_TUN_02 are configured with the following settings:
Enabled True Type Request — A stateful firewall drops ICMP Reply probes. Direction Bidirectional Target Custom — The MX platform does not support VTIs, so probes must target an alternate IP. Target address 192.168.125.1 — Send probes to the LAN interface on the MX appliance.
— Cloudflare, Cisco Meraki MX (static routing)
Authorize Meraki tunnel monitor source in Cloudflare
Section titled “Authorize Meraki tunnel monitor source in Cloudflare”Meraki sends tunnel monitor probes from 192.0.2.3/32 (TEST-NET-1). That prefix is not RFC 1918, so Cloudflare’s Unified Routing dataplane must allow it:
Contact Cloudflare to request assistance with adding the internal_authorized_prefixes option to your account, with 192.0.2.3/32 included.
— Cloudflare, Cisco Meraki MX (static routing)
East/west routing and private subnets on MX
Section titled “East/west routing and private subnets on MX”For east/west traffic only (private sites via Cloudflare WAN, Internet breakout local), Meraki private subnets must include remote site prefixes and the Cloudflare tunnel /31 health-check prefixes (169.254.250.0/31, 169.254.250.2/31). Cloudflare static routes point at each tunnel for the MX LAN prefix (example 192.168.125.0/24). Automatic Return Routing on both Cloudflare tunnels should be disabled for this topology—details and expected route table rows are in the Meraki static routing guide.
Meraki organization tags and traffic steering
Section titled “Meraki organization tags and traffic steering”Non-Meraki VPN definitions are organization-wide objects applied via Network Tags. Cloudflare warns against sharing one VPN object across MX units with different LAN subnets:
If multiple MX appliances with different private subnets inherit the same Non-Meraki VPN object, they all attempt to establish tunnels using identical identifiers. This causes flapping or unpredictable routing behavior.
— Cloudflare, Cisco Meraki MX (static routing)
Source-Based Default Routing on Meraki cannot be used with Non-Meraki VPN endpoints including Cloudflare WAN—use private subnet definitions on IPsec peers instead.
Failover is Active/Standby: traffic uses the primary tunnel until tunnel monitoring fails; Cloudflare notes outages of roughly a few seconds, with rare events of 15–20 seconds (Meraki static routing).
pfSense addressing pattern
Section titled “pfSense addressing pattern”pfSense documents paired /31 interface addresses, customer endpoint on documentation space 203.0.113.254, and static routes on Cloudflare pointing LAN prefixes to each tunnel as next hop—useful when validating addressing before touching production anycast IPs.
Common mistakes and platform caveats
Section titled “Common mistakes and platform caveats”- Wrong interface prefix — auto-generated cloud prefixes outside Cloudflare’s allowed ranges break tunnels (configure tunnel endpoints).
- IKE ID mismatch — local FQDN must match the value issued for that tunnel; Palo Alto’s guide reminds you to pull PSK and local ID from the dashboard (Palo Alto).
- Health check type — using ICMP Reply-style checks behind stateful firewalls instead of Request probes (Meraki guide).
- Meraki MSS — dashboard may not expose MSS clamping for third-party VPN; Cloudflare notes contacting Meraki support for ~1360 backend MSS (Meraki implementation notes).
- NAT on customer WAN — IOS XE
nat force-encaponly when you must force UDP 4500 instead of standard NAT-T discovery (Cisco IOS XE NAT-T section). - Check Point tunnel visibility — list tunnels with
vpn tu tlistper Check Point (troubleshooting only in this cluster). - Unrelated Meraki client issue — Cloudflare WARP clients behind Meraki may need Statistical-P2P disabled on the MX; that is a client limitation, not IPsec WAN (known limitations).
How to check this on your site
Section titled “How to check this on your site”- In the Cloudflare dashboard, open Address Space → Leased IPs and confirm each tunnel’s Cloudflare endpoint and customer endpoint match the IKE gateway peer and local-address on your CPE, per Configure tunnel endpoints.
- After tunnel creation, verify the CPE local IKE ID (FQDN format) and pre-shared key match the values shown for that tunnel in Cloudflare—compare against GRE and IPsec tunnels ID rules if authentication fails.
- On the CPE, confirm IKEv2 is up and route-based selectors or VTIs list the correct
/31interface addresses (IOS XE tunnel interfaces, Juniperst0, Palo Alto tunnel interfaces, or Meraki private subnets including health-check prefixes)—use the vendor page from third-party integration. - For Cisco Meraki MX, check Security & SD-WAN → Monitor → Route table for routes via
cf-wan-tun-01/cf-wan-tun-02and tunnel monitor health, and confirm Cloudflare authorized192.0.2.3/32for probes (Meraki static routing). - 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 does not match your tunnel behavior or the linked Cloudflare documentation, email yimasynthetic@gmail.com with the page URL and the exact statement you think is wrong or unclear.