<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi All,<br>
<br>
I'm running kamailio-1.5.4-tls and I want to enable pike module in it.<br>
I did some test but it isn't working properly. I mean it isn't acting
according to the <i>remove_latancy</i> parameter. When an IP address
is blocked (cause it triggered the pike module), it should be blocked
for the amount of time (seconds I presumed) defined on the <i>remove_latancy
</i>parameter, right? but it isn't<br>
<br>
Here is my pike module config (it's just a test config)<br>
&nbsp;<br>
#&nbsp; ---- Pike --- /* we are usign default values. We should tunning it
up */<br>
modparam("pike", "sampling_time_unit", 30)&nbsp;&nbsp;&nbsp;&nbsp; <br>
modparam("pike", "reqs_density_per_unit", 10) <br>
modparam("pike", "remove_latency", 3600)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
modparam("pike", "pike_log_level",-1)<br>
<br>
<br>
and here is the output<br>
<br>
<i>Sep 10 <b>13:33:35</b> sip /home/kamailio/sbin/kamailio[21414]:
PIKE - BLOCKing ip XXX.XXX.XXX.XXX, node=0xb5a2eb58 <br>
Sep 10 13:33:35 sip /home/kamailio/sbin/kamailio[21414]: Warning: too
many requests from XXX.XXX.XXX.XXX:5060 <br>
Sep 10 <b>13:34:12</b> sip /home/kamailio/sbin/kamailio[21420]: PIKE -
UNBLOCKing node 0xb5a2eb58 <br>
...<br>
<br>
Sep 10 <b>13:35:22</b> sip /home/kamailio/sbin/kamailio[21418]: PIKE -
BLOCKing ip XXX.XXX.XXX.XXX,, node=0xb5a2eb58 <br>
Sep 10 13:35:22 sip /home/kamailio/sbin/kamailio[21418]: Warning: too
many requests from XXX.XXX.XXX.XXX,:5060 <br>
Sep 10 <b>13:36:12</b> sip /home/kamailio/sbin/kamailio[21420]: PIKE -
UNBLOCKing node 0xb5a2eb58 <br>
</i><br>
Shouldn't it be blocked for 3600 seconds?<br>
&nbsp;<br>
Then I changed the <i>remove_latancy</i> parameter to <i>modparam("pike",
"remove_latency", 334500)&nbsp;&nbsp;&nbsp; </i><br>
<i><br>
Sep 10 <b>13:37:09</b> sip /home/kamailio/sbin/kamailio[21462]: PIKE -
BLOCKing ip XXX.XXX.XXX.XXX,, node=0xb5986b90 <br>
Sep 10 13:37:09 sip /home/kamailio/sbin/kamailio[21462]: Warning: too
many requests from XXX.XXX.XXX.XXX,:5060 <br>
Sep 10 <b>13:37:52</b> sip /home/kamailio/sbin/kamailio[21466]: PIKE -
UNBLOCKing node 0xb5986b90 <br>
</i><br>
but the it didn't seem to have any real difference.<br>
<br>
Any ideas? <i><br>
</i><br>
Best Regards,<br>
<br>
Miguel Baptista<br>
</body>
</html>