Security
IPsec
Cheat sheet · https://pcornel.dk/topic.php?topic=4653
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 IPsecshow crypto ipsec sa— Ciscoswanctl --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