<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
  <link href="chrome://translator/skin/popup.css" type="text/css"
 rel="stylesheet">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
Thanks Daniel for your help.&nbsp; The permissions module looks exactly what
I was looking for. <br>
Right now I will have around 5 "fxed" IP addresses but in the near
future I might have more than 20 trusted IP addresses. So, That's why I
didn't want to use the if(src_ip==ipaddress...) logic :)<br>
<br>
Cheers,<br>
<br>
Miguel Baptista<br>
<br>
Ps : see you on Monday in Berlin :)<br>
<br>
On 17.11.2010 11:44, Daniel-Constantin Mierla wrote:
<blockquote cite="mid:4CE3B1FE.5020403@gmail.com" type="cite">Hello,
  <br>
  <br>
On 11/16/10 4:41 PM, Miguel Baptista wrote:
  <br>
  <blockquote type="cite">Hi all,
    <br>
    <br>
I want to enable pike module based on IP addresses. I mean ... I don't
    <br>
want to check if requests from some specific IP addresses trigged the
    <br>
Pike's threshold. but for all other IP addresses I want to check it.
    <br>
I was thinking about using some kind of IP addresses' whitelist. The
    <br>
userblacklist module has some whitelist but it's based on
    <br>
username/domain not IP addresses.
    <br>
    <br>
Can someone please give me some advice how to implement it properly. Is
    <br>
there any module that will allow me to do it properly?
    <br>
    <br>
  </blockquote>
you can use permissions module.
  <br>
  <br>
if(!allow_source_address("grouptoskip")) {
  <br>
&nbsp;&nbsp; # do the pike logic here
  <br>
}
  <br>
  <br>
If you have 1-2 addresses that do not change, you can use
if(src_ip==ipaddress...). Default config file for 3.1.0 comes with such
logic.
  <br>
  <br>
Cheers,
  <br>
Daniel
  <br>
  <br>
</blockquote>
<br>
<div
 style="bottom: auto; left: 4px; max-width: 350px; right: auto; top: 88px; display: none;"
 class="translator-theme-default" id="translator-popup">
<div class="translator-clear" id="translator-popup-toolbar">
<div id="translator-popup-title"></div>
<a title="Copy translated text to clipboard" href="javascript:void(0);"
 id="translator-popup-button-copy"></a></div>
<div style="max-height: 480px;" class="translator-message-type-normal"
 id="translator-popup-message"></div>
<div style="display: none;" id="translator-popup-notice"></div>
<textarea style="display: none;" id="translator-popup-textarea"></textarea></div>
</body>
</html>