WireGuard is the VPN protocol most people mean when they say "modern VPN." It's fast, small, and built on a short list of well-regarded cryptographic primitives instead of a menu of options. Here's what it actually does under the hood.
The design idea: fewer moving parts
Older VPN protocols like OpenVPN and IPsec grew by accretion — many cipher suites, many authentication modes, a lot of negotiation. WireGuard took the opposite approach: one fixed set of modern cryptography, no negotiation.
- Curve25519 for key exchange
- ChaCha20-Poly1305 for encryption and authentication
- BLAKE2s for hashing
- The Noise protocol framework for the handshake
Because there's nothing to negotiate, there's nothing to downgrade. The whole implementation is a few thousand lines of code, versus hundreds of thousands for older stacks — small enough for a security researcher to actually read end to end, and part of the reason it was merged into the Linux kernel itself (in version 5.6).
How a connection works
Every WireGuard device has a private key and a public key. To connect two devices, each side is told the other's public key and which IP addresses it's allowed to send from. That's the entire configuration model: a list of peers, each identified by a public key.
When one side sends its first packet, the two peers run a single round-trip handshake, derive fresh session keys, and start passing encrypted UDP packets. Keys rotate automatically every couple of minutes, so a compromised session key has a short useful life.
Why it's fast
- It runs in the kernel on Linux, avoiding the copy overhead of a userspace daemon
- ChaCha20 is fast even on hardware without AES acceleration, which includes many phones
- Handshakes are one round trip and connections resume almost instantly when you switch from Wi-Fi to mobile data
What WireGuard is quiet about
An unauthenticated packet gets no response at all — a port scan of a WireGuard server sees nothing. That's a real security benefit, but it's separate from being hard to detect: WireGuard's handshake and packet structure are consistent and recognizable, so networks that do deep packet inspection can identify and block it even though they can't read it. See how DPI works.
Limits worth knowing
- UDP only. Networks that block UDP or force everything through TCP 443 are a problem.
- No built-in obfuscation. It's fast and simple, not stealthy.
- Static peer model. Every device needs to be registered on the server with its own key — trivial for one device, tedious by hand for twenty.
When to pick it
WireGuard is the right default if your network doesn't actively block VPN traffic: best speed, lowest overhead, simplest to reason about. If it gets blocked, the same core with obfuscation added is AmneziaWG, and for the hardest networks there's VLESS with Reality.
Nullsify installs WireGuard on your own VPS and manages the per-device keys for you — one config per device, revocable individually — so the "tedious by hand" part disappears.