On 5/8/21 11:03 AM, Dan Egli wrote:

> That list is nearly 400 
> IPs long! So I was curious. I look at fail2ban.log. It's noticing 
> everything okay, but it keeps saying the hosts are already banned. They 
> are not.
>
  fail2ban is not all that stable. We have v0.10.4. It seems that every 2-3
weeks it loses its mind. A key indicator is "already banned." A restart clears
the fog.
  Here is a bash script excerpt to show the number of IPs banned for each jail
(change "jails" as required):

  jails="assp-1 suricata-1 suricata-2 cgpro-imap cgpro-smtp"

  for jail in $jails

  do

    sudo fail2ban-client status $jail | grep -v "Banned IP list"

  done



-- 
James Moe
moe dot james at sohnen-moe dot com
520.743.3936
Think.


_______________________________________________
Fail2ban-users mailing list
Fail2ban-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fail2ban-users

Reply via email to