use ip address instead domain name to connect to orbi.
This commit is contained in:
parent
ded4be9f5d
commit
73e8b6e77b
5 changed files with 21 additions and 5 deletions
|
@ -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;
|
||||
# };
|
||||
#};
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
];
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue