mirror of https://github.com/CrimsonTome/tldr.git
wg, wg-quick: add page (#5260)
parent
69b3a19734
commit
87f1e8a511
|
@ -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}}`
|
|
@ -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…
Reference in New Issue