Pcornel
Security · IPsec

IKE Phase 2

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

Back to the Topic

Answer

IKE Phase 2 (quick mode) negotiates the IPsec SAs that protect actual traffic — encryption, integrity, lifetimes, PFS and the traffic selectors or proxy IDs that must match on both ends.

Remember

  • Phase 2 negotiates the IPsec SAs.
  • Traffic selectors (proxy IDs) must match.
  • PFS settings must match.

First checks

  • show crypto ipsec sa — child SAs
  • ip xfrm state — Linux
  • Phase 2 proposal and selectors — ESP algorithms, subnets

Verify in this order

IKE SA → child SA proposal + selectors → IPsec SAs

Where it usually breaks

First mismatch in endpoint/identity → path/reachability → policy selection → enforcement/session → protected flow → telemetry/detection; preserve identity/policy/pre-state before mutation.

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

Confirmation

Confirm action

Continue?