What is WireGuard?
WireGuard is a modern VPN protocol with about 4,000 lines of code, compared with the hundreds of thousands in OpenVPN, mainlined in the Linux kernel since 2020. The free, open-source protocol establishes encrypted tunnels between peers using public-key cryptography. Jason Donenfeld created the protocol in 2015, and it ships userspace clients for Windows, macOS, BSD, iOS, and Android.
The protocol runs over UDP on port 51820 by default and uses fixed modern cryptography, including ChaCha20 for symmetric encryption, Poly1305 for authentication, Curve25519 for key exchange, BLAKE2s for hashing, and HKDF for key derivation. Logging is off by default, the codebase is small enough to audit at a sitting, and WireGuard gives perfect forward secrecy.