From: Yaroslav H. <li...@on...> - 2006-03-24 15:56:48
|
Hi Rarig, Thank you for testing -- damn me, again a side-effect of coding at night -- a bug .... uff -- I was still basing my output on caught "INFO" entries... now it MUST work! ;-) also I've added (all) entry, which is just a sum of ban/unbans across all entries. Example with your logs: Banned services with Fail2Ban: SSH: 210.103.124.7 1 ban(s) 1 unban(s): 5 failures 210.14.28.59 1 ban(s) 1 unban(s): 5 failures 165.230.95.72 4 ban(s) 4 unban(s): 5 5 5 5 failures (all) 6 ban(s) 6 unban(s) VSFTPD: (all) 1 ban(s) 1 unban(s) 72.9.234.170 1 ban(s) 1 unban(s) Example with many logs: Banned services with Fail2Ban: SSH: 213.76.149.226 1 ban(s) 1 unban(s) 66.34.52.10 1 ban(s) 1 unban(s) 217.11.107.130 (fw-2.saimanet.net) 1 ban(s) 1 unban(s) 202.63.117.71 (yantra.uceou.edu) 2 ban(s) 2 unban(s) 201.224.172.195 2 ban(s) 2 unban(s) 24.218.152.41 (c-24-218-152-41.hsd1.ma.comcast.net) 2 ban(s) 2 unban(s) 210.22.12.56 (sunym.gdsz.cncnet.net) 2 ban(s) 2 unban(s) 203.86.41.223 2 ban(s) 2 unban(s) 125.240.172.5 2 ban(s) 2 unban(s) 165.230.95.72 (tractatus.rutgers.edu) 4 ban(s) 4 unban(s) 217.199.176.86 (fw.ns.aswood.net) 2 ban(s) 2 unban(s) 83.239.15.116 2 ban(s) 2 unban(s) 218.146.254.184 2 ban(s) 2 unban(s) (all) 25 ban(s) 25 unban(s) I hope this works fine -- please provide feedback -- .-. =------------------------------ /v\ ----------------------------= Keep in touch // \\ (yoh@|www.)onerussian.com Yaroslav Halchenko /( )\ ICQ#: 60653192 Linux User ^^-^^ [175555] |