[squid-users] TPROXY not working in FreeBSD

From: Georgios Androulidakis <gandr_at_netmode.ntua.gr>
Date: Wed, 12 Jun 2013 19:36:45 +0300

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 ?

Kind regards,
George
Received on Wed Jun 12 2013 - 16:37:25 MDT

This archive was generated by hypermail 2.2.0 : Fri Jun 14 2013 - 12:00:29 MDT