Tweak fail2ban defaults

This commit is contained in:
Henrik Lissner 2021-01-31 18:20:46 -05:00
parent 68fa845a73
commit c32a1846e0

View file

@ -13,20 +13,18 @@ in {
enable = true; enable = true;
ignoreIP = [ "127.0.0.1/16" "192.168.1.0/24" ]; ignoreIP = [ "127.0.0.1/16" "192.168.1.0/24" ];
banaction-allports = "iptables-allports"; banaction-allports = "iptables-allports";
jails = { bantime-increment = {
DEFAULT = '' enable = true;
maxtime = "168h";
factor = "4";
};
jails.DEFAULT = ''
maxretry = 5
blocktype = DROP blocktype = DROP
bantime = 6h bantime = 1h
findtime = 15m
'';
# Harsher defaults for sshd because it's all key based. Auth failures
# are less likely to be legit here.
sshd = ''
bantime = 24h
findtime = 1h findtime = 1h
''; '';
}; };
};
# Extra filters # Extra filters
environment.etc = { environment.etc = {