<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Not sure if this has been answered but I cannot find a solution.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am running Asterisk 1.4.26.3<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am seeing the following lines in my log files:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>A: [2013-03-05 13:54:27] NOTICE[6928] chan_sip.c: Failed to authenticate user <sip:192.210.138.12>;tag=DmVIjOlfYiiL<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>B: [2013-03-05 12:20:00] NOTICE[6928] chan_sip.c: Failed to authenticate user 101<sip:101@my.asterisk.server.ip>;tag=eec630f1<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>C: [2013-03-03 05:15:02] NOTICE[31158] chan_sip.c: Registration from '"101381"<sip:101381@my.asterisk.server.ip>' failed for '85.25.23.129' - No matching peer found<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Now Two Part Question:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Part 1: <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I understand that line C is from some soft phone like Xlite, IP phone, or program trying to register extension 101381 to my server and the user exten does not exist. I don’t understand the method for A or B. I don’t understand what generates that error message. Can someone explain?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Part 2:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Fail2ban blocks line C as per the regex in filters/asterisk.conf. What I don’t understand is why doesn’t lines A or B have a built in regex line? This goes back to not knowing the method that generates the error message in part 1. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Also, can I update the regex in asterisk.conf, <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>From: NOTICE.* .*: Failed to authenticate user <a href="mailto:.*@%3cHOST%3e.*">.*@<HOST>.*</a> <o:p></o:p></p><p class=MsoNormal>To: NOTICE.* .*: Failed to authenticate user .*<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>It should ban both A and B, along with the original Regex line that I modified.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Question is, would this present a problem under normal circumstances? I know when the line comes up with my.asterisk.server.ip it will get ignored because I am in the ignoreip list but I want to make sure it will be OK to adjust.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks community!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>-E<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>