[tproxy] tproxy4, kernel 2.6.22 and squid-2.6.stable13

Andrey Luzgin andrey at icomsw.com
Tue Dec 18 12:34:36 CET 2007


I not the programmer, i system administrator of our firm. Our programmer
makes variations to a code of Squid. We shall complete all and we shall
publish here changes. :-)

В Втр, 18/12/2007 в 09:31 +0800, Ming-Ching Tiew пишет:

> From: "Andrey Luzgin" <andrey at icomsw.com>
> 
> 
> > We tried to modify forward.c in squid source like this:
> > 
> > #if LINUX_TPROXY
> >             /* Here it falls */
> >                 if (bind(fd, (struct sockaddr *) &to_addr,
> > sizeof(to_addr)) == -1) {
> >                     debug(20, 1) ("tproxy fail to bind\n");
> >                 }
> >                 /*
> > 
> > We receive the message "tproxy fail to bind". 
> > -- 
> 
> This is likely due to you have binded to another IP earlier.
> 
> In tproxy2, you have to set up 'tcp_outgoing_address' before
> tproxy will work. However, when using tproxy4, you 
> should change of source code to ignore 'tcp_outgoing_address' 
> setting ( ie don't bind to this IP at all ! ) and just bind straight
> to the HTTP requesters IP.
> 
> I haven't quite tested it, but perhaps you can remove your
> tcp_outgoing_address setting in squid.conf. That might provide
> a fast work around.
> 
> 
> Cheers.
> 
> _______________________________________________
> tproxy mailing list
> tproxy at lists.balabit.hu
> https://lists.balabit.hu/mailman/listinfo/tproxy

-- 
Andrey Luzgin <andrey at icomsw.com>
I-com software
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/tproxy/attachments/20071218/00960b1c/attachment.htm 


More information about the tproxy mailing list