WireGuard Quick Start — by Jason A. Donenfeld (WireGuard)
The project's own quick start: generate a private and public key pair with the wg tool, create a wg0 interface, assign an address, configure a peer, bring it up and verify with wg show. Keep the private key file readable only by you.
Quick steps
- umask 077; wg genkey | tee privatekey | wg pubkey > publickey
- ip link add dev wg0 type wireguard; ip address add dev wg0 192.168.2.1/24
- wg setconf wg0 myconfig.conf (or wg set with peer, allowed-ips and endpoint)
- ip link set up dev wg0; wg show
Paraphrased from the source. Menus can differ by version, so check the original for full details.
Source: WireGuard Quick Start by Jason A. Donenfeld (WireGuard). Licence: Link only (©).
- Source reviewed
- 2026-11-02
- Link checked
- 2026-11-02
- Tested hands-on
- Not by Oddbyte.Me