Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

VPN Troubleshooting

Direct answer

VPN troubleshooting checks, in order: reachability between the peers and the needed ports through NAT, IKE negotiation and authentication, the IPsec SAs and traffic selectors or routes, then MTU, DNS and whether the application traffic is allowed through.

When to use this

Use it as the entry point when something on VPN fails and you need to find the failing layer.

First 30 seconds

1. Check: reachability (UDP 500/4500, ESP), proposals, authentication, traffic selectors/ACLs, NAT-T, routing, MTU.

2. Read IKE logs on both sides.

3. One-way counters = routing/firewall issue.

4. Rekey failures: lifetimes/DPD.

5. Fix and retest.

Operational verification

reachability → IKE → auth → child SA → routing

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

A successful tunnel probe shows its client, peer, route and flow context, but it does not show every subnet, user, application, failover node or rekey event.

Suspicious evidence: wrong peer identity, no proposal, IKEv1 legacy, certificate/PSK, selector mismatch, missing return route, NAT-T, replay, PMTU, split DNS, rekey or application failure mislabeled VPN.

Platform / version applicability
Network security
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformNetwork security · Cisco IOS / IOS XE
Key commandshow crypto session
Scope / prerequisiteUse it as the entry point when something on VPN fails and you need to find the failing layer.
Show · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
Verification

Show Commands

Read-only and diagnostic commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

8 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

symptom/time → underlay/DNS/ports/NAT → IKE/TLS negotiation/auth → SAs/session → selectors/routes/NAT → encapsulation/MTU → remote policy/application → retest

Step 2 Verify VPN repair with negotiated tunnel state, protected-route selection and original workload traffic Verify boundary

Verify VPN by establishing a fresh session and expect tunnel state Up or Established with the intended peer identity, assigned address and negotiated policy. Confirm the protected destination selects the VPN route and that encryption/encapsulation counters increase in both directions during one controlled request, then repeat the original application test. An Up VPN tunnel shows control-plane negotiation completed, but it does not show the protected route, remote firewall, DNS or application path is healthy.

Step 3 Known-good, broken and when it is fixed Verify boundary

Known-good requires the intended SA/tunnel to establish with the expected peer and cryptographic policy, controlled protected traffic to increment both directions, and the original application to complete over the VPN. Confirm non-protected traffic follows its intended path. Tunnel 'up' shows only negotiated control state, but it does not show selectors, remote routing or application reachability.

Step 4 Known-good, broken and when it is fixed Verify boundary

Verification for VPN → VPN Troubleshooting must discriminate known-good from broken/suspicious state. With show crypto session, known-good is: the intended peer/session is established and matches the expected protected flow. Broken/suspicious is: session is absent, down, negotiating repeatedly or bound to unexpected peer/parameters. Read back the same target after the minimal approved change, then inspect IKE/IPsec SAs and counters, routing/selectors and an original application flow.

Step 5 Branch VPN failures at peer reachability, authentication, negotiation, routing and application flow Narrow the fault

If the VPN client or peer cannot reach the gateway, verify underlay DNS, routing and transport port first. If the gateway responds but authentication fails, inspect the exact principal, certificate or MFA result. If authentication succeeds but tunnel negotiation fails, compare proposals, versions and policy selectors. If the tunnel is Up but traffic fails, query assigned routes, selector counters and NAT and capture both directions. If protected packets pass but the application remains unavailable, branch to DNS, firewall or backend service instead of rebuilding the VPN.

Step 6 Native failure isolation and next-check logic Narrow the fault

Separate tunnel establishment from data-plane forwarding. Show peer reachability and IKE/authentication first, then inspect negotiated proposals/SAs, local/remote selectors, route to the protected prefix, NAT exemptions and encrypt/decrypt counters while generating one controlled flow. A rising encrypt counter with no decrypt usually shifts attention to the peer/return path; no counter movement suggests selector/routing/policy mismatch. Avoid deleting all SAs before recording why negotiation or data forwarding failed.

Step 7 Observation-driven troubleshooting tree Narrow the fault

Troubleshoot VPN → VPN Troubleshooting from one exact failing target, revision/input and timestamp. Capture show crypto session before mutation, then branch by the first divergent observation: no IKE session, inspect peer reachability, UDP 500/4500 and authentication; IKE is up but no IPsec SA, inspect selectors/proposals; SAs are up but counters do not move, inspect routing/interesting traffic/NAT; encapsulation increases without decapsulation, investigate remote policy/return path; tunnel passes traffic but app fails, move to service layer. Typical failure signatures include peer timeout, PSK/certificate mismatch, proposal mismatch, expired cert, wrong proxy IDs/selectors, NAT exemption failure, stale SA, asymmetric routing, MTU blackhole or tunnel established with no usable protected traffic.

Step 8 Failure signatures, dependencies and operational guardrails Narrow the fault

Failure-signature and guardrail reference for VPN → VPN Troubleshooting: Peer timeout, PSK/certificate mismatch, proposal mismatch, expired cert, wrong proxy IDs/selectors, NAT exemption failure, stale SA, asymmetric routing, MTU blackhole or tunnel established with no usable protected traffic. Operational guardrail: Session state is only one layer; show crypto session cannot show every selector, return path or application transaction without counters and the original protected workload. Dependencies that can mimic the same symptom are Internet/WAN reachability, DNS, certificates/PSKs, time, proposal/policy compatibility, NAT traversal, routing/VRF, ACL/firewall, MTU/MSS and remote protected network availability.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Tunnel down ≠ Internet path failure automatically.
  • Tunnel up ≠ traffic selectors, routes or applications healthy.
  • Tunnel or SA up ≠ protected application traffic succeeds.
  • Cryptographic negotiation ≠ correct identity, selector, route or application outcome.
Key checks
  • show crypto ikev2 sa / show crypto ipsec sa — state and counters
  • swanctl --log — live IKE log
  • tcpdump -ni <if> udp port 500 or udp port 4500 or esp — packets
ReferenceWhy it matters1 section · depth on demand

VPN service state spans peer reachability, authentication, tunnel negotiation, routes and protected traffic

VPN troubleshooting must distinguish the control exchange that creates a tunnel from the data-plane state that carries protected traffic. Peer reachability, credentials or certificates, proposal compatibility, virtual addresses, routes, split-tunnel policy and NAT can fail independently. A VPN interface may report Connected while no useful route exists, and a healthy route can point into a tunnel with expired security state. Record peer identity, assigned address, negotiated parameters, route table and traffic selectors before reconnecting the VPN.

ReferenceHow it works2 sections · depth on demand

How it works

VPN troubleshooting spans underlay reachability, peer identity/authentication, key exchange, security associations, traffic selectors/routes, encapsulation, NAT traversal and the protected application's return path. Site-to-site and remote-access VPNs differ in client posture/address assignment, but both can establish a control-plane tunnel while carrying no useful data because selectors, routes or policy do not match the real traffic.

How it works

VPN → VPN Troubleshooting owns peer reachability, IKE negotiation and authentication, IPsec security associations, crypto proposals and lifetimes, traffic selectors, routing, NAT exemption, security policy and protected application path. Execution mechanics: The peers first establish IKE state and authenticate, negotiate child/IPsec SAs with matching algorithms and selectors, install security state, then interesting traffic must route into the tunnel and return through matching policy without NAT or ACL asymmetry. Keep adjacent dependencies separate: Internet/WAN reachability, DNS, certificates/PSKs, time, proposal/policy compatibility, NAT traversal, routing/VRF, ACL/firewall, MTU/MSS and remote protected network availability. The mapped read surface show crypto session exposes VPN peer/session state and negotiated security association context.

ReferenceImportant terms & boundaries1 section · depth on demand

What this shows and what it does not

A successful tunnel probe shows its client, peer, route and flow context, but it does not show every subnet, user, application, failover node or rekey event.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docNetwork security current

Authoritative/upstream documentation reviewed for bounded claims in VPN → VPN Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc4301 · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
IPsec troubleshootingVPN tunnel diagnosticsremote access VPN failure
Embedded reference data

Quick lookup tables

VPN → VPN Troubleshooting proof map

Fast scope, effective-policy, runtime-evidence and closure boundaries for VPN → VPN Troubleshooting.

BoundaryEstablishDoes not establish
Scope and intentExact subjects, destinations, application, direction, trust zone and expected decisionDoes not prove effective path, identity, cryptography or enforcement
Effective control stateResolved rule/policy, session/SA, identity/posture, translation and selected pathObject/config presence does not prove a match or packet outcome
Runtime evidenceCorrelated client, authenticator/firewall/VPN, AAA and destination observations for one flow/timeA single log or success does not prove every packet, peer, path or failover state
ClosureOriginal allowed/denied operation behaves as intended and regression/failure tests passAdministrative commit or tunnel-up state alone is not closure
Confirmation

Confirm action

Continue?