wg, wg-quick: add page (#5260)

This commit is contained in:
Managor
2021-02-12 13:28:04 +02:00
committed by GitHub
parent 69b3a19734
commit 87f1e8a511
2 changed files with 32 additions and 0 deletions

20
pages/linux/wg.md Normal file
View File

@@ -0,0 +1,20 @@
# 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}}`