net: activation du forwarding pour IPv4 et IPv6

pull/7/head
Jean-Pierre PRUNARET 9 years ago
parent b51c69d330
commit a2ee566f15

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

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

Loading…
Cancel
Save