RE: request->my_addr change from 2.6.STABLE3 to 2.6.STABLE10

From: Steven Wilton <swilton@dont-contact.us>
Date: Mon, 19 Mar 2007 09:57:30 +0900

> -----Original Message-----
> From: Steven Wilton [mailto:swilton@q-net.net.au]
> Sent: Monday, 19 March 2007 8:46 AM
> To: squid-dev@squid-cache.org
> Subject: request->my_addr change from 2.6.STABLE3 to 2.6.STABLE10
>
> I've just discovered that due to the reworking of places that
> ClientNatLookup is called, request->my_addr now contains the
> local IP of the
> proxy server rather than the IP address of the web server the
> client thinks
> it's talking to for transparent requests. I'm assuming that
> this was done
> deliberately, but it has caused a regression for a patch that
> I'm using.
>
> Can anyone confirm whether request->my_addr should contain
> the IP address
> that the customer has connected to, or the IP address that the OS has
> redirected the packet to for requests that have been semnt to
> squid using
> NAT. (ie client sends request to 66.102.7.104:80 proxy redirects to
> 192.168.0.1:3128. Should request->my_addr contian the
> 66.102.7.104 IP, or
> 192.168.0.1)?
>

I just figured it out - the change was that clientNatLookup was only being
called if the host header was not given. I've modifed my patch accordingly.

Steven

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.13/726 - Release Date: 18/03/2007
3:34 PM
 
Received on Sun Mar 18 2007 - 19:28:08 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Apr 01 2007 - 12:00:01 MDT