Pcornel
Networking · Virtualization & Overlays › IPsec

Site-to-Site VPN

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

Back to the Topic

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 tunnels
  • show crypto ipsec sa peer <ip> — counters
  • ping <remote-lan-ip> source <local-lan-if> — interesting traffic

Commands

show crypto ikev2 sa
debug crypto ikev2
show crypto ipsec sa peer 203.0.113.2
show ip interface brief
ping <remote-lan> size 1400 df-bit
ip mtu
ip 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

Confirmation

Confirm action

Continue?