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" = {
|
networking.wireguard.interfaces."hydra" = {
|
||||||
ips = [ "fcde:ad::1/64" ];
|
ips = [ "10.3.3.1/24" ];
|
||||||
listenPort = 51235;
|
listenPort = 51235;
|
||||||
|
|
||||||
privateKeyFile = "/var/lib/wireguard/hydra";
|
privateKeyFile = "/var/lib/wireguard/hydra";
|
||||||
|
@ -97,7 +97,7 @@ in
|
||||||
peers = [
|
peers = [
|
||||||
{
|
{
|
||||||
publicKey = "KzL+PKlv4LktIqqTqC9Esw8dkSZN2qSn/vq76UHbOlY=";
|
publicKey = "KzL+PKlv4LktIqqTqC9Esw8dkSZN2qSn/vq76UHbOlY=";
|
||||||
allowedIPs = [ "fcde:ad::2/128" ];
|
allowedIPs = [ "10.3.3.3/32" ];
|
||||||
endpoint = "surgat.dadada.li:51235";
|
endpoint = "surgat.dadada.li:51235";
|
||||||
persistentKeepalive = 25;
|
persistentKeepalive = 25;
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ in
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
||||||
locations."/".extraConfig = ''
|
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" = {
|
networking.wireguard.interfaces."hydra" = {
|
||||||
ips = [ "fcde:ad::2/64" ];
|
ips = [ "10.3.3.1/24" ];
|
||||||
listenPort = 51235;
|
listenPort = 51235;
|
||||||
|
|
||||||
privateKeyFile = "/var/lib/wireguard/hydra";
|
privateKeyFile = "/var/lib/wireguard/hydra";
|
||||||
|
@ -106,7 +106,7 @@ in
|
||||||
peers = [
|
peers = [
|
||||||
{
|
{
|
||||||
publicKey = "CTKwL6+SJIqKXr1DIHejMDgjoxlWPaT78Pz3+JqcNlw=";
|
publicKey = "CTKwL6+SJIqKXr1DIHejMDgjoxlWPaT78Pz3+JqcNlw=";
|
||||||
allowedIPs = [ "fcde:ad::1/128" ];
|
allowedIPs = [ "10.3.3.1/32" ];
|
||||||
persistentKeepalive = 25;
|
persistentKeepalive = 25;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue