diff options
author | Mohammed Amar-Bensaber <renken@shione.net> | 2024-08-27 22:22:06 +0200 |
---|---|---|
committer | Mohammed Amar-Bensaber <renken@shione.net> | 2024-08-27 22:22:06 +0200 |
commit | 3bdf09e661913c31bbc43dad4b6d93c7e436f935 (patch) | |
tree | eb5c896f83b467a61733ec2782847ff75958a959 | |
parent | 3ef40e24e481a9dd8ecbace66506b686a4ec3c4e (diff) | |
download | shione-3bdf09e661913c31bbc43dad4b6d93c7e436f935.tar.gz shione-3bdf09e661913c31bbc43dad4b6d93c7e436f935.zip |
wireguard: document initial setup
-rw-r--r-- | doc/wireguard.md | 15 |
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 -- - +``` |