mirror of
https://github.com/deunix-educ/Fail2banMqttActionBanishment.git
synced 2026-08-24 03:11:58 +02:00
First commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user