I verified the allow attribute is operational in RemoteAddrValve..
(that is when allow="192\.168\.200\.188" only 192.168.200.188 is authorised to 
that tomcat instance)

could you verify which IP's are being authorised?
could you tell us which version of Tomcat you are executing?

Thanks,
M-
This e-mail communication and any attachments may contain confidential and 
privileged information for the use of the 
designated recipients named above. If you are not the intended recipient, you 
are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination, 
distribution or copying of it or its 
contents
----- Original Message ----- 
From: "Peter Neu" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <users@tomcat.apache.org>
Sent: Tuesday, November 14, 2006 6:49 AM
Subject: AW: Problem with RemoteAddrValve in Context.xml


Ok, I changed the allow attribute to a regular exp. Looks like this now:

          <Valve className="org.apache.catalina.valves.RemoteAddrValve"
               allow="192\.168\.200\.188" 
                />

But still the filter lets all users access the application. 

Cheers,
Pete


> -----Ursprüngliche Nachricht-----
> Von: Mark Thomas [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 14. November 2006 01:11
> An: Tomcat Users List
> Betreff: Re: Problem with RemoteAddrValve in Context.xml
> 
> Peter Neu wrote:
> > I'm trying to define an ip access filter with RemoteAddrValve in the
> > context.xml file I deploy with my war file.
> >
> > If I read the documentation right the only thing to be done is write the
> > following into the context.xml file:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <Context path="/user/public/">
> >   <Valve className="org.apache.catalina.valves.RemoteAddrValve"
> >         allow="192.168.200.188"
> >         />
> > </Context>
> >
> > But this does not work out. Does anyone know what's wrong?
> 
> As the docs state, you need to use a regular expression.
> "192.168.200.188" doesn't do what you think it does since "." is a
> special character in regular expressions.
> 
> Mark
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to