tomcat allow hosts trusted on port 8080

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

We're using Tomcat 6.0.32
We have two connectors defined in server.xml
HTTP on port 8080 AJP on port 8009.

We want to trust all traffic on port 8009 because this is
authenticated by our filter.

However we want to only allow certain ip addresses incoming requests
on port 8080  eg allow="n.n.n.n"
First question is:  can the filter detect the port on which the
request was received?

I know it's possible to add a Valve to an Engine, Host or Context
And it's possible to add the RemoteAddressFilter to the web.xml
But I don't see a way to configure a Valve on a particular Connector


Site Timeline