Use it when configuring, checking or troubleshooting IKE in VPN.
IKE
Internet Key Exchange authenticates IPsec peers, negotiates cryptographic parameters, establishes IKE and child security associations, derives keys and manages liveness, rekey and deletion; current deployments should distinguish IKEv2 from deprecated IKEv1.
1. IKE negotiates keys and SAs (UDP 500/4500).
2. IKEv2 preferred.
3. Authentication: certificates or PSK.
4. Proposals must match.
5. Logs show NO_PROPOSAL_CHOSEN, AUTH_FAILED etc.
IKE_SA_INIT → IKE_AUTH → child SA
Context & applicabilityCommon mistakes · platform/version boundaries
An IKE SA shows authenticated key-management state under selected parameters, but it does not show application traffic is selected or delivered.
Suspicious evidence: version mismatch, identity mismatch, no proposal, PSK lookup error, certificate trust, clock, NAT-T, fragmentation, liveness timeout or child selector rejection.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
underlay/ports → version/proposal/key exchange → peer authentication → IKE SA → child-SA selectors/keys → liveness/rekey/delete
Step 2 Branching troubleshooting Narrow the fault
Concrete boundaries: peer transport → IKE negotiation/auth → child SA/selectors → route/policy → encrypt/decrypt counters → remote route/policy → protected workload → return.
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.
- IKE ≠ ESP data transport.
- Proposal selected ≠ peer identity accepted or child SA installed.
- Tunnel or SA up ≠ protected application traffic succeeds.
- Cryptographic negotiation ≠ correct identity, selector, route or application outcome.
show crypto ikev2 sa detailed— IKE SA detailsswanctl --list-conns— configured connectionsjournalctl -u strongswan --since -1h— IKE logs
ReferenceWhy it matters1 section · depth on demand
How it works in operation
VPN establishment separates peer reachability, IKE proposal/authentication, child-SA/traffic-selector negotiation, route/policy selection and encrypted data-plane counters. IKE established does not show the expected child SA exists, selectors match the original traffic or the remote network has a return route.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
An IKE SA shows authenticated key-management state under selected parameters, but it does not show application traffic is selected or delivered.
In depth
IKE (Internet Key Exchange) is the control protocol of IPsec: it authenticates peers, negotiates cryptographic algorithms and generates the keys used by ESP. Without a working IKE negotiation no IPsec traffic flows.
| Version | Notes |
|---|---|
| IKEv1 | Legacy; main/aggressive mode + quick mode |
| IKEv2 | Current standard; simpler, NAT-T and DPD built in, EAP support |
Troubleshooting IKE:
show crypto ikev2 sa detailed
show crypto ikev2 stats
debug crypto ikev2 ! lab or short use only
swanctl --log # strongSwan
Typical failures: no proposal chosen (algorithm mismatch), authentication failed (PSK or certificate), identity mismatch, or UDP 500/4500 blocked.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in VPN → IKE. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc4301 · confidence 94%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.
Quick lookup tables
VPN → IKE proof map
Fast scope, effective-policy, runtime-evidence and closure boundaries for VPN → IKE.
| Boundary | Establish | Does not establish |
|---|---|---|
| Scope and intent | Exact subjects, destinations, application, direction, trust zone and expected decision | Does not prove effective path, identity, cryptography or enforcement |
| Effective control state | Resolved rule/policy, session/SA, identity/posture, translation and selected path | Object/config presence does not prove a match or packet outcome |
| Runtime evidence | Correlated client, authenticator/firewall/VPN, AAA and destination observations for one flow/time | A single log or success does not prove every packet, peer, path or failover state |
| Closure | Original allowed/denied operation behaves as intended and regression/failure tests pass | Administrative commit or tunnel-up state alone is not closure |