VPN Protocols and Network Privacy: What They Do and Don't Do
Comparing WireGuard, OpenVPN and IPsec/IKEv2, plus DNS leaks, kill switches, provider trust, and how a VPN differs from Tor and HTTPS, for a sensible and legal choice.
Key takeaways
- A VPN hides your traffic from the local network but shifts trust from the network to the provider.
- WireGuard is simple and fast, OpenVPN is flexible, and IPsec/IKEv2 is built into many systems.
- DNS leaks and a missing kill switch are the most common real-world privacy failures.
The VPN (virtual private network) is one of the best-known and most misunderstood security tools. Marketing sometimes presents it as a cure-all, yet it does one specific thing: it carries your traffic through an encrypted tunnel to another point. Knowing the limits of that job helps you choose and configure the tool properly.
What a VPN Actually Does
A VPN encrypts traffic between your device and the VPN server. Someone watching the shared Wi-Fi in a cafe, or your local ISP, sees only an encrypted connection to one server. The destination site also sees the VPN server's IP address instead of yours. Two common and entirely legitimate uses are secure access to an organisation's internal network and protection on public networks.
What a VPN Does Not Do
- It does not make you anonymous: the VPN provider sees where your traffic comes from and where it goes.
- It does not protect against malware or phishing.
- It does not remove tracking by cookies, accounts or browser fingerprinting.
- It does not encrypt traffic after it leaves the VPN server; if a site lacks HTTPS, that stretch of the path is exposed.
The Three Main Protocols
WireGuard is a modern protocol with a very small codebase and fixed, current primitives such as Curve25519 and ChaCha20-Poly1305, running over UDP. Its simplicity makes auditing and configuration easier. OpenVPN is built on TLS, runs over UDP or TCP, offers abundant options and has years of real-world use; the price is complexity and usually lower throughput. IPsec/IKEv2 is the older standard, built into most operating systems, and with MOBIKE it stays stable when you switch networks, but it is intricate to configure correctly.
A Quick Comparison
- Simplicity: WireGuard beats IKEv2, which usually beats OpenVPN.
- Flexibility: OpenVPN has the most options, including TCP and varied authentication.
- Native support: IPsec/IKEv2 in common operating systems; WireGuard in the Linux kernel and most clients.
- Mobile: WireGuard and IKEv2 both cope well with network changes.
DNS Leaks and the Kill Switch
Even with a VPN on, DNS queries may still reach your ISP's resolver; that is a DNS leak. IPv6 traffic can also bypass the tunnel if it is not covered. A kill switch blocks traffic when the tunnel drops, so nothing leaves unprotected by accident. Here is a simple WireGuard client configuration with in-tunnel DNS and both IPv4 and IPv6 routed:
[Interface]
PrivateKey = <client-private-key>
Address = 10.8.0.2/32
DNS = 10.8.0.1
[Peer]
PublicKey = <server-public-key>
Endpoint = vpn.example.com:51820
AllowedIPs = 0.0.0.0/0, ::/0
PersistentKeepalive = 25
After connecting, use a DNS leak test to confirm the resolver belongs to the VPN, and test how your device behaves when the tunnel goes down.
Trust, Tor and HTTPS
A commercial VPN means trusting a company. Judge a no-logs claim by transparency, independent audits and jurisdiction rather than by advertising. Tor, by contrast, relays traffic through several nodes so that none knows both source and destination: stronger anonymity, lower speed. HTTPS encrypts the content of your conversation with each site, but does not hide which domain you connect to. They are not substitutes for each other; they are complementary layers.
Choosing Sensibly and Legally
- Define your goal: organisational access, safety on public Wi-Fi, or privacy from your ISP.
- For reaching your own network, a personal WireGuard server or a corporate VPN is usually better than an anonymous service.
- Check the laws of your country and the policies of your employer or school on VPN use; they differ from place to place.
- Keep software updated and enable the kill switch and leak tests.
This article is sample educational content; verify against official sources before making important decisions.