Notes
What a VPN is
A virtual private network builds an encrypted tunnel between a device and a gateway at the edge of the private network. Once the device has authenticated, its traffic for internal systems travels inside that tunnel, and it receives an internal address as if it were plugged in at the office. Anyone on the local Wi-Fi sees only encrypted packets going to one address. That is the protection against the sniffing and man in the middle attacks from earlier episodes.
- the device authenticates to a gateway
- they build an encrypted tunnel
- packets for the private network travel inside it
- the device gets an internal address
- the local Wi-Fi sees only encrypted traffic to one address
The protocols
You will meet three protocols. IPsec is the long-standing standard, used for links between sites and built into every operating system, but famously complicated. OpenVPN is built on TLS, flexible, and runs anywhere. WireGuard is the modern one: a very small codebase, fast, with fixed modern cryptography and simple key pairs, which leaves little room to misconfigure it. Old protocols like PPTP are broken and should be gone.
- IPsec (with IKEv2): the old standard. Site-to-site links, built into every OS, complex to configure
- OpenVPN: TLS-based, flexible, runs anywhere, slower
- WireGuard: small, fast, modern crypto, simple keys
- avoid PPTP and L2TP without IPsec: broken
Two shapes
VPNs come in two shapes. Remote access connects one device, an employee's laptop, to the network. Site-to-site joins two whole networks through their gateways, such as an office and a cloud environment. There is also a choice about what goes through the tunnel. In a full tunnel all the device's traffic does, which lets the company inspect it. In a split tunnel only company traffic does, which is faster but leaves the rest unprotected and unseen.
- remote access: one device joins the network (employees, contractors)
- site-to-site: two networks joined by gateways (office to cloud, office to office)
- split tunnel: only company traffic uses the VPN
- full tunnel: all traffic does
The flaw
Here is the flaw. A traditional VPN checks you once at the door and then places your device on the internal network, often with reach to everything. So a phished password with no second factor is a seat inside the company. An infected laptop brings its infection in with it. And the gateway itself sits on the internet, where unpatched VPN appliances have been one of the most common entry points for ransomware groups in recent years.
- one login = a place on the internal network
- a phished password without MFA is enough
- a malware-infected laptop brings the malware inside
- the gateway itself is exposed to the internet and must be patched fast
- VPN flaws are a top way in for ransomware groups
A safer VPN
If you run a VPN, some settings are not optional. Multi-factor login for every connection. Patching the gateway within days of a fix, because attackers scan for vulnerable ones within hours. Allowing only managed devices, proven with a device certificate. Limiting what the VPN zone can reach to the applications each group needs, using the segmentation from the last episode. And logging every connection, with alerts on new countries and odd hours.
- MFA on every login
- patch the gateway within days of a fix
- managed devices only: check a device certificate
- the VPN zone reaches only the apps each group needs
- log connections; alert on new countries and odd hours
- remove accounts when people leave
Zero-trust access
Zero-trust network access removes the flaw by removing the network access. The user never joins the internal network. An access proxy sits in front of each application and checks every request: who is the user, is their multi-factor login recent, is the device managed and healthy, and are they allowed this particular application? Access is granted to one application at a time. Applications are invisible until you authenticate, so there is nothing to scan.
- the user never joins the network
- an access proxy sits in front of each application
- every request is checked: who is the user, is MFA fresh, is the device healthy, is this app allowed?
- grants one app, not a network
- apps are invisible until you authenticate
Side by side
Put them side by side. A VPN trusts once at the door; zero trust checks on every request. A VPN grants a network; zero trust grants one application. A VPN rarely looks at the device again; zero trust makes device health part of every decision. So a stolen login is worth the whole network in one model, and one application in the other, and only if the attacker also has a healthy managed device. The logs are richer too: per request, not per connection.
- trust: once at the door / on every request
- access: a network / one app
- device health: rarely checked / part of every decision
- stolen login: the network / one app, if the device also passes
- visibility: connection logs / per-request logs
In practice
In practice this is delivered by products such as Cloudflare Access, Zscaler Private Access, Tailscale and others, following a model Google published as BeyondCorp. It depends on two foundations: single sign-on with multi-factor login, and managed devices, both covered in Part twelve. Teams usually move web applications first, then SSH and databases, and keep a small, tightly restricted VPN for the few legacy systems that cannot be put behind a proxy.
- products: Cloudflare Access, Zscaler Private Access, Google BeyondCorp, Tailscale, Twingate, Entra Private Access
- needs: SSO with MFA and managed devices first
- move web apps first; SSH and databases next
- the VPN often stays for a few legacy systems
Common mistakes
Mistakes. A VPN without multi-factor login. A VPN appliance left unpatched for months while exploits circulate. VPN users able to reach the entire internal network. Personal, unmanaged devices allowed in. Shared VPN accounts, so nobody knows who connected. Relabelling an ordinary VPN as zero trust in a slide deck. And the accounts of former employees and contractors that still work.
- VPN without MFA
- unpatched VPN appliance
- VPN users can reach the whole network
- personal devices allowed in
- shared VPN accounts
- calling a VPN "zero trust"
- accounts of former staff still active
Say it like this
In the interview: a VPN authenticates once and places the device on the internal network, so a stolen credential or an infected laptop gets broad reach, and the gateway itself is an exposed target. Zero-trust network access checks the user, their multi-factor login and the device's health on every request, and grants access to a single application. Where a VPN has to remain, I require MFA and managed devices, patch the gateway quickly and segment what it can reach.
- "A VPN authenticates once and puts the device on the network, so a stolen login or infected laptop gets broad
- reach. ZTNA checks user, MFA and device health on every request and grants a single
- app. Where a VPN remains, I
- add MFA, patching and segmentation."