Re: [squid-users] How to see client IP behind a reverse proxy

From: Matus UHLAR - fantomas <uhlar@dont-contact.us>
Date: Thu, 4 Oct 2007 11:49:44 +0200

On 04.10.07 10:16, Roland Rabben wrote:
> I have a web application server that needs to be able to see the client
> request IP address. But when I add a Squid as a reverse proxy in front
> of my web server, my application only sees the IP of the reverse proxy.
>
> Is there any way to configure Squid to expose client IP's to my web app?

use X-Forwarded-For: directive, it may contain a path of clients behing the
proxies. However you should noe trust every proxy in the path, only yours.

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"They say when you play that M$ CD backward you can hear satanic messages."
"That's nothing. If you play it forward it will install Windows."
Received on Thu Oct 04 2007 - 03:49:52 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Nov 01 2007 - 13:00:01 MDT