WireGuard

Config Location

Typically

/etc/wireguard/wg0.conf

Service

Restart

sudo systemctl restart wg-quick@wg0

 Status

sudo systemctl status wg-quick@wg0

 Enable

sudo systemctl enable wg-quick@wg0

Generate Key Pair

wg genkey > privatekey
wg pubkey < privatekey > publickey
wg genkey | tee privatekey | wg pubkey > publickey

Generate Pre-shared Key

openssl rand 32 | base64