mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
Merge pull request #273510 from rnhmjoj/pr-fix-ping
nixos/networking-interfaces: fix rootless ping
This commit is contained in:
commit
a0f49243e4
@ -1396,6 +1396,8 @@ in
|
||||
"net.ipv4.conf.all.forwarding" = mkDefault (any (i: i.proxyARP) interfaces);
|
||||
"net.ipv6.conf.all.disable_ipv6" = mkDefault (!cfg.enableIPv6);
|
||||
"net.ipv6.conf.default.disable_ipv6" = mkDefault (!cfg.enableIPv6);
|
||||
# allow all users to do ICMP echo requests (ping)
|
||||
"net.ipv4.ping_group_range" = mkDefault "0 2147483647";
|
||||
# networkmanager falls back to "/proc/sys/net/ipv6/conf/default/use_tempaddr"
|
||||
"net.ipv6.conf.default.use_tempaddr" = tempaddrValues.${cfg.tempAddresses}.sysctl;
|
||||
} // listToAttrs (forEach interfaces
|
||||
|
Loading…
Reference in New Issue
Block a user