Merge pull request #139337 from Artturin/tempaddr
This commit is contained in:
@@ -527,7 +527,6 @@ in {
|
|||||||
|
|
||||||
{
|
{
|
||||||
networkmanager.connectionConfig = {
|
networkmanager.connectionConfig = {
|
||||||
"ipv6.ip6-privacy" = 2;
|
|
||||||
"ethernet.cloned-mac-address" = cfg.ethernet.macAddress;
|
"ethernet.cloned-mac-address" = cfg.ethernet.macAddress;
|
||||||
"wifi.cloned-mac-address" = cfg.wifi.macAddress;
|
"wifi.cloned-mac-address" = cfg.wifi.macAddress;
|
||||||
"wifi.powersave" =
|
"wifi.powersave" =
|
||||||
|
|||||||
@@ -1233,6 +1233,8 @@ in
|
|||||||
"net.ipv4.conf.all.forwarding" = mkDefault (any (i: i.proxyARP) interfaces);
|
"net.ipv4.conf.all.forwarding" = mkDefault (any (i: i.proxyARP) interfaces);
|
||||||
"net.ipv6.conf.all.disable_ipv6" = mkDefault (!cfg.enableIPv6);
|
"net.ipv6.conf.all.disable_ipv6" = mkDefault (!cfg.enableIPv6);
|
||||||
"net.ipv6.conf.default.disable_ipv6" = mkDefault (!cfg.enableIPv6);
|
"net.ipv6.conf.default.disable_ipv6" = mkDefault (!cfg.enableIPv6);
|
||||||
|
# networkmanager falls back to "/proc/sys/net/ipv6/conf/default/use_tempaddr"
|
||||||
|
"net.ipv6.conf.default.use_tempaddr" = tempaddrValues.${cfg.tempAddresses}.sysctl;
|
||||||
} // listToAttrs (flip concatMap (filter (i: i.proxyARP) interfaces)
|
} // listToAttrs (flip concatMap (filter (i: i.proxyARP) interfaces)
|
||||||
(i: [(nameValuePair "net.ipv4.conf.${replaceChars ["."] ["/"] i.name}.proxy_arp" true)]))
|
(i: [(nameValuePair "net.ipv4.conf.${replaceChars ["."] ["/"] i.name}.proxy_arp" true)]))
|
||||||
// listToAttrs (forEach interfaces
|
// listToAttrs (forEach interfaces
|
||||||
|
|||||||
Reference in New Issue
Block a user