<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 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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;}
h2
{mso-style-priority:9;
mso-style-link:"Heading 2 Char";
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:18.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.Heading2Char
{mso-style-name:"Heading 2 Char";
mso-style-priority:9;
mso-style-link:"Heading 2";
font-family:"Times New Roman",serif;
font-weight:bold;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.js-path-segment
{mso-style-name:js-path-segment;}
span.separator
{mso-style-name:separator;}
span.pr-md-4
{mso-style-name:pr-md-4;}
span.lh-default
{mso-style-name:lh-default;}
span.begin-antispam-voting-links
{mso-style-name:begin-antispam-voting-links;}
span.end-antispam-voting-links
{mso-style-name:end-antispam-voting-links;}
span.EmailStyle25
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@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="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hopefully, this helps someone else.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><br>
This seems to be working for me.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"># Fail2Ban configuration file<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">[INCLUDES]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">#before = common.conf<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">[Definition]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">failregex = NOTICE.* .*: Request \'REGISTER\' from '.*' failed for '<HOST>:.*' .* - No matching endpoint found<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> NOTICE.* .*: Request \'REGISTER\' from '.*' failed for '<HOST>:.*' .* - Failed to authenticate<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> NOTICE.* .*: Request \'REGISTER\' from '.*' failed for '<HOST>:.*' .* - Error to authenticate<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> NOTICE.* .*: Request \'INVITE\' from '.*' failed for '<HOST>:.*' .*<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">John Bittner<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Xaccel<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> asterisk-users [mailto:asterisk-users-bounces@lists.digium.com]
<b>On Behalf Of </b>John T. Bittner<br>
<b>Sent:</b> Thursday, June 6, 2019 3:40 PM<br>
<b>To:</b> asterisk-users@lists.digium.com<br>
<b>Subject:</b> [asterisk-users] Fail2ban for asterisk 16 PJSIP<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hello<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Anyone have a working copy of Fail2ban asterisk filter asterisk.conf<o:p></o:p></p>
<p class="MsoNormal">for Asterisk 16 running PJSIP.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have tried 10 different filters but none of them show any matches when testing with
<o:p></o:p></p>
<p class="MsoNormal">fail2ban-regex<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I see date template hits but no matches…. <o:p></o:p></p>
<p class="MsoNormal"><br>
My log<o:p></o:p></p>
<p class="MsoNormal">[2019-06-06 15:37:20] NOTICE[18081] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"2405" <<a href="sip:2405@asterisk">sip:2405@asterisk</a>>' failed for '71.127.239.22:65476' (callid:
<a href="mailto:50670137772977-30593645157868@192.168.1.8">50670137772977-30593645157868@192.168.1.8</a>) - Failed to authenticate<o:p></o:p></p>
<p class="MsoNormal">[2019-06-06 15:37:52] NOTICE[18081] res_pjsip/pjsip_distributor.c: Request 'INVITE' from '"as100" <<a href="sip:as100@95.179.170.109">sip:as100@95.179.170.109</a>>' failed for '188.214.128.172:5076' (callid: 03e7f9d2dcdf4252506c440137e822b7)
- No matching endpoint found<o:p></o:p></p>
<p class="MsoNormal">[2019-06-06 15:37:58] NOTICE[18081] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"2405" <<a href="sip:2405@asterisk">sip:2405@asterisk</a>>' failed for '71.127.239.22:65476' (callid:
<a href="mailto:352844365933467-383842003849650@192.168.1.8">352844365933467-383842003849650@192.168.1.8</a>) - Failed to authenticate<o:p></o:p></p>
<p class="MsoNormal">[2019-06-06 15:37:58] NOTICE[18081] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"2405" <<a href="sip:2405@asterisk">sip:2405@asterisk</a>>' failed for '71.127.239.22:65476' (callid:
<a href="mailto:352844365933467-383842003849650@192.168.1.8">352844365933467-383842003849650@192.168.1.8</a>) - Failed to authenticate<o:p></o:p></p>
<p class="MsoNormal">[2019-06-06 15:37:58] NOTICE[18081] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"2405" <<a href="sip:2405@asterisk">sip:2405@asterisk</a>>' failed for '71.127.239.22:65476' (callid:
<a href="mailto:352844365933467-383842003849650@192.168.1.8">352844365933467-383842003849650@192.168.1.8</a>) - Failed to authenticate<o:p></o:p></p>
<p class="MsoNormal">[2019-06-06 15:37:58] NOTICE[18081] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"2405" <<a href="sip:2405@asterisk">sip:2405@asterisk</a>>' failed for '71.127.239.22:65476' (callid:
<a href="mailto:352844365933467-383842003849650@192.168.1.8">352844365933467-383842003849650@192.168.1.8</a>) - Failed to authenticate<o:p></o:p></p>
<p class="MsoNormal">[2019-06-06 15:38:36] NOTICE[18081] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"2405" <<a href="sip:2405@asterisk">sip:2405@asterisk</a>>' failed for '71.127.239.22:65476' (callid:
<a href="mailto:352413680053562-322991201237060@192.168.1.8">352413680053562-322991201237060@192.168.1.8</a>) - Failed to authenticate<o:p></o:p></p>
<p class="MsoNormal">[2019-06-06 15:38:36] NOTICE[18081] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"2405" <<a href="sip:2405@asterisk">sip:2405@asterisk</a>>' failed for '71.127.239.22:65476' (callid:
<a href="mailto:352413680053562-322991201237060@192.168.1.8">352413680053562-322991201237060@192.168.1.8</a>) - Failed to authenticate<o:p></o:p></p>
<p class="MsoNormal">[2019-06-06 15:38:36] NOTICE[18081] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"2405" <<a href="sip:2405@asterisk">sip:2405@asterisk</a>>' failed for '71.127.239.22:65476' (callid:
<a href="mailto:352413680053562-322991201237060@192.168.1.8">352413680053562-322991201237060@192.168.1.8</a>) - Failed to authenticate<o:p></o:p></p>
<p class="MsoNormal">[2019-06-06 15:38:36] NOTICE[18081] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"2405" <<a href="sip:2405@asterisk">sip:2405@asterisk</a>>' failed for '71.127.239.22:65476' (callid:
<a href="mailto:352413680053562-322991201237060@192.168.1.8">352413680053562-322991201237060@192.168.1.8</a>) - Failed to authenticate<o:p></o:p></p>
<p class="MsoNormal">[2019-06-06 15:39:14] NOTICE[18081] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"2405" <<a href="sip:2405@asterisk">sip:2405@asterisk</a>>' failed for '71.127.239.22:65476' (callid:
<a href="mailto:211973110361898-30014604441241@192.168.1.8">211973110361898-30014604441241@192.168.1.8</a>) - Failed to authenticate<o:p></o:p></p>
<p class="MsoNormal">[2019-06-06 15:39:14] NOTICE[18081] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"2405" <<a href="sip:2405@asterisk">sip:2405@asterisk</a>>' failed for '71.127.239.22:65476' (callid:
<a href="mailto:211973110361898-30014604441241@192.168.1.8">211973110361898-30014604441241@192.168.1.8</a>) - Failed to authenticate<o:p></o:p></p>
<p class="MsoNormal">[2019-06-06 15:39:14] NOTICE[18081] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"2405" <<a href="sip:2405@asterisk">sip:2405@asterisk</a>>' failed for '71.127.239.22:65476' (callid:
<a href="mailto:211973110361898-30014604441241@192.168.1.8">211973110361898-30014604441241@192.168.1.8</a>) - Failed to authenticate<o:p></o:p></p>
<p class="MsoNormal">[2019-06-06 15:39:14] NOTICE[18081] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"2405" <<a href="sip:2405@asterisk">sip:2405@asterisk</a>>' failed for '71.127.239.22:65476' (callid:
<a href="mailto:211973110361898-30014604441241@192.168.1.8">211973110361898-30014604441241@192.168.1.8</a>) - Failed to authenticate<o:p></o:p></p>
<p class="MsoNormal">[2019-06-06 15:39:17] NOTICE[18081] res_pjsip/pjsip_distributor.c: Request 'INVITE' from '"as100" <<a href="sip:as100@95.179.170.109">sip:as100@95.179.170.109</a>>' failed for '188.214.128.172:5071' (callid: 8e12f1560bfe2c3ed5be895108727c46)
- No matching endpoint found<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any help is much appreciated.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">John Bittner<o:p></o:p></p>
<p class="MsoNormal">CTO<o:p></o:p></p>
<p class="MsoNormal"><img border="0" width="172" height="47" id="Picture_x0020_1" src="cid:image001.png@01D51D87.84342CE0" alt="xaccellogoemail"><o:p></o:p></p>
<p class="MsoNormal">380 US Highway 46, Suite 500<o:p></o:p></p>
<p class="MsoNormal">Totowa, NJ 07512<o:p></o:p></p>
<p class="MsoNormal">Phone: 201.806.2602 x2405<o:p></o:p></p>
<p class="MsoNormal">Fax: 201.806.2604<o:p></o:p></p>
<p class="MsoNormal">Cell: 973.390.1090<o:p></o:p></p>
<p class="MsoNormal"><a href="http://www.xaccel.net/"><span style="color:blue">www.xaccel.net</span></a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><i><span style="font-size:7.5pt;color:gray">CONFIDENTIALITY NOTICE:<br>
This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential<br>
and privileged information which should not be shared or forwarded. Any unauthorized review, use, disclosure or distribution<br>
is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the e-mail.</span></i></b><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:13.5pt;font-family:"Times New Roman",serif;color:black;background:white">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black;background:white"><br>
<br>
Teach Canit xAntispam if this mail is spam:<br>
<a href="http://mx1.xantispam.net/canit/b.php?c=s&i=020lvFIiR&m=5b7b9282412f&rlm=xaccel-net">Spam</a><br>
<a href="http://mx1.xantispam.net/canit/b.php?c=n&i=020lvFIiR&m=5b7b9282412f&rlm=xaccel-net">Not spam</a><br>
<a href="http://mx1.xantispam.net/canit/b.php?c=f&i=020lvFIiR&m=5b7b9282412f&rlm=xaccel-net">Forget previous vote</a></span><span style="font-size:13.5pt;font-family:"Times New Roman",serif;color:black;background:white">
</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
</div>
</div>
</body>
</html>