[squid-users] Getting Source-IP

From: Andreas Müller <amuelle1_at_gmx.de>
Date: Thu, 22 Apr 2010 14:19:26 +0200

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.

So I'm searching for an option to inject a custom parameter with the source
IP into http header. Or is the a secure rule to extract the correct source
IP of the request as just taking the "last" IP in the list?

Kind regards,

Andreas
Received on Thu Apr 22 2010 - 12:19:40 MDT

This archive was generated by hypermail 2.2.0 : Thu Apr 22 2010 - 12:00:05 MDT