I use the following code on all my production OpenSIPS servers.<div>It's CPU friendly and avoids being spotted by bots searching for open-relay VoIP servers.</div><div><br></div><div><div>route{</div><div> # put it at the very beginning of route section</div>
<div> if($ua=~"friendly-scanner") {</div><div> xlog("L_ERROR", "Auth error for $fU@$fd from $si method $rm user-agent (friendly-scanner)\n");</div><div> drop();</div><div> exit;</div>
<div> }</div></div><div>(...)</div><div><br></div><div>Since I added that code problem with friendly scanner is over.</div>