From 918c2ea08b671b330081f8675e8c7a4b7baad3cb Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Mon, 20 Jan 2025 13:16:17 -0500 Subject: [PATCH] Infini-FRAMEWORK: setup pyro datacenter vpn --- hosts/Infini-FRAMEWORK/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/hosts/Infini-FRAMEWORK/default.nix b/hosts/Infini-FRAMEWORK/default.nix index 61bfac5..52270f4 100644 --- a/hosts/Infini-FRAMEWORK/default.nix +++ b/hosts/Infini-FRAMEWORK/default.nix @@ -108,6 +108,20 @@ } ]; + networking.firewall.allowedUDPPorts = [ 51820 ]; + + networking.wg-quick.interfaces.wg0 = { + address = [ "10.10.0.3/32" ]; + listenPort = 51820; + privateKeyFile = "/home/infinidoge/tmp/bb-vpn.key"; + peers = [{ + publicKey = "SYpnrGvxx8l4w9c7KVRVW6GyNDr/iK+maPPMw/Ua7XY="; + allowedIPs = [ "10.9.0.0/24" ]; + endpoint = "66.23.193.252:55555"; + persistentKeepalive = 25; + }]; + }; + specialisation.router.configuration = { networking = { interfaces."enp0s13f0u1" = {