activation des adresses ipv6 temporaires
-> il y a donc plusieurs @IPv6 affectées à une machine. Une adresse qui ne devrait pas changer entre les reboot + une adresse qui change régulièrement (préférence 1h, valide 1jour)
This commit is contained in:
1
base.nix
1
base.nix
@@ -4,5 +4,6 @@
|
||||
imports = [
|
||||
./tools.nix
|
||||
./localisation.nix
|
||||
./networking.nix
|
||||
];
|
||||
}
|
||||
|
||||
17
networking.nix
Normal file
17
networking.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
# Utilisation d'adresse IPv6 temporaire
|
||||
# https://blog.linitx.com/control-privacy-addressing-ipv6-linux/
|
||||
|
||||
boot.kernel.sysctl = {
|
||||
"net.ipv6.conf.all.temp_prefered_lft" = 3600; # 1 heure
|
||||
"net.ipv6.conf.all.temp_valid_lft" = 86400; # 1 jour
|
||||
"net.ipv6.conf.all.use_tempaddr" = 2; # activé
|
||||
|
||||
"net.ipv6.conf.default.temp_prefered_lft" = 3600; # 1 heure
|
||||
"net.ipv6.conf.default.temp_valid_lft" = 86400; # 1 jour
|
||||
"net.ipv6.conf.default.use_tempaddr" = 2; # activé
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user