On 13/06/2013 4:36 a.m., Georgios Androulidakis wrote:
Hello,
I am trying to use the TPROXY feature in FreeBSD 9.1 but when I start
squid I get the following error message:
2013/06/12 18:51:47| FATAL: http(s)_port: TPROXY support in the system
does not work.
FATAL: Bungled /usr/local/etc/squid/squid.conf line 12: http_port 3128
tproxy
Squid Cache (Version 3.3.5): Terminated abnormally.
While troubleshooting, I noticed that SO_BINDANY does not exist in
FreeBSD. Instead of this, FreeBSD has the IP_BINDANY constant in
/usr/include/netinet/in.h
#define IP_BINDANY 24 /* bool: allow bind to any address */
I changed SO_BINDANY to IP_BINDANY in the squid code but it didn't work.
The problem occurs in both 3.3.4 and 3.3.5 versions.
Has anyone managed to use TPROXY in FreeBSD ?
Yes. Quite successfully ... in *3.HEAD* (soon to be 3.4) where it was added.
http://www.squid-cache.org/Versions/v3/3.HEAD/
Amos