Paride Desimone <h...@autistici.org> writes:

> Qualcuno che usa file2ban? Mi occorrerebbe una mano sulla configurazione del 
> ban
> (ipv6 ed ipv4) dopo tre tentativi sbagliati di login su http ed https, porte 
> 80
> e 443.
> Quesato รจ quello che dobrei bannare dopo tre tentativi errati:
>
> 2023-07-25 14:21:47 ERROR logapache [16387]: [::ffff:10.10.253.22] Failed
> authentication for user u'pippo'

Io per nginx ho in /etc/fail2ban/jail.conf quest righe

[nginx-http-auth]

port    = http,https
logpath = %(nginx_error_log)s

[nginx-limit-req]
port    = http,https
logpath = %(nginx_error_log)s

[nginx-botsearch]

port     = http,https
logpath  = %(nginx_error_log)s
maxretry = 2

E la cosa pare funzionare.

--
Ciao
leandro

Rispondere a