VPN Failure
Cheat sheet · https://pcornel.dk/topic.php?topic=5136
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
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Scope / baseline | Failing case and known-good comparison are reproducible | Symptom changes across users, devices, paths or time without explanation |
| Policy / decision | Authoritative state explains the expected decision | Stale, conflicting or unexpected policy/context changes the decision |
| Enforcement / telemetry | Runtime action and same-window telemetry agree | Decision, enforcement and logs disagree or coverage is missing |
| Verification | Original test and security regression both pass | Temporary 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