From cd9c8ec5fdbe4874c7be95c80f8ab86999b30390 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 21 Feb 2022 13:33:51 -0800 Subject: wireguard: module and peers configurations Add a new module to automatically configure the peers for wireguard. The module needs a configuration file (in `configs/wireguard.toml`) which lists all the peers, their IP and and their public keys. The secret keys is encrypted as a secret with agenix. There's some initial documentation on how to use this setup. --- configs/wireguard.toml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 configs/wireguard.toml (limited to 'configs') diff --git a/configs/wireguard.toml b/configs/wireguard.toml new file mode 100644 index 0000000..0012ba9 --- /dev/null +++ b/configs/wireguard.toml @@ -0,0 +1,15 @@ +mask4 = 32 +subnet4 = "192.168.6" + +[peers.aptos] +ipv4 = 110 +key = "DP3caAlh07OOU61u2L2QfEhakt/mVEGrMBVONNvpNhU=" + +[peers.nas] +ipv4 = 10 +key = "SFlgoY+fQDUnI2D6Xp3JhqFKWsZABqahCv8IgKPWizA=" + +[peers.rtr] +ipv4= 1 +key = "P4gxkIoQ9Ep6QqfTquJYbBkMPDJQkVE9v1eYh/uJwG8=" + -- cgit 1.4.1