diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2024-01-30 16:02:49 -0500 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2024-01-30 16:02:49 -0500 |
commit | 6a52b310565b2f0c93fe3e069394ed4a8aef81b0 (patch) | |
tree | 69ccdf60241cc827fdedcab77a6736f460d9191d | |
parent | 610c83285c80d255ad43793dee4beab4cee8acff (diff) |
Router
-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 ]; |