wg Command Examples

Manage the configuration of WireGuard interfaces. More information: https://www.wireguard.com/quickstart/.

sudo wg

wg genkey

wg pubkey < {{path/to/private_key}} > {{path/to/public_key}}

wg genkey | tee {{path/to/private_key}} | wg pubkey > {{path/to/public_key}}

sudo wg showconf {{wg0}}