Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 12/19/2009 4:22 PM, Mark Thomas wrote: > On 19/12/2009 10:45, André Warnier wrote: >> If this is too vast as a question, just let me know and point me where >> to get started maybe ? > > Not at all, although this is heading off topic. I'd st

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-21 Thread André Warnier
Bill Barker wrote: ... Which gives a third option to the OP, which is to use the useIPVHosts="true" option on the , and only configure s for the ones that he wants to allow to connect (and the default Host just returns 404 to every request). Yes, that possibility was kind of nagging at me s

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-20 Thread Bill Barker
er (i.e. the ServerName) Which gives a third option to the OP, which is to use the useIPVHosts="true" option on the , and only configure s for the ones that he wants to allow to connect (and the default Host just returns 404 to every request). > The HTTP connectors will report

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-20 Thread Rainer Jung
On 20.12.2009 21:00, André Warnier wrote: Mark Thomas wrote: ... This is one of those times where the solution will depend on the protocol you are using. The AJP connectors will report the client's IP address so you need an alternative solution. Using the "request.secret" attribute is probably

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-20 Thread André Warnier
Mark Thomas wrote: ... This is one of those times where the solution will depend on the protocol you are using. The AJP connectors will report the client's IP address so you need an alternative solution. Using the "request.secret" attribute is probably the simplest fix although keep in mind tha

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-20 Thread Mark Thomas
ctors will report the proxy's IP address so the RemoteAddressValve can be used. Note in Tomcat 7: - where the RemoteIpValve is available you would need to make sure that the RemoteAddressVlave was earlier in the pipeline than the RemoteIpValve - you have the option of using

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-20 Thread André Warnier
inst which RemoteAddressValve operates ? public void invoke(Request request, Response response) throws IOException, ServletException { process(request.getRequest().getRemoteAddr(), request, response); } It is the request.getRequest().getRemoteAddr() call. Right. So, to summarise the original con

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-19 Thread Bill Barker
t back to the main issue, as long as I anway get the hang of this > stuff, and have checked out the SVN of Tomcat anyway, > where in the /valves stuff do I find where it actually checks the "remote > IP" against which RemoteAddressValve operates ? > > And, supposing I were to

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-19 Thread Mark Thomas
; > To get back to the main issue, as long as I anway get the hang of this > stuff, and have checked out the SVN of Tomcat anyway, > where in the /valves stuff do I find where it actually checks the > "remote IP" against which RemoteAddressValve operates ? public void invoke

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-19 Thread André Warnier
ks the "remote IP" against which RemoteAddressValve operates ? And, supposing I were to tweak one or the other module, how do I create a local version of Tomcat to test my changes on ? This is exciting stuff... ;-) If this is too vast as a question, just let me kn

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-18 Thread Bill Barker
"André Warnier" wrote in message news:4b2bdc92.9050...@ice-sa.com... > Christopher Schultz wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Mark, >> >> On 12/18/2009 11:42 AM, Mark Thomas wrote: >>> On 18/12/2009 16:21, André Warnier wrote: or do I need some special edi

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-18 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 12/18/2009 11:42 AM, Mark Thomas wrote: On 18/12/2009 16:21, André Warnier wrote: or do I need some special editor or setting, or do I just convert these codes to their UTF-8 equivalents and submit it as such ?

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 12/18/2009 11:42 AM, Mark Thomas wrote: > On 18/12/2009 16:21, André Warnier wrote: >> or do I need some >> special editor or setting, or do I just convert these codes to their >> UTF-8 equivalents and submit it as such ? > > You can use: >

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-18 Thread Mark Thomas
On 18/12/2009 16:21, André Warnier wrote: > Mark Thomas wrote: >> On 18/12/2009 15:20, André Warnier wrote: >>> By the way, in the file LocalStrings_fr.properties that is in that same >>> directory, there are quite a few typos. That's more my level, me being >>> a native French speaker and all. >>

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-18 Thread André Warnier
Mark Thomas wrote: On 18/12/2009 15:20, André Warnier wrote: By the way, in the file LocalStrings_fr.properties that is in that same directory, there are quite a few typos. That's more my level, me being a native French speaker and all. How do I submit a corrected version, with a minimum of fus

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-18 Thread Mark Thomas
On 18/12/2009 15:20, André Warnier wrote: > By the way, in the file LocalStrings_fr.properties that is in that same > directory, there are quite a few typos. That's more my level, me being > a native French speaker and all. > How do I submit a corrected version, with a minimum of fuss ? Get the l

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-18 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Using RemoteAddressValve with an Apache mod_proxy_balancer If anyone points me to where the code of the RemoteAddrValve can be found, I'd like to have a look. Download the source package, and lo

RE: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-17 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: Using RemoteAddressValve with an Apache mod_proxy_balancer > > If anyone points me to where the code of the RemoteAddrValve can be > found, I'd like to have a look. Download the source package, and look in: apac

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-17 Thread André Warnier
Rainer Jung wrote: On 17.12.2009 10:02, André Warnier wrote: Martin B. Smith wrote: On 12/16/2009 11:01 PM, Bill Barker wrote: "André Warnier" wrote in message news:4b294eb6.4090...@ice-sa.com... Martin B. Smith wrote: Howdy! I'm trying to ensure that only specific instances of Apache are

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-17 Thread Rainer Jung
On 17.12.2009 10:02, André Warnier wrote: Martin B. Smith wrote: On 12/16/2009 11:01 PM, Bill Barker wrote: "André Warnier" wrote in message news:4b294eb6.4090...@ice-sa.com... Martin B. Smith wrote: Howdy! I'm trying to ensure that only specific instances of Apache are allowed to proxy req

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-17 Thread André Warnier
Martin B. Smith wrote: On 12/16/2009 11:01 PM, Bill Barker wrote: "André Warnier" wrote in message news:4b294eb6.4090...@ice-sa.com... Martin B. Smith wrote: Howdy! I'm trying to ensure that only specific instances of Apache are allowed to proxy requests into my Tomcat 5.5.28 instances. .

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-16 Thread Martin B. Smith
On 12/16/2009 11:01 PM, Bill Barker wrote: > "André Warnier" wrote in message > news:4b294eb6.4090...@ice-sa.com... >> Martin B. Smith wrote: >>> Howdy! >>> >>> I'm trying to ensure that only specific instances of Apache are allowed >>> to proxy requests into my Tomcat 5.5.28 instances. Unfortun

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-16 Thread Bill Barker
"André Warnier" wrote in message news:4b294eb6.4090...@ice-sa.com... > Martin B. Smith wrote: >> Howdy! >> >> I'm trying to ensure that only specific instances of Apache are allowed >> to proxy requests into my Tomcat 5.5.28 instances. Unfortunately, it >> looks like Tomcat is seeing the actua

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-16 Thread André Warnier
Martin B. Smith wrote: Howdy! I'm trying to ensure that only specific instances of Apache are allowed to proxy requests into my Tomcat 5.5.28 instances. Unfortunately, it looks like Tomcat is seeing the actual client IP making the original request to Apache. Does anyone have a configuration t

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-16 Thread André Warnier
ation that only allows specific Apache (mod_)proxies to be serviced by Tomcat? I will be using other ways to protect Tomcat, but I'd like something inside Tomcat filtering these AJP requests too, and RemoteAddressValve sounds like it should work :) Yees, but as you noticed, it does

Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-16 Thread Martin B. Smith
llows specific Apache (mod_)proxies to be serviced by Tomcat? I will be using other ways to protect Tomcat, but I'd like something inside Tomcat filtering these AJP requests too, and RemoteAddressValve sounds like it should work :) Here's what I'm using now -- Apache: ProxyP

Re: RemoteAddressValve

2009-07-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leo, On 7/8/2009 10:01 AM, Leo Donahue - PLANDEVX wrote: > If I put the following nested in the element of my server.xml, > is that the right way to do it? > > privileged="true" > > allow="176.24.*.*"/> > > /> Note that it inappropriate to put

Re: RemoteAddressValve

2009-07-08 Thread Mark Thomas
Leo Donahue - PLANDEVX wrote: > Andre, Tim, > > Thanks for the feedback on the regex. > > I don't think I can nest a inside a You can if you use valid xml. > privileged="true" > allow="176\.24\..*" /> > /> You want: Mark

Re: RemoteAddressValve

2009-07-08 Thread Pid
On 8/7/09 15:01, Leo Donahue - PLANDEVX wrote: I want to restrict web access to a specific web app to only allow it to be available on our domain. If I put the following nested in the element of my server.xml, is that the right way to do it? /> You didn't specify which version of Tomcat

RE: RemoteAddressValve

2009-07-08 Thread Leo Donahue - PLANDEVX
ice-sa.com] Sent: Wednesday, July 08, 2009 7:14 AM To: Tomcat Users List Subject: Re: RemoteAddressValve Leo Donahue - PLANDEVX wrote: ... > >allow="176.24.*.*"/> > I don't know about the context in which you can use this, but about the above, your "allow" att

Re: RemoteAddressValve

2009-07-08 Thread André Warnier
Leo Donahue - PLANDEVX wrote: ... I don't know about the context in which you can use this, but about the above, your "allow" attribute is incorrect. It should be : "A comma-separated list of /regular expression patterns/ that the remote client's IP address is compared to." If I unders

Re: RemoteAddressValve

2009-07-08 Thread Tim Funk
allow is a regex - you probably want this: allow="176\.24\..+" with allow="176.24.*.*" - you would also let through 176.240. 176.241. ... 176.249. -Tim Leo Donahue - PLANDEVX wrote: I want to restrict web access to a specific web app to only allow it to be available on our domain. If I put

RemoteAddressValve

2009-07-08 Thread Leo Donahue - PLANDEVX
I want to restrict web access to a specific web app to only allow it to be available on our domain. If I put the following nested in the element of my server.xml, is that the right way to do it? /> Leo Donahue