blob: 949b4863afd8956c51ad5c16c9810f64eda78c06 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# vim: ts=2
{...}: {
services.fail2ban = {
enable = true;
maxretry = 2; # ban after 2 failures
daemonConfig = ''
[Definition]
logtarget = SYSLOG
socket = /run/fail2ban/fail2ban.sock
pidfile = /run/fail2ban/fail2ban.pid
dbfile = /srv/fail2ban/fail2ban.sqlite3
'';
bantime-increment = {
enable = true;
rndtime = "8m";
overalljails = true;
multipliers = "2 4 16 128 256";
maxtime = "72h";
};
};
}
|