Networking · Virtualization & Overlays › IPsec
Site-to-Site VPN
Cheat sheet · https://pcornel.dk/topic.php?topic=1336
Answer
A site-to-site VPN connects whole networks through an encrypted tunnel between two gateways, so hosts communicate without VPN software of their own.
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 session— site tunnelsshow crypto ipsec sa peer <ip>— countersping <remote-lan-ip> source <local-lan-if>— interesting traffic
Commands
show crypto ikev2 sadebug crypto ikev2show crypto ipsec sa peer 203.0.113.2show ip interface briefping <remote-lan> size 1400 df-bitip mtuip tcp adjust-mss
Verify in this order
IKE → IPsec SAs → encrypted LAN-to-LAN traffic
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=1336