From 87f1e8a511ab9d9003e9ea136cd76ea55b87b5bc Mon Sep 17 00:00:00 2001
From: Managor <42655600+Managor@users.noreply.github.com>
Date: Fri, 12 Feb 2021 13:28:04 +0200
Subject: [PATCH] wg, wg-quick: add page (#5260)
---
pages/linux/wg-quick.md | 12 ++++++++++++
pages/linux/wg.md | 20 ++++++++++++++++++++
2 files changed, 32 insertions(+)
create mode 100644 pages/linux/wg-quick.md
create mode 100644 pages/linux/wg.md
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}}`