Hi - I'm running Apache Tomcat Version 7.0.29. I have inserted a Remote Address filter into server.xml inside of the <Host> tag. It is not blocking addresses that are not in <Allow>.
I am using the Remote Address filter because I want to allow access only to addresses in our institution's community. This is a large institution and we have 4 or 5 class B address ranges, maybe 10 class Cs, and a number of broken ranges. The regular expression runs to 8181 characters without doubling up on \. It does, however, work in a test Java class that I wrote, correctly allowing and disallowing a test group of addresses. One question I have is that the example in http://tomcat.apache.org/tomcat-7.0-doc/config/filter.html#Remote_Address_Filter has single backslashes, but in order to make the pattern work in my test class, I had to double up on the slashes. I took a look at the RequestFilter code, and it looks like the pattern string is just passed to Pattern.compile, so the pattern in the filter should need double slashes. I've tried it both ways and neither worked. Anybody have any idea about what might be going wrong? Garey Mills Library Systems Office UC Berkeley