ajout choix ssh only ou nginx filters + debug

This commit is contained in:
2023-02-03 16:45:03 +01:00
parent b36d73173b
commit f55af5829e
4 changed files with 65 additions and 23 deletions
@@ -16,14 +16,6 @@ port = http,https
logpath = /var/log/nginx/*error.log
bantime = 259200
#[nginx-badbots]
#enabled = true
#port = http,https
#filter = nginx-badbots
#logpath = /var/log/nginx/access.log
#maxretry = 2
[nginx-badbots]
enabled = true
+18
View File
@@ -0,0 +1,18 @@
[DEFAULT]
ignoreip = 127.0.0.1/8 IP
bantime = 3600
findtime = 3600
#mta = mail
#destemail =
#sendername = Fail2BanAlerts
#action = %(action_mwl)s
[ssh]
enabled = true
port = SSH_PORT
filter = sshd
logpath = /var/log/auth.log
maxretry = 3
bantime = -1