Use IPv4 inside tunnel because of Hydra
This commit is contained in:
parent
e4bc29ff4a
commit
800ad1a9e7
2 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue