Re: Restrict to specific IP's

2004-03-10 Thread Jason Keltz
I saw some discussion back on the 2nd of March from John Peace re: restricting IPs not working with Tomcat 5. I've run into the same problem. I've tried restricting by IP, and by hostname, and neither work. I presently have this: Context path=/jas/example1 docBase=/cs/home/jas/webapps/example1

Re: Restrict to specific IP's

2004-03-10 Thread Jason Keltz
Actually, here's more information on the Restricting IPs not working .. If I use: Valve className=org.apache.catalina.valves.RemoteAddrValve allow=A.B.C.D,A.B.C.E/ I can access the app from the host at IP A.B.C.D and IP A.B.C.E, and cannot access the app from anywhere else, so this works.

RE: Restrict to specific IP's

2004-03-10 Thread Ralph Einfeldt
-Original Message- From: Jason Keltz [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 10, 2004 4:20 PM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: Restrict to specific IP's Actually, here's more information on the Restricting IPs not working .. If I use: Valve

RE: Restrict to specific IP's

2004-03-10 Thread Jason Keltz
/RequestFilterValve.java?rev=1.3view=auto -Original Message- From: Jason Keltz [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 10, 2004 4:20 PM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: Restrict to specific IP's Actually, here's more information on the Restricting IPs

RE: Restrict to specific IP's

2004-03-10 Thread Shapira, Yoav
Howdy, However, something interesting to note -- RemoteHostValve works if I refer to IPs and *not* hostnames! Isn't that odd? I thought RemoteHostValve was for hostname, and RemoteAddrValve works for IP. That's an interesting observation. The Valves, like many other elements, are

RE: Restrict to specific IP's

2004-03-10 Thread Ralph Einfeldt
Do you have dnslookups enabled/disabled ? If this is disabled the hostname ist the IP. -Original Message- From: Jason Keltz [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 10, 2004 4:43 PM To: Tomcat Users List Subject: RE: Restrict to specific IP's However, something

RE: Restrict to specific IP's

2004-03-10 Thread Jason Keltz
? If this is disabled the hostname ist the IP. -Original Message- From: Jason Keltz [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 10, 2004 4:43 PM To: Tomcat Users List Subject: RE: Restrict to specific IP's However, something interesting to note -- RemoteHostValve works if I refer

RE: Restrict to specific IP's

2004-03-10 Thread Shapira, Yoav
Hi, I didn't realize that the default was actually enableLookups=false. I changed this to true and it works fine. As a side note -- any idea why access control allow/deny lists are by regular expression, and not just by standard wildcard? allow=*.cs.yorku.ca doesn't work -- you need to do

Restrict to specific IP's

2004-03-02 Thread John . Peace
Hello, HPUX 11.11 Java 1.4.2 Tomcat 4.1.30 New to the list and Tomcat. I am trying to restrict access to Tomcat to a specific range of IP addresses. I looked at all the examples and help on using valve. I set it up according to the examples, but can't get it to work correctly. The IP addresses

RE: Restrict to specific IP's

2004-03-02 Thread Shapira, Yoav
Hi, Valve className=org.apache.catalina.valves.RemoteAddrValve deny=132.24.195.76/ RESULT: No one is denied access. User at 132.24.195.76 can get to 132.24.195.18:8080 and access manager Very strange: I can't reproduce what you're seeing. On a brand new tomcat 5.0.19 installation, I just added

RE: Restrict to specific IP's

2004-03-02 Thread John . Peace
install. Nothing has been changed except for my one added line? John -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 02, 2004 9:11 AM To: Tomcat Users List Subject: RE: Restrict to specific IP's Hi, Valve className

Re: Restrict to specific IP's

2004-03-02 Thread Tim Funk
-Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 02, 2004 9:11 AM To: Tomcat Users List Subject: RE: Restrict to specific IP's Hi, Valve className=org.apache.catalina.valves.RemoteAddrValve deny=132.24.195.76/ RESULT: No one is denied access. User

RE: Restrict to specific IP's

2004-03-02 Thread John . Peace
Subject: Re: Restrict to specific IP's Does everyone go through a firewall/nat/proxy so from a server point of view - every request is from the same IP address? I think one of the files in one of the examples displays the client ip address. -Tim [EMAIL PROTECTED] wrote: I deleted 4.1.30. I

RE: Restrict to specific IP's

2004-03-02 Thread Shapira, Yoav
Hi, I deleted 4.1.30. I downloaded 5.0.19 and loaded it on my HP. I added just theRemoteAddrValve deny valve. Same thing, everyone can connect. Attached is catalina.out from the startup. There are some errors. I looked on the web and all I can find is to reload from scratch. This is a brand new

RE: Restrict to specific IP's

2004-03-02 Thread John . Peace
due to previous errors John -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 02, 2004 11:15 AM To: Tomcat Users List Subject: RE: Restrict to specific IP's Hi, I deleted 4.1.30. I downloaded 5.0.19 and loaded it on my HP. I added just

RE: Restrict to specific IP's

2004-03-02 Thread Shapira, Yoav
Hi, The errors IO was talking about are in the catalina.out. I was refering to teh seperate entries of: Mar 2, 2004 9:41:13 AM org.apache.catalina.core.StandardContext start SEVERE: Error filterStart Mar 2, 2004 9:41:13 AM org.apache.catalina.core.StandardContext start SEVERE: Context startup