commands.sh

wg

linux

Manage the configuration of WireGuard interfaces.

More info →

Examples (5)

Check status of currently active interfaces

Generate a new private key

wg genkey

Generate a public key from a private key

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

Generate a public and private key

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

Show the current configuration of a wireguard interface

sudo wg showconf wg0
made by @shridhargupta | data from tldr-pages