Use IPv4 inside tunnel because of Hydra

This commit is contained in:
Tim Schubert 2021-01-02 18:47:51 +01:00
parent e4bc29ff4a
commit 800ad1a9e7
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
2 changed files with 5 additions and 5 deletions

View file

@ -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;
}

View file

@ -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;
}
];