From a28a1304b05fd194bacec076f3cb9f4beec0cc3f Mon Sep 17 00:00:00 2001 From: xenia Date: Wed, 30 Apr 2025 21:38:43 +0200 Subject: [PATCH] update wireguard conf --- nixos/machines/foxhut/machine.nix | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/nixos/machines/foxhut/machine.nix b/nixos/machines/foxhut/machine.nix index 838c2734..8a431e5d 100644 --- a/nixos/machines/foxhut/machine.nix +++ b/nixos/machines/foxhut/machine.nix @@ -57,25 +57,23 @@ in { networking.firewall.allowedUDPPorts = [ 51821 51820 ]; networking.wireguard = { enable = true; - interfaces.wg0 = { - ips = [ "192.168.69.254/32" ]; - listenPort = 51821; - privateKeyFile = "/home/xenia/wireguard-keys/eta.private"; + interfaces.eta = { + ips = [ "10.69.3.13/32" ]; + privateKeyFile = "/home/xenia/wireguard-keys/eta.new.private"; peers = [ { - publicKey = "XfHU29ij76y4TB8P/QJyn1JnTl9tvxO77IGVmM6p+ic="; + publicKey = "xAHheRS7WfS62TrnCd0neOzR9yaNdr9zkViSaa+AyWA="; allowedIPs = [ "10.30.0.0/16" "10.250.0.0/16" "10.254.0.0/16" "192.168.30.0/24" "192.168.40.0/24" "192.168.50.0/24" "192.168.51.0/24" "192.168.250.0/24" ]; - endpoint = "129.16.13.37:13231"; + endpoint = "129.16.13.37:13233"; persistentKeepalive = 25; } ]; }; - interfaces.wg-bnuy = { - ips = [ "10.100.1.1/16" ]; - listenPort = 51820; + interfaces.bnuy = { + ips = [ "10.100.1.1/32" ]; privateKeyFile = "/home/xenia/wireguard-keys/local-network.private"; peers = [ { publicKey = "Qa3saFnPTlGbxLnoyhsczczBMUGA8F/tlGsH8wnMTWY="; # https://github.com/xeniagda/cluster-config/tree/main/keys/catboy-cafe.public allowedIPs = [ "10.100.0.0/16" ]; - endpoint = "95.80.26.48:51820"; + endpoint = "hem.60.nu:51820"; persistentKeepalive = 25; } ]; };