mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
nixos/nix-daemon-firewall: Fix firewall checking
This commit is contained in:
parent
dd9cc36cd0
commit
7ea17890e5
2 changed files with 7 additions and 3 deletions
|
|
@ -9,13 +9,13 @@ in
|
|||
enable = lib.mkEnableOption "firewalling for outgoing traffic of the nix daemon";
|
||||
|
||||
allowLoopback = lib.mkOption {
|
||||
description = "Whether not not to allow traffic on the loopback interface. Traffic is still subject to protocol/port rules";
|
||||
description = "Whether to allow traffic on the loopback interface. Traffic is still subject to protocol/port rules";
|
||||
default = false;
|
||||
example = true;
|
||||
};
|
||||
|
||||
allowPrivateNetworks = lib.mkOption {
|
||||
description = "Whether not not to allow traffic to local networks. Traffic is still subject to protocol/port rules. Note that this option may break DNS resolution when the DNS resolver is in a local network";
|
||||
description = "Whether to allow traffic to local networks. Traffic is still subject to protocol/port rules. Note that this option may break DNS resolution when the DNS resolver is in a local network";
|
||||
default = true;
|
||||
example = false;
|
||||
};
|
||||
|
|
@ -137,5 +137,9 @@ in
|
|||
}
|
||||
}
|
||||
'';
|
||||
# Not supported by LKL yet so the ruleset check would fail
|
||||
networking.nftables.preCheckRuleset = ''
|
||||
sed -i 's/socket cgroupv2 level 2 @nix_daemon//g' ruleset.conf
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ let
|
|||
hash = hashes.a;
|
||||
};
|
||||
|
||||
# Generates a file but tires to resolve via DNS first
|
||||
# Generates a file but tries to resolve via DNS first
|
||||
resolver = pkgs.writeText "pinger.nix" ''
|
||||
derivation {
|
||||
name = "resolver";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue