[squid-users] X-Forwarded-For

Amos Jeffries squid3 at treenet.co.nz
Sat Nov 10 02:53:57 UTC 2018


On 10/11/18 3:15 PM, Michael Pelletier wrote:
> Perhapse your Squid has been patched to remove it ?
> 
> I am running 3.5.28. I have not installed any patches.
> 
> Perhapse you are looking at the wrong headers ?
>  X-Forwarded-For is only added to the request headers sent to servers.
> 
> Yes. The XFF should be added to the request header and be seen by the
> server the proxy is communicating with. I have a sniffer on the outside
> (Internet side) of the proxy and have confirmed the XFF is not being added.
> 
> Perhapse you have a later config line setting forwarded_for to "delete"
> or "transparent" ?
> 
> I have the line "forwarded_for on"

I mean something later in the config. This directive can be set multiple
times and only uses the last value it is set to.


Another possibility is request_header_access rules removing it along
with other headers. IIRC, this header is included in one of the "Other"
or "All" categories.


Amos


More information about the squid-users mailing list