From 3bdf09e661913c31bbc43dad4b6d93c7e436f935 Mon Sep 17 00:00:00 2001 From: Mohammed Amar-Bensaber Date: Tue, 27 Aug 2024 22:22:06 +0200 Subject: wireguard: document initial setup --- doc/wireguard.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 doc/wireguard.md 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 -- - +``` -- cgit v1.2.3