Security

Two common VPN access patterns

Switch between a gateway-to-gateway site tunnel and a remote user tunnel; both protect transport but still rely on routing and access policy.

Office A · 192.0.2.0/24Office B · 198.51.100.0/24lan-a ↔ site-aEncrypted tunnelEncrypted tunnelEncrypted tunnelEncrypted tunnelsite-b ↔ lan-bOffice A gateway192.0.2.1Office A gateway — 192.0.2.1Office A LAN192.0.2.0/24Office A LAN — 192.0.2.0/24Untrusted transitUntrusted transitOffice B gateway198.51.100.1Office B gateway — 198.51.100.1Office B LAN198.51.100.0/24Office B LAN — 198.51.100.0/24
Legend

Current step

Gateways establish a peer tunnel

Each gateway authenticates the other and protects selected traffic across the transit network.

The tunnel endpoints authenticate each other and protect traffic in transit. A VPN does not by itself decide which applications or hosts should be reachable.

Documentation example: addresses use the RFC 5737 ranges and ASNs use the reserved private range. Nothing here connects to a real network.

Tags

  • vpn
  • ipsec
  • wireguard
  • remote access
  • site-to-site
  • encryption

Lessons using this diagram