1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-28 21:17:57 +01:00
tldr/pages/linux/wg.md
2023-07-31 08:10:18 +05:30

537 B

wg

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

  • Check status of currently active interfaces:

sudo wg

  • Generate a new private key:

wg genkey

  • Generate a public key from a private key:

wg pubkey < {{path/to/private_key}} > {{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}}