use ip address instead domain name to connect to orbi.

This commit is contained in:
Ingolf Wagner 2024-05-17 19:50:56 +02:00
parent ded4be9f5d
commit 73e8b6e77b
Signed by: palo
GPG key ID: 76BF5F1928B9618B
5 changed files with 21 additions and 5 deletions

View file

@ -11,5 +11,17 @@ with lib;
};
};
# todo: use networking.wireguard instead of networking wg-quick
# with dynamicEndpointRefreshSeconds
#config = {
# systemd.services.wg-quick-wg0.serviceConfig = {
# Restart = "always";
# RestartSec = 50;
# Type = mkForce "simple";
# RemainAfterExit = mkForce false;
# };
#};
}

View file

@ -1,6 +1,6 @@
{ config, ... }:
{
networking.firewall.allowedUDPPorts = [ 51820 ];
#networking.firewall.allowedUDPPorts = [ 51820 ];
sops.secrets.wireguard_private = { };
# Enable WireGuard
@ -18,7 +18,8 @@
# robi
publicKey = "uWR93xJe5oEbX3DsAYpOS9CuSg1VmXEQxJzdlJpe3DU=";
allowedIPs = [ "10.100.0.1/24" ];
endpoint = "ingolf-wagner.de:51820";
#endpoint = "ingolf-wagner.de:51820";
endpoint = "95.216.66.212:51820";
}
];
};

View file

@ -21,7 +21,8 @@
# orbi
publicKey = "uWR93xJe5oEbX3DsAYpOS9CuSg1VmXEQxJzdlJpe3DU=";
allowedIPs = [ "10.100.0.1/24" ];
endpoint = "ingolf-wagner.de:51820";
#endpoint = "ingolf-wagner.de:51820";
endpoint = "95.216.66.212:51820";
persistentKeepalive = 25;
}
];

View file

@ -18,7 +18,8 @@
# robi
publicKey = "uWR93xJe5oEbX3DsAYpOS9CuSg1VmXEQxJzdlJpe3DU=";
allowedIPs = [ "10.100.0.1/24" ];
endpoint = "ingolf-wagner.de:51820";
#endpoint = "ingolf-wagner.de:51820";
endpoint = "95.216.66.212:51820";
}
];
};

View file

@ -18,7 +18,8 @@
# robi
publicKey = "uWR93xJe5oEbX3DsAYpOS9CuSg1VmXEQxJzdlJpe3DU=";
allowedIPs = [ "10.100.0.1/24" ];
endpoint = "ingolf-wagner.de:51820";
#endpoint = "ingolf-wagner.de:51820";
endpoint = "95.216.66.212:51820";
}
];
};