tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: RemoteAddrValve syntax
Date Sun, 05 Apr 2009 18:41:54 GMT
André Warnier wrote:
[...]
> 
> To match any address starting with "192.168.", use
> <Valve className="org.apache.catalina.valves.RemoteAddrValve"
>  allow="192\.168\..*"/>
> or (if you want to be really finicky about it)
> <Valve className="org.apache.catalina.valves.RemoteAddrValve"
>  allow="192\.168\.\d{1,3}\.\d{1,3}"/>
> 
What is not very clear in the on-line Tomcat documentation, is whether a 
remote client address of 192.168.1.2 would be translated to the string 
"192.168.1.2" by Tomcat prior to matching in the Valve, or to for 
example "192.168.001.002".
Maybe the Valve source code is clearer ?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message