Skip to content

WireGuard Quick Start — by Jason A. Donenfeld (WireGuard)

advancedpageLink only (©)

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

  1. umask 077; wg genkey | tee privatekey | wg pubkey > publickey
  2. ip link add dev wg0 type wireguard; ip address add dev wg0 192.168.2.1/24
  3. wg setconf wg0 myconfig.conf (or wg set with peer, allowed-ips and endpoint)
  4. ip link set up dev wg0; wg show

Paraphrased from the source. Menus can differ by version, so check the original for full details.

Read the full article on wireguard.com

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

wireguardvpnkeys

More in Remote Access (SSH, RDP, VPN)

Tailscale quickstart — by Tailscale

beginnerpage

Shows how to create a private tailnet by installing the Tailscale client on two devices and signing in with the same identity account, then points to follow-ups like MagicDNS, exit nodes, subnet routers and access policies. A VPN-style overlay like this is a safer way to reach home services than opening ports on your router.