1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 14:42:19 +02:00
tldr/pages/linux/wg.md
Muhammad Falak R Wani 722304b216
wg: add example to show current configuration of an interface (#7594)
Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
2022-01-03 15:39:51 +05:30

24 lines
527 B
Markdown

# wg
> Manage the configuration of WireGuard interfaces.
> More information: <https://www.wireguard.com/quickstart/>.
- Check status of currently active interfaces:
`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:
`wg showconf {{wg0}}`