IPsec Architecture
Cheat sheet · https://pcornel.dk/topic.php?topic=4654
Answer
IPsec architecture combines IKE for authentication and key exchange, ESP or AH for packet protection, security associations stored per direction, and transport or tunnel mode depending on what is protected.
Remember
- IPsec combines IKE, ESP/AH and security associations.
- Tunnel mode suits gateways; transport mode suits hosts.
- Policies decide which traffic is protected.
First checks
ip xfrm policy— SPD (Linux)ip xfrm state— SADswanctl --list-conns— configuration
Verify in this order
packet → SPD lookup → 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=4654