From 900156b511187d9ce393a55475a8b205e3afeb13 Mon Sep 17 00:00:00 2001 From: Renken Date: Mon, 25 Dec 2023 22:55:06 +0100 Subject: config: shione: incomplete wireguard setup --- config/shione/wireguard/generate_keys.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 config/shione/wireguard/generate_keys.sh (limited to 'config/shione/wireguard/generate_keys.sh') diff --git a/config/shione/wireguard/generate_keys.sh b/config/shione/wireguard/generate_keys.sh new file mode 100755 index 0000000..4c564a4 --- /dev/null +++ b/config/shione/wireguard/generate_keys.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +set -eux + +cd -- 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