diff --git a/public/network-ipv6.nix b/public/network-ipv6.nix index 16337ed..d3f9f0d 100644 --- a/public/network-ipv6.nix +++ b/public/network-ipv6.nix @@ -22,5 +22,8 @@ mkIf true { "net.ipv6.conf.default.temp_prefered_lft" = 3600; # 1 heure "net.ipv6.conf.default.temp_valid_lft" = 3600; # 1 heure "net.ipv6.conf.default.use_tempaddr" = 2; # activé - }; + + "net.ipv6.conf.all.forwarding" = true; + "net.ipv6.conf.default.forwarding" = true; + }; } diff --git a/public/network.nix b/public/network.nix index cd89819..ed45a70 100644 --- a/public/network.nix +++ b/public/network.nix @@ -15,4 +15,9 @@ mkIf true { networking.extraHosts = '' 127.0.0.1 ${config.networking.hostName} ''; + + boot.kernel.sysctl = { + "net.ipv4.conf.all.forwarding" = true; + "net.ipv4.conf.default.forwarding" = true; + }; }