<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
The automatic mode is much more efficient. It triggers in
pre-recieve callbacks before any message parsing is even done. In
automatic mode you would simply say if(ip==trusted){drop;} in your
pike route block.<br>
<br>
Automatic mode will also trigger on replies. <br>
<br>
Basically - you should use automatic mode and not be concerned about
the performance as it is definitely faster than manual mode.<br>
<br>
-Eric<br>
<br>
<br>
<div class="moz-cite-prefix">On 02/19/2015 01:49 AM, John Nash
wrote:<br>
</div>
<blockquote
cite="mid:CAA4rGPzW5+YkekiRw6Tt3fK6Yritt+Tby-=Doq+9ZY+tEzKi0g@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>As per documentation pike module can be implemented
manual as well as automatic. The way I understand it
manual mode will not monitor (Not even queue) packets for
which "pike_check_req()" is not called and it gives
performance advantage as we can skip this call for trusted
IPs.<br>
<br>
</div>
First of all is my understanding correct? Or each request
packet will be queued but we will know if a source IP
exceeds threshold only when we call "pike_check_req()"?<br>
<br>
<br>
</div>
Second thing is what about replies, is there any way to
monitor in manual mode?<br>
<br>
</div>
I really like automatic mode but only am trying to avoid it
because I do not want trusted sources to be monitored.<br>
<br>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>