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@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@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/tproxy
-- Andrey Luzgin <andrey@icomsw.com> I-com software