diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-11-28 07:26:16 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2025-01-05 14:48:53 +0530 |
commit | 9ec8d2b6b373cf242f7da86bf6f7b26bca7e222b (patch) | |
tree | c30fbe3db92815b16394d6413cdd8a09d4ebc204 | |
parent | ca304cd7d585958d1df97135f981c186b8a306ae (diff) |
Revert "kay/router: fine tune router advertisement"
This reverts commit 11c905e7ed26f03c05a72b82cabcfd3e3d0d7599.
-rw-r--r-- | os/kay/modules/router.nix | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/os/kay/modules/router.nix b/os/kay/modules/router.nix index 7cd3763..d45b7c3 100644 --- a/os/kay/modules/router.nix +++ b/os/kay/modules/router.nix @@ -40,7 +40,7 @@ in { # https://github.com/NixOS/nixpkgs/blob/e8c38b73aeb218e27163376a2d617e61a2ad9b59/nixos/modules/services/networking/dhcpcd.nix#L13 # without this dhcpcd will not run, and if we set it to wanInterface, # when pppd(ppp0 iface) exit it'll take out wan vlan iface as well - ${wanInterface}.useDHCP = true; + lo.useDHCP = true; }; firewall = { allowedUDPPorts = [ 53 67 ]; @@ -105,12 +105,11 @@ in { AdvLinkMTU ${toString wanMTU}; MinRtrAdvInterval 3; - MaxRtrAdvInterval 6; - AdvDefaultLifetime 60; + MaxRtrAdvInterval 10; prefix ::/64 { - AdvPreferredLifetime 30; - AdvValidLifetime 60; + AdvPreferredLifetime 60; + AdvValidLifetime 120; }; }; ''; |