Re: X_FORWARDED_FOR

From: Martin Svensson <[email protected]>
Date: Wed, 10 May 2000 10:04:50 +0200

Hi Dan,

We had nearly the exast same problem.
The solution I came up with was to edit http.c, find the part which says
"X-Forwarded.." change the word "unknown" to a dns-name/ip-adress you want
to show, then recompile.

Don't forget to edit squid.conf and set "forwarded_for" to "off".

Good Luck!
/Martin

*********** REPLY SEPARATOR ***********

On 2000-05-10 at 11:35 Dan Shauver wrote:

>To All,
> We susbscribe to a number of electronic journals, many of whom are
accessible
>based on the client ip address. The general feeling here is that we'd
rather not
>expose the client ips to the outside world, so don't want to use the
forwarded-for
>option. Is there any way to have the squid server send its own ip address
in that
>field?
>
>Dan Shauver
>HortResearch UNIX Dude

Martin Svensson
Dep. of Technology
University Hospital of Malmoe
Email: martin@admin.mas.lu.se
Received on Wed May 10 2000 - 02:10:45 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:53:26 MST