I am running fail2 ban of course and am being hit with an attack that is not being jailed by fail2ban. I see the following line in my asterisk log:
[2010-12-13 08:52:10] NOTICE[3430] chan_sip.c: Registration from '"108" <sip:108@MYEXTIP>' failed for '118.123.205.180' - Device does not match ACL
This is not being jailed and the 6000 attempts at a time is killing the bandwidth. Unfortunately I need to have the ports open on my router for external extensions. Now after looking at the asterisk.conf file for fail2ban, I see:
failregex = NOTICE.* .*: Registration from '.*' failed for '<HOST>' - Wrong password
NOTICE.* .*: Registration from '.*' failed for '<HOST>' - No matching peer found
NOTICE.* .*: Registration from '.*' failed for '<HOST>' - Username/auth name mismatch
NOTICE.* <HOST> failed to authenticate as '.*'$
NOTICE.* .*: No registration for peer '.*' (from )
NOTICE.* .*: Host failed MD5 authentication for '.*' (.*)
So I assume I need to add a line. Can anyone assist me with this? Also, Ward, shouldn't this be added to fail2ban for the future?
Thanks in advance.
[2010-12-13 08:52:10] NOTICE[3430] chan_sip.c: Registration from '"108" <sip:108@MYEXTIP>' failed for '118.123.205.180' - Device does not match ACL
This is not being jailed and the 6000 attempts at a time is killing the bandwidth. Unfortunately I need to have the ports open on my router for external extensions. Now after looking at the asterisk.conf file for fail2ban, I see:
failregex = NOTICE.* .*: Registration from '.*' failed for '<HOST>' - Wrong password
NOTICE.* .*: Registration from '.*' failed for '<HOST>' - No matching peer found
NOTICE.* .*: Registration from '.*' failed for '<HOST>' - Username/auth name mismatch
NOTICE.* <HOST> failed to authenticate as '.*'$
NOTICE.* .*: No registration for peer '.*' (from )
NOTICE.* .*: Host failed MD5 authentication for '.*' (.*)
So I assume I need to add a line. Can anyone assist me with this? Also, Ward, shouldn't this be added to fail2ban for the future?
Thanks in advance.