about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorfasheng <fasheng@fasheng.info>2023-11-29 16:53:15 +0800
committerBjørn Forsman <bjorn.forsman@gmail.com>2023-11-29 16:17:53 +0100
commit52c81e882bfa4ec344da2e716d8f52912f46b87b (patch)
tree8000c7a030c1b0643cace96b2be2a95543f0699c /nixos
parent6ead1904af204d991a2ed1d092972ae496b2993d (diff)
downloadnixlib-52c81e882bfa4ec344da2e716d8f52912f46b87b.tar
nixlib-52c81e882bfa4ec344da2e716d8f52912f46b87b.tar.gz
nixlib-52c81e882bfa4ec344da2e716d8f52912f46b87b.tar.bz2
nixlib-52c81e882bfa4ec344da2e716d8f52912f46b87b.tar.lz
nixlib-52c81e882bfa4ec344da2e716d8f52912f46b87b.tar.xz
nixlib-52c81e882bfa4ec344da2e716d8f52912f46b87b.tar.zst
nixlib-52c81e882bfa4ec344da2e716d8f52912f46b87b.zip
nixos/fail2ban: fix default value for banaction-allports
It's iptables-allports instead of iptables-allport.

https://github.com/fail2ban/fail2ban/tree/master/config/action.d
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/security/fail2ban.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/security/fail2ban.nix b/nixos/modules/services/security/fail2ban.nix
index 235f29ab8a6a..3400df370e48 100644
--- a/nixos/modules/services/security/fail2ban.nix
+++ b/nixos/modules/services/security/fail2ban.nix
@@ -128,8 +128,8 @@ in
       };
 
       banaction-allports = mkOption {
-        default = if config.networking.nftables.enable then "nftables-allport" else "iptables-allport";
-        defaultText = literalExpression ''if config.networking.nftables.enable then "nftables-allport" else "iptables-allport"'';
+        default = if config.networking.nftables.enable then "nftables-allports" else "iptables-allports";
+        defaultText = literalExpression ''if config.networking.nftables.enable then "nftables-allports" else "iptables-allports"'';
         type = types.str;
         description = lib.mdDoc ''
           Default banning action (e.g. iptables, iptables-new, iptables-multiport,