I've actually been looking into the same thing. The forwarded_for directive
on the first proxy is part of the equation. But you need the second proxy
to read this header rathar than the origin IP. There is a set of patches
for squid 3 available here:
http://devel.squid-cache.org/projects.html#follow_xff
Of course squid 3 is not recommended for production use. I've been looking
at the patches to see what it will take to convert them for 2.5. I haven't
had a whole lot of time lately, but I hope to get around to it soon. Of
course, if the author of the patches is reading this list, perhaps he could
release his private set of 2.4 patches which would probably work with 2.5
with very little modification.
--Jason
----- Original Message -----
From: "Mark A Lewis" <mark@siliconjunkie.net>
To: "'Beaven, Guy'" <gbeaven@pc.gov.au>; <squid-users@squid-cache.org>
Sent: Tuesday, February 11, 2003 6:59 PM
Subject: RE: [squid-users] Forwarding IPs
> Not sure if it would do it but I think the forwarded_for directive would
> do it.
>
> -----Original Message-----
> From: Beaven, Guy [mailto:gbeaven@pc.gov.au]
> Sent: Tuesday, February 11, 2003 5:30 PM
> To: 'squid-users@squid-cache.org'
> Subject: [squid-users] Forwarding IPs
>
> Hi,
>
> I have a squid proxy setup that forwards its requests to another squid
> proxy. The problem is that I only see the IP address from the first
> proxy
> instead of the machine IPs that are connected to the first proxy. Would
> like
> the first proxy to forward the IPs of the machines connected to it?? I
> have
> had a look around and can't seem to find anything on this??
>
> Guy Beaven
> Email: gbeaven@pc.gov.au
>
> **********************************************************
> This message was virus scanned at siliconjunkie.net and
> any known viruses were removed. For a current virus list
> see http://www.siliconjunkie.net/antivirus/list.html
>
Received on Tue Feb 11 2003 - 19:46:15 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:13:20 MST