I just built a new proxy server running FreeBSD 7.3 and Squid 3.1.5.1 compile 
with the following options.

./configure \
--prefix=/usr/local/squid \
--enable-pthreads \
--enable-ssl \
--with-openssl=/usr/local \
--enable-async-io \
--enable-underscores \
--enable-storeio="ufs,aufs" \
--enable-delay-pools \
--disable-ipv6

After launching it, I could not get to any websites, I just received the squid 
error (22) Invalid Argument.  No errors were logged in the cache.log, and the 
access log only showed a normal entry for a MISS request, below is one of the 
examples.

1280795483.002    184 10.100.10.3 TCP_MISS/503 3676 GET http://www.yahoo.com/ - 
DIRECT/www.yahoo.com text/html

While trying to find the problem, I also noticed the following output in the 
cache.log.

2010/08/02 21:12:50| Accepting ICP messages at [::]:8181, FD 10.
2010/08/02 21:12:50| Accepting SNMP messages on [::]:3401, FD 12.

So I used squid -v to verify that I did indeed compile it with --disable-ipv6.

/usr/local/squid/sbin/squid -v
Squid Cache: Version 3.1.5.1
configure options:  '--prefix=/usr/local/squid' '--enable-pthreads' 
'--enable-ssl' '--with-openssl=/usr/local' '--enable-async-io' 
'--enable-underscores' '--enable-storeio=ufs,aufs' '--enable-delay-pools' 
'--disable-ipv6' --with-squid=/usr/local/squid-3.1.5.1 --enable-ltdl-convenience

Sure enough it was there, I added the configuration option tcp_outgoing_address 
set it to my IPv4 address, and everything started working. Am I correct in 
think that there is something broken in the 3.1.5.1 build with the 
--disable-ipv6, or am I missing something else here?
 

Thanks,
     Dean Weimer
     Network Administrator
     Orscheln Management Co

Reply via email to