diff --git a/pages/linux/wg-quick.md b/pages/linux/wg-quick.md new file mode 100644 index 000000000..f663eefa9 --- /dev/null +++ b/pages/linux/wg-quick.md @@ -0,0 +1,12 @@ +# wg-quick + +> Quickly set up WireGuard tunnels based on config files. +> More information: . + +- Set up a VPN tunnel: + +`wg-quick up {{interface_name}}` + +- Delete a VPN tunnel: + +`wg-quick down {{interface_name}}` diff --git a/pages/linux/wg.md b/pages/linux/wg.md new file mode 100644 index 000000000..b8677d3d4 --- /dev/null +++ b/pages/linux/wg.md @@ -0,0 +1,20 @@ +# wg + +> Manage the configuration of WireGuard interfaces. +> More information: . + +- 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}}`