diff options
Diffstat (limited to 'modules/router.nix')
-rw-r--r-- | modules/router.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/router.nix b/modules/router.nix index 33e8407..1e05b08 100644 --- a/modules/router.nix +++ b/modules/router.nix @@ -50,6 +50,14 @@ let "net.ipv4.conf.default.forwarding" = true; "net.ipv6.conf.all.forwarding" = true; "net.ipv6.conf.default.forwarding" = true; + # Do not prevent IPv6 autoconfiguration. + # See <http://strugglers.net/~andy/blog/2011/09/04/linux-ipv6-router-advertisements-and-forwarding/>. + "net.ipv6.conf.all.accept_ra" = 2; + "net.ipv6.conf.default.accept_ra" = 2; + + # Forward IPv6 packets. + "net.ipv6.conf.all.forwarding" = true; + "net.ipv6.conf.default.forwarding" = true; }; environment.systemPackages = with pkgs; [ tcpdump ]; |