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

translation-badges
Managor 2021-02-12 13:28:04 +02:00 committed by GitHub
parent 69b3a19734
commit 87f1e8a511
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 0 deletions

12
pages/linux/wg-quick.md Normal file
View File

@ -0,0 +1,12 @@
# wg-quick
> Quickly set up WireGuard tunnels based on config files.
> More information: <https://www.wireguard.com/quickstart/>.
- Set up a VPN tunnel:
`wg-quick up {{interface_name}}`
- Delete a VPN tunnel:
`wg-quick down {{interface_name}}`

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}}`