From 017dca51fa46df4f1b02f57eb17feaa75a1916ed Mon Sep 17 00:00:00 2001 From: Simon Lackerbauer Date: Sun, 22 Mar 2020 18:11:36 +0100 Subject: [PATCH] fail2ban: fix firewall warning --- nixos/modules/services/security/fail2ban.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/security/fail2ban.nix b/nixos/modules/services/security/fail2ban.nix index 976b01fd10ee..3f84f9c2560c 100644 --- a/nixos/modules/services/security/fail2ban.nix +++ b/nixos/modules/services/security/fail2ban.nix @@ -216,7 +216,7 @@ in config = mkIf cfg.enable { - warnings = mkIf (config.networking.firewall.enable == false || config.networking.nftables.enable == false) [ + warnings = mkIf (config.networking.firewall.enable == false && config.networking.nftables.enable == false) [ "fail2ban can not be used without a firewall" ];