[Kamailio-Users] Pike module is not working!

Arif-Uz-Zaman arif.zaman at stitelnetworks.com
Tue Oct 21 13:10:47 CEST 2008


Hi,

 

I've configured OpenSER with Pike module but it's not working as expected
(doesn't block IP according to the configured time). :-)

 

Here is a simple configuration by considering the following:

----------------------------------------------------------------------------
---------------

modparam("pike", "sampling_time_unit", 60) #1 minute

modparam("pike", "reqs_density_per_unit", 200) #200 requests

modparam("pike", "remove_latency", 7200) #Block IP for 2 hours

 

if (!pike_check_req())

    xlog("L_CRIT","#########TOO MANY HITS FROM $si##########\n");

    exit;

}

----------------------------------------------------------------------------
-----------------

If the number of SIP messages from a single IP address to my SIP Proxy
exceeds 200 per minute. Action: Block IP for 2 hours.

 

I'm not sure whether I'm doing wrong or is there any problem with Pike
module?

 

Please help me with valuable feedback.

 

Thanks in advance!

ARIF

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20081021/827ab16a/attachment.htm>


More information about the sr-users mailing list