Thanks to the team at PIAF for keeping security at forefront of development.
IPtables and Fail2ban are doing a great job but in my opinion, Fail2ban is a reactive solution. What we need is a proactive solution. With fail2ban's findtime, there is too much time between checks of the logs.
This is what I received:
The IP 92.82.128.92 has just been banned by Fail2Ban after
901 attempts against ASTERISK.
I was hoping someone has a soultion whereby login attempts to Asterisk are checked live as in SSH or Webmin. After three attempts you get kicked off.
901 attempts in 10 seconds is a little scary. (See the first and last three(3) log entries.)
[2009-02-24 03:15:45] NOTICE[3549] chan_sip.c: Registration from '"3382602603"<sip:
[email protected]>' failed for '92.82.128.92' - No matching peer found
[2009-02-24 03:15:45] NOTICE[3549] chan_sip.c: Registration from '"100"<sip:
[email protected]>' failed for '92.82.128.92' - No matching peer found
[2009-02-24 03:15:45] NOTICE[3549] chan_sip.c: Registration from '"101"<sip:
[email protected]>' failed for '92.82.128.92' - No matching peer found
Last 3:
[2009-02-24 03:15:55] NOTICE[3549] chan_sip.c: Registration from '"997"<sip:
[email protected]>' failed for '92.82.128.92' - No matching peer found
[2009-02-24 03:15:55] NOTICE[3549] chan_sip.c: Registration from '"998"<sip:
[email protected]>' failed for '92.82.128.92' - No matching peer found
[2009-02-24 03:15:55] NOTICE[3549] chan_sip.c: Registration from '"999"<sip:
[email protected]>' failed for '92.82.128.92' - No matching peer found
Any help would be appreciated.