whatis wireguard

WireGuard

Also known as: wg, wg-quick

A fast, modern VPN protocol built into the Linux kernel, configured with short key-based config files.

What Is WireGuard in Linux?

WireGuard creates an encrypted tunnel interface (like wg0) between peers identified by public keys. Its codebase is tiny compared to OpenVPN or IPsec, it roams seamlessly between networks, and it has been in the mainline kernel since 5.6.

Tailscale, Headscale, and similar mesh VPNs use WireGuard underneath and automate key exchange and NAT traversal.

Example

wg genkey | tee private.key | wg pubkey > public.key
sudo wg-quick up wg0