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 > pubgenerate keys -
sudo wg-quick up wg0bring the tunnel up -
sudo wg-quick down wg0bring the tunnel down -
sudo wg showpeers, handshake, traffic -
sudo systemctl enable wg-quick@wg0autostart - conf: [Interface] Address/PrivateKey/ListenPort ; [Peer] PublicKey/AllowedIPs/Endpoint