The way is_allowed_ip() is written, it will always allow ip addresses if
those are specified in "user-allow-ip" configuration parameter without
giving any consideration to IPs specified in "user-deny-ip".
Only when the IP address is not in "user-allow-ip" list or theres no
"user-allow-ip", it checks for IPs in "user-deny-ip".This is why when you
comment "user-allow-ip" and set "user-deny-ip" to that IP, everything works
fine.

 Also if the IP address is neither found in ALLOW or DENY lists, its
ALLOWED.(default).

you can change is_allowed_ip() to suit your need.
 -JS

> ----- Original Message -----
> From: "Gildas PERROT" <[EMAIL PROTECTED]>
> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> Sent: Wednesday, September 12, 2001 1:47 PM
> Subject: How work ?
>
>
> Hi,
>
> I am trying to understand how user-deny-ip and user-allow-IP work. I want
to
> allow all IP except one to use SendSMS-user.
> I found that if I define user-allow-ip to "*.*.*.*" and user-deny-ip to
that
> denied IP, it is still authorized but if I comment user-allow-ip, the deny
> works. Is it normal ? Does it mean that we can used user-deny-ip and
> user-allow-IP together ?
>
> Thanks in advance for your help.
>
> Gildas.
> ---
> Gildas PERROT, [EMAIL PROTECTED]
> Fluxus, 30 rue du Château des Rentiers,          __o
> 75647 Paris Cedex 13  http://www.fluxus.net ---_`\<,_
> Fluxus est une société BT Ignite.       ----- (_)/ (_)
>
>
>


Reply via email to