mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
wg, wg-quick: add page (#5260)
This commit is contained in:
parent
69b3a19734
commit
87f1e8a511
2 changed files with 32 additions and 0 deletions
12
pages/linux/wg-quick.md
Normal file
12
pages/linux/wg-quick.md
Normal 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
20
pages/linux/wg.md
Normal 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}}`
|
Loading…
Add table
Reference in a new issue