Security · IPsec
Encryption Algorithms
Cheat sheet · https://pcornel.dk/topic.php?topic=4661
Answer
IPsec encryption algorithms protect the data: use AES-GCM (128 or 256) or AES-CBC with a separate integrity algorithm. DES and 3DES are obsolete and should be disabled.
Remember
- Use AES-GCM, or AES-CBC with a separate integrity algorithm.
- DES and 3DES are obsolete.
- Both peers must match.
First checks
ip xfrm state | grep -E 'aead|enc'— algorithm in use- Proposal: AES-GCM-256 or AES-CBC-256 + SHA-256 — config
- Disallowed: DES, 3DES, NULL — audit
Verify in this order
proposal → negotiated cipher → encryption
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=4661