VPNs and Secure Remote Access

Learn how site-to-site and remote-access VPNs protect traffic, their limits, and how to run remote access safely.

Intermediate · about 6 hours · difficulty 2/5

Learn first: TLS and Encryption in Transit, Firewalls and Network Segmentation

A VPN creates an encrypted tunnel across an untrusted network. Organisations use site-to-site VPNs to join offices and clouds, and remote-access VPNs so employees can reach internal systems from home.

Protocols you will meet

  • IPsec: the classic standard for site-to-site tunnels, built into most firewalls and cloud gateways.
  • TLS-based VPNs (OpenVPN, many vendor SSL VPNs): common for remote users.
  • WireGuard: modern, small and fast, with a minimal configuration surface.

What a VPN does and does not do

  • It protects confidentiality and integrity of traffic in transit.
  • It does not make the device on the other end trustworthy. A compromised laptop on the VPN is a compromised laptop inside your network.
  • Traditional VPNs often grant broad network access once connected, which conflicts with least privilege.

Running remote access safely

  • Require MFA on every VPN login, ideally phishing-resistant.
  • Patch VPN appliances fast: internet-facing gateways appear often in CISA's Known Exploited Vulnerabilities catalog.
  • Restrict what VPN users can reach by group, and log connections to your SIEM.
  • Check device posture (patched, EDR running) before granting access where possible.

Pitfalls

  • Shared VPN accounts with no MFA.
  • Forgotten old gateways that nobody patches.

Good enough to move on: you can set up WireGuard between two lab VMs, explain split versus full tunnelling, and list the controls a secure remote-access design needs.

Key concepts

  • Site-to-site vs remote-access VPN
  • IPsec basics
  • WireGuard and OpenVPN
  • Split vs full tunnelling
  • MFA and device posture
  • Patching internet-facing gateways

Mini project

Build a WireGuard tunnel between two VMs, restrict the peer so it can reach only one internal service, and document how you would add MFA and logging in a real deployment.

Check yourself

Why does a VPN alone not satisfy the principle of least privilege?

Free resources