wg
Manage the configuration of WireGuard interfaces. tldr-pages
On several platforms
Several platforms
Check status of currently active interfaces
sudo wgIdentifyCheck status of the specified interface
sudo wg show interfaceIdentifyGenerate a new private key and print it to stdout
wg genkeyIdentifyGenerate a public key from a private key and print it to stdout
wg <path/to/private_key pubkeyIdentifyGenerate a public and private key and save them to files
wg genkey | tee path/to/private_key | wg pubkey >path/to/public_keyIdentifyGenerate a pre-shared key and print it to stdout
wg genpskIdentifyShow the active configuration of an interface
sudo wg showconf interfaceIdentify