aboutsummaryrefslogtreecommitdiffstats
path: root/doc/wireguard.md
diff options
context:
space:
mode:
authorMohammed Amar-Bensaber <renken@shione.net>2024-08-27 22:22:06 +0200
committerMohammed Amar-Bensaber <renken@shione.net>2024-08-27 22:22:06 +0200
commit3bdf09e661913c31bbc43dad4b6d93c7e436f935 (patch)
treeeb5c896f83b467a61733ec2782847ff75958a959 /doc/wireguard.md
parent3ef40e24e481a9dd8ecbace66506b686a4ec3c4e (diff)
downloadshione-3bdf09e661913c31bbc43dad4b6d93c7e436f935.tar.gz
shione-3bdf09e661913c31bbc43dad4b6d93c7e436f935.zip
wireguard: document initial setup
Diffstat (limited to 'doc/wireguard.md')
-rw-r--r--doc/wireguard.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/wireguard.md b/doc/wireguard.md
new file mode 100644
index 0000000..59b0948
--- /dev/null
+++ b/doc/wireguard.md
@@ -0,0 +1,15 @@
+# Wireguard
+
+## Initial setup
+
+```sh
+#!/bin/sh
+
+set -eux
+
+cd -- ../../secrets/files/etc/wireguard
+(umask 077; wg genkey | tee shione.private.key | wg pubkey > shione.public.key)
+# TODO: chmod 0600 all files under files/etc/wireguard.
+# TODO: Update files/etc/wireguard/wg0.conf accordingly.
+cd -- -
+```