From 800ad1a9e7b1a767539adf778d95e0aaf4921995 Mon Sep 17 00:00:00 2001 From: dadada Date: Sat, 2 Jan 2021 18:47:51 +0100 Subject: [PATCH] Use IPv4 inside tunnel because of Hydra --- hosts/pruflas/default.nix | 4 ++-- hosts/surgat/default.nix | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hosts/pruflas/default.nix b/hosts/pruflas/default.nix index dc531f8..005aae0 100644 --- a/hosts/pruflas/default.nix +++ b/hosts/pruflas/default.nix @@ -89,7 +89,7 @@ in networking.wireguard.interfaces."hydra" = { - ips = [ "fcde:ad::1/64" ]; + ips = [ "10.3.3.1/24" ]; listenPort = 51235; privateKeyFile = "/var/lib/wireguard/hydra"; @@ -97,7 +97,7 @@ in peers = [ { publicKey = "KzL+PKlv4LktIqqTqC9Esw8dkSZN2qSn/vq76UHbOlY="; - allowedIPs = [ "fcde:ad::2/128" ]; + allowedIPs = [ "10.3.3.3/32" ]; endpoint = "surgat.dadada.li:51235"; persistentKeepalive = 25; } diff --git a/hosts/surgat/default.nix b/hosts/surgat/default.nix index a658e78..9527bf0 100644 --- a/hosts/surgat/default.nix +++ b/hosts/surgat/default.nix @@ -23,7 +23,7 @@ in forceSSL = true; locations."/".extraConfig = '' - proxy_pass http://[fcde:ad:1]:3000/; + proxy_pass http://10.3.3.3:3000/; ''; }; @@ -98,7 +98,7 @@ in ]; networking.wireguard.interfaces."hydra" = { - ips = [ "fcde:ad::2/64" ]; + ips = [ "10.3.3.1/24" ]; listenPort = 51235; privateKeyFile = "/var/lib/wireguard/hydra"; @@ -106,7 +106,7 @@ in peers = [ { publicKey = "CTKwL6+SJIqKXr1DIHejMDgjoxlWPaT78Pz3+JqcNlw="; - allowedIPs = [ "fcde:ad::1/128" ]; + allowedIPs = [ "10.3.3.1/32" ]; persistentKeepalive = 25; } ];