On Thu, 26 May 2005, Martijn Broeders - HUB Labs wrote:
The problem described below has got something to do with ipf transparent proxying and the STABLE10 version.
This would be the squid-2.5.STABLE9-transparent_port.patch.
Please try if the attached patch makes any difference.
Is ipfilter version 3.4.x not supported anymore in the STABLE10 version (because I read that STABLE10 supports ipfilter version 4.x now)? Is it a FreeBSD issue?
It is supposed to be supported, just as it was in 2.5.STABLE9 and earlier.
As I did not have means to verify these changes there was several calls for help with verifying the interception on different OS:es but nobody reported any problems with FreeBSD..
Regards Henrik
Index: src/client_side.c =================================================================== RCS file: /server/cvs-server/squid/squid/src/client_side.c,v retrieving revision 1.561.2.76 diff -u -r1.561.2.76 client_side.c --- src/client_side.c 20 Apr 2005 21:46:06 -0000 1.561.2.76 +++ src/client_side.c 26 May 2005 14:50:31 -0000 @@ -2741,8 +2741,10 @@ enter_suid(); #ifdef IPL_NAME natfd = open(IPL_NAME, O_RDONLY, 0); -#else - natfd = open(IPL_NAT, O_RDONLY, 0); + if (natfd < 0) +#endif +#ifdef IPL_NAT + natfd = open(IPL_NAT, O_RDONLY, 0); #endif save_errno = errno; leave_suid();