Re: [squid-users] Getting Source-IP

From: Jeff Pang <pangj_at_arcor.de>
Date: Thu, 22 Apr 2010 20:29:13 +0800

On Thu, Apr 22, 2010 at 8:19 PM, Andreas Müller <amuelle1_at_gmx.de> wrote:
> Hello,
>
> I'm using squid as accel proxy. Is there a posibility to inject the source
> IP into the http header send to webserver?
>
> I know that there is "HTTP_X_FORWARDED_FOR" but it seems that the content of
> this parameter is not clear if this parameter is already in the request
> header (e.g. the request already comes from a proxy). Sometimes I get a
> comma separated list, sometimes not.
>

Squid has done its best with X_FORWARDED_FOR.
For other solution, you may get the real client's IP with some client
technologies like Javascript.

-- 
Jeff Pang
http://home.arcor.de/pangj/
Received on Thu Apr 22 2010 - 12:29:20 MDT

This archive was generated by hypermail 2.2.0 : Fri Apr 23 2010 - 12:00:05 MDT