Cyber Security VPNs

A VPN protects your data in transit by building an encrypted tunnel across a network you don't trust, such as public Wi-Fi or the open internet.

What Problem Does a VPN Solve?

Every time you connect to a website, your traffic passes through a chain of devices you don't control: the coffee shop router, your ISP, and several backbone providers along the way. Any of those hops could, in principle, read or tamper with unencrypted traffic. A VPN (Virtual Private Network) is designed specifically for the case where the network in between is untrusted.

A VPN works by wrapping your original network traffic inside an encrypted tunnel between your device and a VPN gateway. Anyone watching the untrusted network in between sees only sealed, scrambled packets travelling to the VPN server — they cannot see the content, and typically cannot easily see which internal site or service you are actually reaching.

How the Tunnel Actually Works

  1. Your device and the VPN server perform a handshake, authenticating each other and agreeing on encryption keys.
  2. Your device takes a normal outgoing packet and encrypts it, then wraps it inside a new outer packet addressed to the VPN server.
  3. That sealed outer packet travels across the untrusted network (public Wi-Fi, the open internet) as unreadable payload.
  4. The VPN server strips off the outer wrapper, decrypts the inner packet, and forwards it to its real destination on your behalf.
  5. Return traffic follows the same path in reverse, getting re-encrypted before it crosses back over the untrusted network to you.
Observer on the local networkWithout a VPNWith a VPN
Can read the content of your trafficYes, if it isn't separately encrypted (e.g. HTTP)No — content is inside the encrypted tunnel
Can see which sites/services you contactYes, from destination addressesUsually only sees the VPN server's address
Can tamper with packets in transitPossible on unencrypted trafficTampering is detected and rejected

Common VPN Protocols

  • IPsec — an older, widely supported standard often used for site-to-site links and built into many routers and firewalls.
  • OpenVPN — a flexible, open-source protocol that runs over standard TCP/UDP and is popular with commercial VPN clients.
  • WireGuard — a newer, much smaller and simpler protocol that has become the default in many modern operating systems because it's fast and easy to audit.
Note: A VPN encrypts the pipe between you and the VPN server — it doesn't make you anonymous, and it doesn't clean up malware already on your device. The VPN provider itself (or whoever controls the far end of the tunnel) can still see your traffic once it exits the tunnel, so who runs the VPN server matters.

Site-to-Site vs Remote-Access VPNs

A remote-access VPN connects a single device, like an employee's laptop, into a private network as if it were plugged in locally — this is the everyday case of someone working from home reaching internal company systems. A site-to-site VPN instead permanently joins two whole networks together, for example linking a branch office's network to headquarters, so that every device on either side can reach the other without each one running its own VPN client.

Note: Turn on your VPN before connecting to anything sensitive over public Wi-Fi, confirm it has a working kill switch (which blocks all traffic if the tunnel drops), and remember it protects data in transit — it is not a substitute for antivirus software, strong passwords, or MFA.