fail2ban - bantime 30min

This commit is contained in:
mhsanaei 2024-12-18 13:23:32 +01:00
parent 0fb0df7056
commit d804043a18
No known key found for this signature in database
GPG Key ID: D875CD086CF668A0

View File

@ -1278,8 +1278,8 @@ run_speedtest() {
}
create_iplimit_jails() {
# Use default bantime if not passed => 15 minutes
local bantime="${1:-15}"
# Use default bantime if not passed => 30 minutes
local bantime="${1:-30}"
# Uncomment 'allowipv6 = auto' in fail2ban.conf
sed -i 's/#allowipv6 = auto/allowipv6 = auto/g' /etc/fail2ban/fail2ban.conf