Pcornel
Security

IPsec

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

Back to the Topic

Answer

IPsec secures IP traffic with authentication and encryption, commonly for site-to-site and remote-access VPNs. IKE negotiates keys and security associations, and ESP protects the packets.

Remember

  • IKE negotiates; ESP protects packets.
  • Both ends must match proposals and traffic selectors.
  • NAT requires NAT-T over UDP 4500.

First checks

  • ip xfrm state; ip xfrm policy — Linux IPsec
  • show crypto ipsec sa — Cisco
  • swanctl --list-sas — strongSwan

Verify in this order

SPD policy → IKE → SA → ESP

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=4653

Confirmation

Confirm action

Continue?