Author SHA1 Message Date
CaZzzer 9760d1f8c8 WIP: router: attempt static ipv6 gateway on wan 2025-03-11 23:25:26 -07:00
CaZzzer bc7fb86f2c WIP: router: temporarily disable lan10 2025-03-09 21:53:12 -07:00
+1 -26
View File
@@ -326,7 +326,6 @@ in
duid duid
ipv6only ipv6only
nohook resolv.conf, yp, hostname, ntp nohook resolv.conf, yp, hostname, ntp
nogateway
option rapid_commit option rapid_commit
# this doesn't play well with networkd # this doesn't play well with networkd
@@ -338,7 +337,7 @@ in
# request the leases just for routing (so that the att box knows we're here) # request the leases just for routing (so that the att box knows we're here)
# actual ip assignments are static, based on $pdFromWan # actual ip assignments are static, based on $pdFromWan
ia_pd 1/${ifs.lan.net6} - ia_pd 1/${ifs.lan.net6} -
# ia_pd 10/${ifs.lan10.net6} - ia_pd 10/${ifs.lan10.net6} -
# ia_pd 20/${pdFromWan}d::/64 - # for opnsense (legacy services) # ia_pd 20/${pdFromWan}d::/64 - # for opnsense (legacy services)
ia_pd 30/${ifs.lan30.net6} - ia_pd 30/${ifs.lan30.net6} -
ia_pd 40/${ifs.lan40.net6} - ia_pd 40/${ifs.lan40.net6} -
@@ -347,30 +346,6 @@ in
# ia_pd 8 - # ia_pd 8 -
''; '';
systemd.timers."restart-networkd" = {
};
systemd.timers."restart-networkd" = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "1m";
OnUnitActiveSec = "1m";
Unit = "restart-networkd.service";
};
};
systemd.services."restart-networkd" = {
script = ''
set -eu
${pkgs.systemd}/bin/systemctl restart systemd-networkd
'';
serviceConfig = {
Type = "oneshot";
User = "root";
};
};
networking.useNetworkd = true; networking.useNetworkd = true;
systemd.network.enable = true; systemd.network.enable = true;
systemd.network = { systemd.network = {