What is a VPN?
Chapter 1 — What is a VPN and Why?
A Virtual Private Network creates an encrypted tunnel between your device and a server somewhere else on the internet. All your network traffic travels through that tunnel — your ISP sees only that you're connected to a VPN server, and the websites you visit see the VPN server's IP address, not yours.
That's the core promise. But VPNs are surrounded by more marketing noise than almost any other technology, so this chapter focuses on something more important than the setup instructions: understanding precisely what a VPN actually does and doesn't protect, and what problem you're solving before you reach for one.
How It Works — The Tunnel
The encrypted tunnel is established using a VPN protocol — WireGuard, OpenVPN, or IKEv2/IPsec being the most common today. Each protocol handles key exchange, encryption, and packet encapsulation differently. Chapter 2 covers the protocol comparison in detail. For now, the important thing is what the tunnel achieves:
- Your ISP can no longer see which sites you visit or what you send — only that you have a VPN connection open.
- Anyone on your local network (a café Wi-Fi operator, a hotel network) cannot inspect your traffic.
- Websites and services see the VPN server's IP address and country, not yours.
Legitimate Use Cases
What a VPN Does and Doesn't Protect
- ✓ Your ISP logging the sites you visit
- ✓ Packet sniffing on shared/public Wi-Fi
- ✓ Websites seeing your real IP address
- ✓ IP-based geographic blocking
- ✓ Basic traffic analysis by a local network operator
- ✓ ISP selling your browsing data (where legal)
- ✗ Tracking cookies and browser fingerprinting
- ✗ Malware already on your device
- ✗ Phishing — clicking a bad link still works
- ✗ Google/Facebook tracking you when logged in
- ✗ A VPN provider who logs your traffic
- ✗ DNS leaks if misconfigured
- ✗ WebRTC IP leaks in browsers
- ✗ Account takeover or data breaches at services you use
Common VPN Myths
False. You're authenticated with the VPN provider, and if you're logged into any account (Google, Facebook, your email), the service knows exactly who you are regardless of which IP you connect from. A VPN hides your IP from the sites you visit; it does not hide your identity.
Mostly false. A VPN encrypts traffic between your device and the VPN server — it doesn't protect against malware, unpatched software, weak passwords, or phishing. Most "hacking" happens at the application layer, which the VPN doesn't touch.
Largely outdated. In 2026, almost all websites use HTTPS, which already encrypts traffic end-to-end. A packet sniffer on café Wi-Fi sees encrypted HTTPS data, not your passwords. A VPN adds a second layer, but the threat it solves here is much smaller than it was in 2010.
Almost never. Free VPN services need to monetise somehow — commonly by logging and selling your traffic data, which is exactly what you're trying to avoid. Some have been caught injecting ads, harvesting credentials, or running malware through the tunnel.
Matching a VPN to Your Threat Model
The right question isn't "should I use a VPN?" but "what am I protecting against, and is a VPN the right tool for it?" These scenarios show where a VPN helps and where it doesn't:
Self-Hosted vs Commercial VPN
The remaining chapters in this course focus on self-hosted VPNs — running your own WireGuard or OpenVPN server. This is different from a commercial VPN service like ProtonVPN or Mullvad:
- Self-hosted — you run the server. Traffic exits from your home IP or a VPS you control. No third-party provider to trust. Ideal for accessing your own network remotely. Does not hide your IP from websites (they see your home IP).
- Commercial VPN — a company runs thousands of servers. Traffic exits from a shared IP pool in whichever country you choose. Useful for geo-unblocking and hiding your IP. You must trust the provider's no-logs claims.