From e1ec254cf0ad7f44c9712739decbb53bd57e9a1c Mon Sep 17 00:00:00 2001 From: clerie Date: Wed, 13 Jul 2022 21:22:46 +0200 Subject: [PATCH] Enable IP forward to router --- hosts/router/configuration.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hosts/router/configuration.nix b/hosts/router/configuration.nix index df81895..beabae6 100644 --- a/hosts/router/configuration.nix +++ b/hosts/router/configuration.nix @@ -35,6 +35,17 @@ networking.nameservers = [ "10.42.10.1" "2a01:4f8:1c0c:8221::1" ]; + boot.kernel.sysctl = { + "net.ipv4.conf.all.forwarding" = true; + "net.ipv4.conf.default.forwarding" = true; + + "net.ipv6.conf.all.accept_ra" = 0; + "net.ipv6.conf.default.accept_ra" = 0; + + "net.ipv6.conf.all.forwarding" = true; + "net.ipv6.conf.default.forwarding" = true; + }; + services.radvd.enable = true; services.kea.dhcp4 = {