WAN IPsec Tunnel Health Checks and Troubleshooting
Diagnose IPsec tunnel down states, health check failures, IKE negotiation errors, and rekey flapping on Cloudflare WAN connectors.
This page summarizes Cloudflare WAN documentation on fixing IPsec connectors (tunnels): when the dashboard shows Down or Degraded, when IKE never completes, when health checks fail but user traffic still flows, and how to confirm state on common edge firewalls and routers. For tunnel endpoint setup issues, Configure tunnel endpoints points health problems to Troubleshoot tunnel health and establishment problems to Troubleshoot IPsec tunnels.
Tunnel health symptoms: match what you see to a first step
Section titled “Tunnel health symptoms: match what you see to a first step”Cloudflare’s Troubleshoot tunnel health guide starts with a symptom table. Use it when you are unsure whether the problem is crypto, probes, rekey, or the path to Cloudflare.
| Symptom | Most likely cause | First action |
|---|---|---|
| Tunnel shows Down, never becomes healthy | Configuration mismatch or firewall blocking IKE | Check IPsec parameters and firewall rules; see establishment failures below |
| Dashboard shows “100% degraded” for some colos | Normal state indicator, not packet loss | Check whether affected colos carry your traffic |
| Tunnel flaps between healthy and unhealthy | Anti-replay protection or rekey disruption | Disable anti-replay on the router; review rekey settings |
| Health checks fail but traffic flows normally | Stateful firewall dropping health check probes | Change health check type from Reply to Request |
| Health checks fail on policy-based VPN tunnels | Reply probes fall outside traffic selectors | Use Request-style health checks with a loopback target |
| All tunnels degraded or down in one region | Network path issue | Check ISP connectivity; traceroute or MTR toward Cloudflare |
| All tunnels degraded or down globally | Issue at your network edge | Check the tunnel endpoint router and upstream connectivity |
Use the following table to match your symptom to the most likely cause and first action:
— Cloudflare, Troubleshoot tunnel health
A separate but related case: the tunnel shows IKE established while health checks still fail. Private origin troubleshooting attributes that pattern to blocked ICMP on the path or a misconfigured health check—allow ICMP between tunnel endpoints and confirm direction is bidirectional with type reply when that mode is in use.
IPsec tunnel establishment: tunnel Down and no traffic
Section titled “IPsec tunnel establishment: tunnel Down and no traffic”When the connector never becomes healthy and no traffic passes, Troubleshoot IPsec tunnels lists typical symptoms: tunnel status Down, no throughput, and IKE negotiation errors or retransmissions in endpoint logs.
Firewall rules: permit IKE, NAT-T, and ESP
Section titled “Firewall rules: permit IKE, NAT-T, and ESP”Your edge firewall may block traffic required for tunnel setup. Cloudflare documents these requirements on Troubleshoot IPsec tunnels:
- UDP port
500(IKE) - UDP port
4500(IKE NAT-T) - IP protocol
50(ESP)
Ubiquiti third-party guidance adds verifying that the ISP is not blocking UDP 500/4500 when the tunnel stays down despite matching settings.
Crypto parameter mismatch and “no proposal chosen”
Section titled “Crypto parameter mismatch and “no proposal chosen””IKE negotiation fails when Phase 1 (IKE) or Phase 2 (IPsec) parameters do not match between your endpoint and Cloudflare. Logs often show no proposal chosen.
IKE negotiation fails when Phase 1 (IKE) or Phase 2 (IPsec) parameters do not match between your tunnel endpoint and Cloudflare. Common symptoms include “no proposal chosen” errors in your device logs.
— Cloudflare, Troubleshoot IPsec tunnels
Third-party pages repeat the same check—for example HPE Juniper SRX and Palo Alto Networks NGFW advise confirming Phase 1 and Phase 2 negotiated successfully and scanning logs for no proposal chosen.
Troubleshoot tunnel health lists supported Phase 1 and Phase 2 values (IKEv2 only; encryption AES-GCM-16 or AES-CBC-256; SHA-256/384/512; DH groups 14–16, 19, 20). Align your router to those values before chasing other causes.
Pre-shared key (PSK) mismatch in Phase 1
Section titled “Pre-shared key (PSK) mismatch in Phase 1”Authentication failures in Phase 1 often mean a PSK mismatch. Cloudflare’s remediation on Troubleshoot IPsec tunnels:
- Open Connectors and select the tunnel.
- Generate new PSK.
- Copy the new PSK exactly—no extra spaces or characters.
- Update the tunnel endpoint with the new PSK.
Cisco Meraki MX notes that Cloudflare IPsec logs (Log Explorer or Logpush) can surface authentication failures from a wrong pre-shared key, alongside unsupported Phase 1/Phase 2 proposals and incorrect IKE identities.
IKE ID format: Cloudflare uses FQDN
Section titled “IKE ID format: Cloudflare uses FQDN”Even with a correct PSK, authentication can fail if the endpoint expects an IP address as peer identity while Cloudflare presents an FQDN.
Cloudflare uses FQDN format for the IKE ID. If your tunnel endpoint expects a different peer identity format (such as an IP address), authentication fails even when the PSK is correct.
— Cloudflare, Troubleshoot IPsec tunnels
Configure the endpoint to accept an FQDN peer identity; the FQDN appears in tunnel details in the Cloudflare dashboard. Configure tunnel endpoints routes establishment issues to Troubleshoot with IPsec logs via Logpush analysis described there and in GRE and IPsec tunnels.
Tunnel health checks: Down in the dashboard while IPsec looks fine
Section titled “Tunnel health checks: Down in the dashboard while IPsec looks fine”Health checks versus user traffic
Section titled “Health checks versus user traffic”You may see IKE complete, user traffic still traversing the tunnel, and the dashboard showing Down, Degraded, or 100% health-check failure. Troubleshoot tunnel health describes symptoms where the dashboard is unhealthy but connectivity works; the likely cause is health probes dropped by a stateful firewall—first action is changing health check type from Reply to Request.
SonicWall shows configuring checks via API (direction: bidirectional, type: request, rate: low) and notes that health checks may take time to stabilize after changes.
Standby tunnel showing 100% failure (expected on Meraki)
Section titled “Standby tunnel showing 100% failure (expected on Meraki)”On Cisco Meraki MX with static routing, Cloudflare tunnel health for the standby path often shows 100% failure on the inactive tunnel so traffic steers only through the active tunnel:
Cloudflare tunnel health checks indicate 100% failure on the tunnel marked as standby. This ensures traffic is only steered through the active tunnel.
— Cloudflare, Cisco Meraki MX (static routing)
Confirm active/standby in the Meraki Dashboard under Security & SD-WAN → Monitor → VPN Status, filtering 2 IPsec peers.
Health checks blocked by Cloudflare Gateway policy
Section titled “Health checks blocked by Cloudflare Gateway policy”When both tunnels show IPsec up but Health check red on Meraki, Cisco Meraki MX advises checking Cloudflare Gateway logs and policy for blocked HTTP requests from the monitor source (example 192.0.2.3/32) and adding a rule to allow tunnel monitoring HTTP if needed.
ICMP and probe targets on UniFi and VTI designs
Section titled “ICMP and probe targets on UniFi and VTI designs”Ubiquiti troubleshooting for failed health checks: allow ICMP from Cloudflare to the customer-side tunnel IP; the target should be the /31 interface IP, not the LAN gateway.
Juniper SRX and Palo Alto recommend ping from the CPE VTI toward Cloudflare VTI—for example tunnel 1: ping source 169.254.250.1 169.254.250.0.
IPsec rekey and tunnel flapping: periodic Degraded states
Section titled “IPsec rekey and tunnel flapping: periodic Degraded states”When the tunnel alternates healthy/unhealthy, loses packets intermittently, or degrades every few hours with successful rekey in logs, Troubleshoot IPsec tunnels ties that pattern to rekey: the endpoint initiates rekey; Cloudflare only responds; new SAs must propagate across Cloudflare’s network.
Cloudflare never initiates rekey — only responds. All rekey attempts must come from your tunnel endpoint. If your device receives a TEMPORARY_FAILURE response during rekey, configure Dead Peer Detection (DPD) with a “restart” action so the device re-establishes the IKE session automatically.
— Cloudflare, Troubleshoot IPsec tunnels
Mitigations from Troubleshoot tunnel health: DPD restart; longer SA lifetimes (often 8–24 hours IKE, 1–8 hours IPsec); lower health check rate on the connector; stagger lifetimes across multiple tunnels.
Tunnel health, BGP, and traffic steering
Section titled “Tunnel health, BGP, and traffic steering”With BGP over WAN, Traffic steering states that legacy tunnel health checks alongside BGP are required to judge reachability of a Cloudflare data center and that health checks modify route priorities for learned BGP routes.
Troubleshoot routing and BGP reinforces checking tunnel or CNI health when routes behave unexpectedly—degraded tunnels deprioritize paths. That guide’s quick checklist includes BGP Established, TCP 179 allowed, tunnel health, and static routes overriding BGP at equal priority. Deep BGP/CNI diagnosis stays in Troubleshoot routing and BGP; this page focuses on IPsec and health probes.
Failover validation on Cisco IOS XE
Section titled “Failover validation on Cisco IOS XE”Cisco IOS XE documents validating failover by shutting one tunnel interface or blocking ICMP on one path: within seconds the track goes Down, the route leaves CF_WAN_PBR_VRF, and the other tunnel carries LAN traffic until you restore the path. Track objects use delay down 3 up 3 with IP SLA to dampen brief loss.
Edge router diagnostics by vendor
Section titled “Edge router diagnostics by vendor”Run disruptive commands only in a maintenance window. Check Point warns that deleting SAs or enabling kernel debugging can affect production traffic.
| Vendor | What to run | Notes |
|---|---|---|
| Check Point | vpn tu, vpn tu del <PEER_IP> |
Prefer peer-specific delete; vpn tu del all hits every peer and remote-access users — Check Point |
| Cisco IOS XE | show crypto ikev2 sa detailed, clear crypto session remote <peer-ip> |
Tunnel shutdown / no shutdown also restarts — Cisco IOS XE |
| Cisco Meraki MX | Dashboard VPN Status | IPsec logs via Cloudflare Log Explorer / Logpush — Meraki static routing |
| Fortinet FortiGate | diagnose debug flow (filtered) |
High log volume; disable with diagnose debug disable (not Ctrl+C) — Fortinet |
| Juniper SRX | show ipsec security-associations, IKE/IPsec traceoptions |
restart ipsec-key-management forces reconnect — Juniper |
| Palo Alto NGFW | show vpn ike-sa, test vpn ipsec-sa tunnel … |
UI: Network → IPsec Tunnels; VPN filter ( subtype eq vpn ) — Palo Alto |
| Furukawa FITELnet | show crypto sa |
Counts IKE and child SAs — FITELnet |
| Yamaha RTX | show ipsec sa, show status tunnel |
Online status and IKE keepalive — Yamaha |
| Sophos SFOS | UI green IPsec / XFRM Connected; system gre tunnel show for GRE |
Connected at both ends but no flow: zones, back route on Cloudflare, tcpdump — Sophos Firewall |
Cloudflare’s generic collector list on Troubleshoot tunnel health includes IPsec SA, IKE SA, tunnel interface, and routing table commands (syntax varies by vendor).
Common mistakes
Section titled “Common mistakes”- Treating 100% degraded on unused colos or 100% failure on a Meraki standby tunnel as live packet loss.
- Leaving health checks as Reply behind a stateful firewall while production traffic still works.
- Using an IP address IKE ID on the router when Cloudflare presents an FQDN.
- Running
vpn tu del allor clearing all peers when only one Cloudflare peer changed. - Enabling FortiGate flow debug or Juniper
traceoptionson busy boxes without a plan to disable them promptly. - Ignoring Gateway HTTP policy when Meraki shows green IPsec but red Health check on both tunnels.
How to check this on your site
Section titled “How to check this on your site”-
In the Cloudflare dashboard, open Connectors and confirm each IPsec tunnel’s health state; for private origins, follow Check tunnel health on the setup page.
-
Map symptoms using Troubleshoot tunnel health (or the Cloudflare WAN troubleshooting hub) and, if IKE fails, Troubleshoot IPsec tunnels.
-
On the edge device, verify IKE/IPsec SAs with your vendor’s commands from the table above (for example Meraki VPN Status or
show crypto ikev2 sa detailedon IOS XE). -
If negotiation fails, review IPsec logs in Log Explorer or Logpush as described in Cisco Meraki MX (static routing) and Troubleshoot IPsec tunnels.
-
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 wording you are asking about.