Pcornel
Networking · Virtualization & Overlays › IPsec

IPsec SA

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

Back to the Topic

Answer

An IPsec security association (SA) is a one-way agreement on keys, algorithms and SPI for protecting traffic; each tunnel has a pair, visible with show crypto ipsec sa.

Remember

  • IKE SA and IPsec child SA are separate evidence boundaries
  • Proxy identities/selectors must agree at both peers
  • ESP commonly carries protected data; NAT traversal can encapsulate it in UDP 4500
  • Encaps and decaps counters must be interpreted with generated interesting traffic and the return path.

First checks

  • show crypto ipsec sa — SAs with SPIs, lifetimes, counters
  • show crypto session detail — session state

Commands

show crypto ipsec sa

Verify in this order

IKE → child SAs (in/out) → encrypt/decrypt → rekey

Where it usually breaks

underlay IP/transport → control/session registration → route/endpoint distribution → policy/segment → encapsulation/tunnel state → decapsulation/egress → return path

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

Confirmation

Confirm action

Continue?