Networking
Intermediate
What is WireGuard?
A modern, lightweight VPN protocol that uses state-of-the-art cryptography and minimal code for fast, secure tunneling.
WireGuard is a VPN protocol designed for simplicity and performance. With approximately 4,000 lines of code (compared to OpenVPN's 100,000+), it has a smaller attack surface and is easier to audit. It uses Curve25519 for key exchange, ChaCha20 for encryption, Poly1305 for authentication, and BLAKE2s for hashing. WireGuard operates at the kernel level (built into Linux since 5.6) for high performance, achieving better throughput than IPsec and OpenVPN. Configuration is remarkably simple — each peer has a public/private key pair and a list of allowed IPs. It supports roaming (seamless IP changes) and establishes connections in milliseconds.