ports/150425: rc.d/squid's squid_fib setting ineffective
sigsys at gmail.com
Thu Sep 9 08:50:01 UTC 2010
>Synopsis: rc.d/squid's squid_fib setting ineffective
>Arrival-Date: Thu Sep 09 08:50:00 UTC 2010
8.1-STABLE r212312M amd64
The rc.d/squid script that comes with ports/www/squid31 has a "squid_fib" setting that should make squid use the given FIB. But as things are by default, it does not work; squid always use FIB #0 no matter what this setting is set to.
As a workaround, I found that setting squid's "tcp_outgoing_address" parameter in squid.conf to an IPv4 address (and 0.0.0.0 does not work for that) makes it use alternative FIBs correctly.
I think this is because squid always uses "wildcard INET6" sockets, even when connecting to IPv4 hosts, which is incompatible with multi-FIB support. It is documented that IPv6 is not supported by multi-FIB, but still, it's confusing that it would not work at all with Squid even when there are no actual IPv6 connections happening.
More information about the freebsd-ports-bugs