Re: [squid-users] X-Forwarded-For header cleanup

From: Bin Liu <binliu.lqbn@dont-contact.us>
Date: Wed, 17 Nov 2004 17:41:24 +0800

Yep, I think I'm in the same situation.

I think it's better that when we set "forwarded_for off" in
squid.conf, we should never see "X-Forwarded-For: Unknown." when there
is no X-Forwarded-For previously, and squid will not add "unknown"
when we already have one.

On Wed, 17 Nov 2004 10:12:38 +0100, Janno de Wit <wit@dnaservices.com> wrote:
> Hi folks,
>
> My Squid always modifies the X-Forwarded-For header with the client-IP.
> I'm now in a situation I want to keep the X-Forwarded-For header as it
> is..
> As far as i see it's only possible to disable the X-forwarded-for
> header, which will result the header as:
> X-Forwarded-For: Unknown.
>
> At this time, I have already a X-Forwarded-For header. My final header
> as Squid will send out is:
>
> X-Forwarded-For: <my-client-ip-by-other-squid>, <other proxy server>
>
> I want Squid to keep the header for what it is, thus:
> input:
> X-Forwarded-For: <my-client-ip-by-other-squid>
> ouput:
> X-Forwarded-For: <my-client-ip-by-other-squid>
>
> Is this possible?
>
> Thanks, Janno.
>
Received on Wed Nov 17 2004 - 02:41:29 MST

This archive was generated by hypermail pre-2.1.9 : Wed Dec 01 2004 - 12:00:01 MST