Hola, he visto que tenemos un servidor que lo estan atacando desde muchas ips, tenemos el fail2ban activado el problema es que hacen como 10 20 intentos por segundo y el fail2ban tarda como 15 o 30 segundos en bloquearlo si no mas.
La pregunta es, si hay forma de limitar el numero de intentos de acceso por ip a por ejemplo 2 o 3 o 5 por segundo ? no se si con un firewall o similar seria una opcion o el propio fail2ban tiene alguna opcion para bloquear en menos tiempo
les pongo un ejemplo del log
2017-11-08 11:39:15] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:15] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:15] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:15] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:15] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:15] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:16] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:16] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:16] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:16] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:16] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:16] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:16] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:16] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:16] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:16] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:16] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:16] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:16] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:16] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:16] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:16] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:17] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:17] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:17] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:17] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:17] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:17] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:17] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:17] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:17] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:17] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:17] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:17] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:17] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:17] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:17] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:17] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:18] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:18] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:18] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:18] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:18] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:18] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:18] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:18] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:18] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:18] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:18] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
[2017-11-08 11:39:18] NOTICE[3147]: chan_sip.c:28316 handle_request_register: Registration from '"30" <sip:30@ipdelservidor>' failed for '195.154.230.39:5876' - Wrong password
a ver si alguien le ha pasado y sabe como solucionarlo hasta la fecha el fail2ban ha funcionado perfectamente, pero como van cambiando las ips es por seguridad mas bien y evitar ataques
gracias!