<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">eherr wrote:<br>
</div>
<blockquote cite="mid:51364c88.47c3e00a.78d4.ffffed22@mx.google.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<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]-->
<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</p>
</div>
</blockquote>
Very VERY old. If you need to continue in 1.4, you should really up
to the last 1.4.44<br>
Many MANY changes and broken changes between 1.4.26 and 1.4.44<br>
<br>
John Novack<br>
<br>
<blockquote cite="mid:51364c88.47c3e00a.78d4.ffffed22@mx.google.com"
type="cite">
<div class="WordSection1">
<p class="MsoNormal"><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<a class="moz-txt-link-rfc2396E" href="mailto:sip:101@my.asterisk.server.ip"><sip:101@my.asterisk.server.ip></a>;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"<a class="moz-txt-link-rfc2396E" href="mailto:sip:101381@my.asterisk.server.ip"><sip:101381@my.asterisk.server.ip></a>' 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 moz-do-not-send="true" 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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a> --
New to Asterisk? Join us for a live introductory webinar every Thurs:
<a class="moz-txt-link-freetext" href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a>
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="10000">--
Dog is my Co-pilot</pre>
</body>
</html>