Re: org.apache.catalina.valves.RemoteAddrValve

2024-04-05 Thread Eric Fetzer
Thanks Christopher! Sent from my iPhone > On Apr 4, 2024, at 10:20 PM, Christopher Schultz > wrote: > > Eric, > >> On 4/4/24 13:43, Eric Fetzer wrote: >> Hi All, >> When I originally set up my tomcat instance, I added the following to allow >> manager access under

Re: org.apache.catalina.valves.RemoteAddrValve

2024-04-04 Thread Christopher Schultz
Eric, On 4/4/24 13:43, Eric Fetzer wrote: Hi All, When I originally set up my tomcat instance, I added the following to allow manager access under /opt/tomcat/webapps/manager/META-INF/context.xml: That worked wonderfully. Now I'm trying to add another IP range by changing it to: This is

Re: [External] org.apache.catalina.valves.RemoteAddrValve

2024-04-04 Thread Eric Fetzer
LOL, I'm decent at regex Robert. I got the \d+ from what ships in the context.xml: 127\.\d+\.\d+\.\d+ It looks like an attempt at saying localhost can get in as long as the localhost IP starts with 127. I assumed it wasn't actually regex but some "tomcat language"... Thanks for the education!

Re: [External] org.apache.catalina.valves.RemoteAddrValve

2024-04-04 Thread Eric Fetzer
Sorry folks (Robert), but upon further testing, it looks like port 8080 isn't open on these IP's. I was mistaking the attempt to connect from my curl command with a response. I withdrawal my question for now. I'll reply to this thread if it doesn't work once the hole in the firewall is carved

Re: [External] org.apache.catalina.valves.RemoteAddrValve

2024-04-04 Thread Robert Egan
You need to read up on "regular expressions" (or "regex"). In a regular expression, a lowercase "d" is a single decimal digit. A "+" means one or more of them. A period means ANY character (which is why you have to escape it when you mean "period"). A backward slash means to treat the character

Re: [External] org.apache.catalina.valves.RemoteAddrValve

2024-04-04 Thread Eric Fetzer
Thanks for the quick response Robert! So I tried escaping the periods and putting the \d+ for the * but it didn't work. Is the \d+ incorrect in substitution for *? On Thu, Apr 4, 2024 at 11:53 AM Robert Egan wrote: > It looks like you need to escape your periods, like you did for 127\. >

Re: [External] org.apache.catalina.valves.RemoteAddrValve

2024-04-04 Thread Robert Egan
It looks like you need to escape your periods, like you did for 127\. etc... 1\.3\.5 Robert Egan On Thu, Apr 4, 2024 at 1:44 PM Eric Fetzer wrote: > Hi All, > > When I originally set up my tomcat instance, I added the following to allow > manager access under

org.apache.catalina.valves.RemoteAddrValve

2024-04-04 Thread Eric Fetzer
Hi All, When I originally set up my tomcat instance, I added the following to allow manager access under /opt/tomcat/webapps/manager/META-INF/context.xml: That worked wonderfully. Now I'm trying to add another IP range by changing it to: This is not working. I tried to use 2\.4\.6\.\d+ as

org.apache.catalina.valves.RemoteAddrValve on Tomcat 7.0.27 x64 Windows 2008 R2

2012-12-13 Thread Michael Trabjerg
Hi Info: Tomcat 7.0.27 x64 running on Windows 2008 R2 Tomcat 6 allowed me to restrict access to Tomcat for more than one IP address, but it does not seem to work on Tomcat 7.0.27. Usually this worked: Valve className=org.apache.catalina.valves.RemoteAddrValve allow=127\.0\.0\.1\, 192

Re: org.apache.catalina.valves.RemoteAddrValve on Tomcat 7.0.27 x64 Windows 2008 R2

2012-12-13 Thread André Warnier
=org.apache.catalina.valves.RemoteAddrValve allow=127\.0\.0\.1\, 192\.168\.12\.22, 192\.168\.12\.23/ Now I can only make to following work Valve className=org.apache.catalina.valves.RemoteAddrValve allow=127\.0\.0\.1/ I believe you need to re-read the on-line docs. It is probably indicated there that this should be a regexp

RE: org.apache.catalina.valves.RemoteAddrValve on Tomcat 7.0.27 x64 Windows 2008 R2

2012-12-13 Thread Michael Trabjerg
Hi André This worked Valve className=org.apache.catalina.valves.RemoteAddrValve allow=(127\.0\.0\.1|192\.168\.12\.22|192\.168\.12\.23)/ The other used to work for Tomcat 6. Thanks a lot. Br Michael Trabjerg -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: 13

Re: org.apache.catalina.valves.RemoteAddrValve on Tomcat 7.0.27 x64 Windows 2008 R2

2012-12-13 Thread André Warnier
Michael Trabjerg wrote: Hi André This worked Valve className=org.apache.catalina.valves.RemoteAddrValve allow=(127\.0\.0\.1|192\.168\.12\.22|192\.168\.12\.23)/ The other used to work for Tomcat 6. Yes, but as I remember it was changed because it was ambiguous : a comma can be part