WireGuard on Linux adds kernel VPN interfaces that encapsulate IP traffic over UDP using public-key peers. Configuration resembles exchanging SSH keys rather than heavy IKE-style setup.
Overview
WireGuard is a VPN that runs inside the Linux kernel and carries IP packets over UDP tunnels between peers. Each side holds private keys and knows peers by public keys; allowed tunnel addresses are tied to those keys through cryptokey routing, so distribution of keys and addresses stays outside the protocol itself.
You create one or more tunnel interfaces such as wg0 and manage addressing and routes with ordinary Linux networking tools. WireGuard-specific settings use the wg utility. Outbound traffic picks a peer by destination IP, encrypts the packet with that peer's public key, and sends it to the peer's UDP endpoint. Inbound UDP traffic is decrypted, authenticated, and accepted only when the source address matches what that peer is allowed to use.
The design uses the Noise protocol framework and constructions such as Curve25519, ChaCha20, Poly1305, BLAKE2, SipHash24, and HKDF. The implementation is kept small so it can be reviewed more easily than large IPsec or OpenVPN stacks. Living in the kernel is intended to keep encrypted networking efficient on small devices and on high-throughput routers alike.
WireGuard first shipped for Linux and has since spread to other operating systems; on Linux it is meant to be easy to deploy, support roaming when IP addresses change, and avoid connection daemons and much of the state management found in older VPN designs. A technical whitepaper documents the protocol and design choices in detail.
Key features
- Kernel network interfaces (wg0, wg1, …)
- UDP encapsulation of IP packets
- Public-key peer authentication
- Cryptokey routing with allowed IPs
- Roaming across changing endpoints
- wg tool for tunnel configuration
- Noise-based modern cryptography
- Small implementation surface
Use cases
- Site-to-site or host VPN on Linux
- Encrypted access with simple key exchange
- Tunnels on embedded Linux and servers
- High-speed secure routing in the kernel