Topic Terms

What is WireGuard?

WireGuard is a modern, open-source VPN protocol designed to be faster, simpler, and more secure than older protocols like OpenVPN and IPSec, using state-of-the-art cryptography and a lean codebase of roughly 4,000 lines.

WireGuard is a next-generation VPN tunneling protocol released in 2019. It was designed from the ground up to solve the shortcomings of older protocols: bloated codebases, complex configuration, and unnecessary performance overhead. WireGuard has become the default protocol for most major VPN providers because of its exceptional speed and security.

Why WireGuard is Different

WireGuard's entire codebase is roughly 4,000 lines of code — compared to tens of thousands for OpenVPN and hundreds of thousands for IPSec implementations. Less code means:

  • Fewer places for bugs or vulnerabilities to hide
  • Easier to audit by security researchers
  • Faster to execute on hardware

WireGuard lives inside the Linux kernel, which gives it direct access to hardware networking capabilities and dramatically reduces latency.

WireGuard Cryptography

WireGuard uses a modern, carefully chosen set of cryptographic primitives:

Component Algorithm
Symmetric encryption ChaCha20
Authentication Poly1305
Key exchange Curve25519
Hash function BLAKE2s/SipHash24

ChaCha20 is particularly efficient on mobile devices and low-powered hardware that lack hardware acceleration for AES-256 — making WireGuard excellent for phones and tablets.

WireGuard and Privacy

WireGuard has one historical privacy consideration: its original design stored connected peers' IP addresses in memory (which are cleared on reboot but persist during operation). For VPN providers, this presented a minor logging concern.

Most providers solved this with a workaround:

  • NordVPN uses NordLynx — a double-NAT system on top of WireGuard that prevents IP association
  • Mullvad and ProtonVPN assign temporary IP addresses that aren't linked to user accounts

These implementations preserve WireGuard's speed while aligning with their no-log policies.

Performance

WireGuard is consistently the fastest VPN protocol in real-world testing. Its kernel-level implementation means it saturates even high-speed internet connections (1 Gbps+) with minimal CPU overhead — where older protocols often become a bottleneck.

Which VPNs Use WireGuard?

NordVPN (NordLynx), Mullvad, ProtonVPN, Surfshark, and Private Internet Access all support WireGuard natively. ExpressVPN uses its proprietary Lightway protocol, which is WireGuard-inspired but uses a different cryptographic library.

WireGuard vs. OpenVPN

For most users, WireGuard is the better default today. It's faster, simpler, and equally secure for everyday use. OpenVPN still has an edge for obfuscation scenarios and enterprise deployments where its decades of real-world testing carry weight.