net: activation du forwarding pour IPv4 et IPv6

This commit is contained in:
2016-11-28 19:43:51 +01:00
parent b51c69d330
commit a2ee566f15
2 changed files with 9 additions and 1 deletions

View File

@@ -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;
};
}

View File

@@ -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;
};
}