Re: [squid-users] How to turn off HTTP_X_FORWARDED_FOR on squid 3 and setup it as high-anonymous proxy?

From: Chris Robertson <crobertson_at_gci.net>
Date: Tue, 14 Oct 2008 12:37:20 -0800

zulkarnain wrote:
> Hi all,
>
> I've squid-2.6 that working as high-anonymous (elite proxy - HTTP Servers of this type do not send HTTP_X_FORWARDED_FOR, HTTP_VIA and HTTP_PROXY_CONNECTION variables) proxy. My squid's ip address is did not detected, the variables shown as below;
>
> HTTP_FORWARDED: (none)
> HTTP_X_FORWARDED_FOR: (none)
> HTTP_CLIENT_IP: (none)
> HTTP_VIA: (none)
> HTTP_XROXY_CONNECTION: (none)
> HTTP_PROXY_CONNECTION: (none)
>
> I just migrate to squid-3.0, and my squid become a non-anonymous. The variables that was appear when I tested it is:
>
> HTTP_FORWARDED: (none)
> HTTP_X_FORWARDED_FOR: unknown
> HTTP_CLIENT_IP: (none)
> HTTP_VIA: (none)
> HTTP_XROXY_CONNECTION: (none)
> HTTP_PROXY_CONNECTION: (none)
>
> I just wondering how to turn off HTTP_X_FORWARDED_FOR on squid-3.0 and setup it as high-anonymous proxy? Any help would be great. Thank you.
>
> Regards,
> Zul
>

The single header_access directive from 2.X was expanded into
request_header_access and reply_header_access in Squid 3. My guess
would be that you were using "header_access X_Forwarded_For deny all".
This should be changed to "request_header_access X_Forwarded_For deny all".

Chris
Received on Tue Oct 14 2008 - 20:37:29 MDT

This archive was generated by hypermail 2.2.0 : Wed Oct 15 2008 - 12:00:03 MDT