1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-28 23:17:58 +01:00
tldr/pages/linux/wg.md
2021-02-12 08:28:04 -03:00

390 B

wg

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

  • Check status of currently active interfaces:

sudo wg

  • Print a new private key:

wg genkey

  • Print a new public key:

echo {{private_key}} | wg pubkey

  • Generate a public and private key:

wg genkey | tee {{privatekey.txt}} | wg pubkey > {{publickey.txt}}