mirror of
https://github.com/deunix-educ/Fail2banMqttActionBanishment.git
synced 2026-08-24 03:11:58 +02:00
26 lines
648 B
INI
26 lines
648 B
INI
# Récidive — escalade automatique des bans
|
|
# Les jails recidive-* sont exclus de la détection croisée par le filtre
|
|
# (ignoreregex = \[recidive.*\])
|
|
|
|
# Niveau 1 : 3 bans en 24h → 24h de ban
|
|
[recidive]
|
|
enabled = true
|
|
filter = recidive-filter
|
|
logpath = /var/log/fail2ban.log
|
|
action = f2b-iptables-allports
|
|
f2b-mqtt-action-banisher
|
|
findtime = 1d
|
|
bantime = 1d
|
|
maxretry = 3
|
|
|
|
# Niveau 2 : 3 bans en 1 semaine → ban permanent
|
|
[recidive-hard]
|
|
enabled = true
|
|
filter = recidive-filter
|
|
logpath = /var/log/fail2ban.log
|
|
action = f2b-iptables-allports
|
|
f2b-mqtt-action-banisher
|
|
findtime = 1w
|
|
bantime = -1
|
|
maxretry = 3
|