Where to start First steps track · 15 stages
Linux Labs

WireGuard — VPN on keys

cheat sheet · Ubuntu 24.04 · WireGuard https://lab.dimsanych.ru/en/wiki/wireguard/

Cheat sheet

  • wg genkey | tee priv | wg pubkey > pub generate keys
  • sudo wg-quick up wg0 bring the tunnel up
  • sudo wg-quick down wg0 bring the tunnel down
  • sudo wg show peers, handshake, traffic
  • sudo systemctl enable wg-quick@wg0 autostart
  • conf: [Interface] Address/PrivateKey/ListenPort ; [Peer] PublicKey/AllowedIPs/Endpoint
Loading…