Pcornel
Security · Security Troubleshooting

VPN Failure

Cheat sheet · https://pcornel.dk/topic.php?topic=5136

Back to the Topic

Answer

VPN Failure isolates whether remote-access or site-to-site secure connectivity fails at underlay reachability, peer identity, IKE/TLS negotiation, tunnel establishment, policy selectors, routing/NAT or protected application traffic.

Remember

  • VPN connected ≠ protected application reachable; routing, selectors, NAT, firewall and remote service state still matter.
  • Peer reachable ≠ IKE/TLS negotiation healthy.
  • Security association present ≠ useful traffic matches or traverses it.
  • Rekey/reconnect success ≠ root cause fixed if stale state or intermittent dependency returns.

First checks

  • show crypto ikev2 sa / swanctl --list-sas — tunnel state
  • VPN client logs — error
  • Gateway auth logs (RADIUS/IdP) — user auth

Commands

show crypto session
Display VPN crypto sessions and their status.

Verify in this order

client → gateway auth → tunnel → routes

Where it usually breaks

First mismatch in signal/report → evidence preservation → scoping/analysis → containment → eradication → recovery → validation/lessons learned; preserve identity/policy/pre-state before mutation.

VPN Failure troubleshooting/evidence map

BoundaryHealthy evidenceSuspicious evidence
Scope / baselineFailing case and known-good comparison are reproducibleSymptom changes across users, devices, paths or time without explanation
Policy / decisionAuthoritative state explains the expected decisionStale, conflicting or unexpected policy/context changes the decision
Enforcement / telemetryRuntime action and same-window telemetry agreeDecision, enforcement and logs disagree or coverage is missing
VerificationOriginal test and security regression both passTemporary recovery, bypass or adjacent regression remains

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5136

Confirmation

Confirm action

Continue?