<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Hello Matthias,<br></div><div>you can try with:<br></div><div>    block_useragents:<br>      action: reject<br>      enable: etc<br>      mode: blacklist<br>      ua_patterns:<br>        - "friendly-scanner"<br>        - "^sipcli.+"<br>        - "sipvicious"</div><div><br></div><div>Hope this helps.<br></div><div>Andrew<br></div><div><br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Hohl Matthias" <matthias.hohl@telematica.at><br><b>To: </b>spce-user@lists.sipwise.com<br><b>Sent: </b>Friday, December 14, 2018 12:50:16 PM<br><b>Subject: </b>[Spce-user] User-Agent string pattern for config.yml<br><div><br></div><style><!--

@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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}

p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
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;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;}
p.listitem, li.listitem, div.listitem
        {mso-style-name:listitem;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}

@list l0
        {mso-list-id:865025807;
        mso-list-template-ids:-1244245110;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:72.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:108.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:144.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:180.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:216.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:252.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:288.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:324.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><div class="WordSection1"><p class="MsoNormal">Hello,</p><p class="MsoNormal"><span style="mso-fareast-language:DE-AT"> </span></p><p class="MsoNormal"><span style="mso-fareast-language:DE-AT" lang="EN-US">can you tell me how the string has to look like?</span></p><p class="MsoNormal"><span style="mso-fareast-language:DE-AT" lang="EN-US"> </span></p><p class="listitem" style="margin-left:0cm;text-indent:-18.0pt;mso-list:l0 level1 lfo1;background:white"><span style="font-size:10.0pt;font-family:Symbol;color:gray" lang="EN-US"><span style="mso-list:Ignore">·<span style="font:7.0pt "Times New Roman"">         </span></span></span><span style="font-size:12.0pt;font-family:"Segoe UI",sans-serif;color:gray" lang="EN-US">kamailio.proxy.block_useragents.ua_patterns: List of User-Agent string patterns that trigger the block action.</span></p><p class="MsoNormal"><span style="mso-fareast-language:DE-AT" lang="EN-US"> </span></p><p class="MsoNormal"><span style="mso-fareast-language:DE-AT" lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">Currently I block it directly in /etc/ngcp-config/templates/etc/kamailio/lb/kamailio.cfg.customtt.tt2 with this string:</span></p><p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><code><span style="font-size:10.5pt;font-family:Consolas;color:#333333;border:none windowtext 1.0pt;padding:0cm" lang="EN-US">    </span></code><code><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0cm" lang="EN-US">if( is_method("REGISTER|INVITE") && ($ua =~ "friendly-scanner"</span></code><span style="font-size:10.5pt;font-family:Consolas;color:#333333;background:#121212" lang="EN-US"> </span><code><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0cm" lang="EN-US">|| $ua =~ "friendly-request"</span></code><span style="font-size:10.5pt;font-family:Consolas;color:#333333;background:#121212" lang="EN-US"> </span><code><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0cm" lang="EN-US">|| $ua =~ "sipvicious"</span></code><span style="font-size:10.5pt;font-family:Consolas;color:#333333;background:#121212" lang="EN-US"> </span><code><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0cm" lang="EN-US">|| $ua =~ "^sipcli.+") </span></code><code><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0cm">)</span></code></p><p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">how I had to add it in the config.yml file?</span></p><p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><code><span style="font-size:10.5pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0cm" lang="EN-US">"friendly-scanner”,"friendly-request”,”sipvicious”,”etc”,”etc”?</span></code></p><p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">Thank you</span></p></div><br>_______________________________________________<br>Spce-user mailing list<br>Spce-user@lists.sipwise.com<br>https://lists.sipwise.com/listinfo/spce-user<br></div><div><br></div></div></body></html>