VPNs
IPsec
Encryption at the IP layer: IKE agrees keys between two gateways, ESP carries their traffic encrypted.
IPsec encrypts packets at the IP layer, between two gateways joining two sites. IKEv2 (UDP 500, or 4500 behind NAT) authenticates the gateways and agrees keys. ESP (IP protocol 50) in tunnel mode carries whole packets, headers included, so the path sees only that the two sites talk. Both ends must agree which traffic goes in (the traffic selectors). The added headers shrink the MTU by 50 to 70 bytes.
Read next
- VPN Packets wrapped, encrypted, in UDP to a VPN server, which unwraps them on the far side.
- Remote access vs site-to-site A VPN joins one device to a network (remote access) or two networks through their gateways (site-to-site).
- NAT traversal Getting traffic through NAT: wrapping protocols in UDP, whose ports NAT can map, and punching holes between peers.
- MTU The largest IP packet a link carries in one frame: 1500 bytes on ordinary Ethernet.
- MSS clamping A router lowering the MSS in TCP SYNs to what its small link carries.
- GRE tunnel A virtual link between two routers: each packet is wrapped in a new IP header between their public addresses.
- SD-WAN A WAN built as encrypted tunnels over several links at once, run from one controller that steers each application onto the best path.