kerrigan: configure radvd for IPv6 forwarding

This commit is contained in:
Luke Granger-Brown 2023-01-21 19:54:18 +00:00
parent d3fdb0b04d
commit 6fd15f1080

View file

@ -30,6 +30,12 @@ in
boot.kernelParams = [ "console=ttyS0,115200n8" ]; boot.kernelParams = [ "console=ttyS0,115200n8" ];
boot.initrd.kernelModules = [ "phy-mvebu-cp110-utmi" ]; boot.initrd.kernelModules = [ "phy-mvebu-cp110-utmi" ];
boot.kernel.sysctl = {
"net.ipv4.ip_forward" = "1";
"net.ipv6.conf.default.forwarding" = "1";
"net.ipv6.conf.all.forwarding" = "1";
};
networking = { networking = {
hostName = "kerrigan"; hostName = "kerrigan";
domain = "as205479.net"; domain = "as205479.net";
@ -75,5 +81,21 @@ in
${populate-boot-builder} -c ${config.system.build.toplevel} -d ./files/boot ${populate-boot-builder} -c ${config.system.build.toplevel} -d ./files/boot
''; '';
services.radvd = {
enable = true;
config = ''
interface br0 {
AdvSendAdvert on;
AdvLinkMTU 1280;
prefix ffff:ffff:ffff:ffff::/64 {
Base6Interface wwan0;
AdvValidLifetime 600;
AdvPreferredLifetime 300;
}
}
'';
};
system.stateVersion = "23.05"; system.stateVersion = "23.05";
} }