summaryrefslogtreecommitdiffstats
path: root/nixos
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2022-10-02 17:09:43 +0200
committerGitHub <noreply@github.com>2022-10-02 17:09:43 +0200
commitffde4721ab111396ebd06b7ac23d13e7e4eb109c (patch)
treefd5b77a85da8a8ad5400b67eda98fdde528a1b7f /nixos
parent233a62dfb758d633d6a82e4c938ba0cb2e4ecd19 (diff)
parent605a588ea6d952227fe6554011add1650bfe8eb7 (diff)
Merge pull request #194052 from rapenne-s/fail2ban_doc
nixos/fail2ban: improve module documentation
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/security/fail2ban.nix13
1 files changed, 11 insertions, 2 deletions
diff --git a/nixos/modules/services/security/fail2ban.nix b/nixos/modules/services/security/fail2ban.nix
index 29aa49c8aada..e208eed008ae 100644
--- a/nixos/modules/services/security/fail2ban.nix
+++ b/nixos/modules/services/security/fail2ban.nix
@@ -91,8 +91,9 @@ in
example = "nftables-multiport";
description = lib.mdDoc ''
Default banning action (e.g. iptables, iptables-new, iptables-multiport,
- shorewall, etc) It is used to define action_* variables. Can be overridden
- globally or per section within jail.local file
+ iptables-ipset-proto6-allports, shorewall, etc) It is used to
+ define action_* variables. Can be overridden globally or per
+ section within jail.local file
'';
};
@@ -212,10 +213,18 @@ in
filter = apache-nohome
action = iptables-multiport[name=HTTP, port="http,https"]
logpath = /var/log/httpd/error_log*
+ backend = auto
findtime = 600
bantime = 600
maxretry = 5
''';
+ dovecot = '''
+ # block IPs which failed to log-in
+ # aggressive mode add blocking for aborted connections
+ enabled = true
+ filter = dovecot[mode=aggressive]
+ maxretry = 3
+ ''';
}
'';
type = types.attrsOf types.lines;