Weather Underground broken radar through Squid Proxy

One of my clients said that the weather was coming in fine, but the nifty WUG extended forecast and radar widget was missing. This is what she had:

Typically with this customer it’s problems of misbehaved applications such as this one trying to access the public network using the system proxy settings but not bothering to authenticate to the proxy – a no no on my networks. I watched for “TCP_DENIED” on the squid logs and saw a couple things to add to the ACL that can get out without auth. The things I added were, and (NFI what that last one is). This didn’t solve my problem.

Just for testing purposes I sent the client straight through to the Internet, which did solve the problem. Obviously there is something whacky with Squid.

Further digging into the logs revealed some network errors, 503 errors to be exact. The other weird part of these errors were IPv6 peer hosts, that ain’t gonna work I’m afraid.

Quick Google and I found that the simple solution is to tell Squid to prefer IPv4. I added the following line to the end of my squid.conf:

dns_v4_first on

then did a:

squid -k reconfigure

Now all the peer hosts are IPv4 and life is good again:

One thought on “Weather Underground broken radar through Squid Proxy

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>