<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Bits of Arrogance &#187; Squid</title>
	<atom:link href="https://www.crummylogic.com/wordpress/?feed=rss2&#038;tag=squid" rel="self" type="application/rss+xml" />
	<link>https://www.crummylogic.com/wordpress</link>
	<description>Making myself pervasive</description>
	<lastBuildDate>Wed, 04 Oct 2017 17:25:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.2.4</generator>
	<item>
		<title>Weather Underground broken radar through Squid Proxy</title>
		<link>https://www.crummylogic.com/wordpress/?p=248</link>
		<comments>https://www.crummylogic.com/wordpress/?p=248#comments</comments>
		<pubDate>Wed, 06 Aug 2014 13:41:00 +0000</pubDate>
		<dc:creator><![CDATA[jrdalrymple]]></dc:creator>
				<category><![CDATA[Technology junk]]></category>
		<category><![CDATA[break-fix]]></category>
		<category><![CDATA[Squid]]></category>

		<guid isPermaLink="false">http://www.jrssite.com/wordpress/?p=248</guid>
		<description><![CDATA[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&#8217;s problems of misbehaved applications such as this one trying to access the public network using the system proxy settings but not bothering &#8230; <a href="https://www.crummylogic.com/wordpress/?p=248" class="more-link">Continue reading <span class="screen-reader-text">Weather Underground broken radar through Squid Proxy</span> <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>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:</p>
<p><a href="http://www.jrssite.com/wordpress/wp-content/uploads/2014/08/wxug_broken.jpg"><img class="alignnone size-medium wp-image-249" alt="wxug_broken" src="http://www.jrssite.com/wordpress/wp-content/uploads/2014/08/wxug_broken-300x279.jpg" width="300" height="279" /></a></p>
<p>Typically with this customer it&#8217;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 &#8211; a no no on my networks. I watched for &#8220;TCP_DENIED&#8221; 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 .wxug.com, .weatherunderground.com and .cloudflare.com (NFI what that last one is). This didn&#8217;t solve my problem.</p>
<p>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.</p>
<p>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&#8217;t gonna work I&#8217;m afraid.</p>
<p>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:</p>
<pre>dns_v4_first on</pre>
<p>then did a:</p>
<pre>squid -k reconfigure</pre>
<p>Now all the peer hosts are IPv4 and life is good again:</p>
<p><a href="http://www.jrssite.com/wordpress/wp-content/uploads/2014/08/wxug_fixed.jpg"><img class="alignnone size-medium wp-image-250" alt="wxug_fixed" src="http://www.jrssite.com/wordpress/wp-content/uploads/2014/08/wxug_fixed-300x279.jpg" width="300" height="279" /></a></p>
]]></content:encoded>
			<wfw:commentRss>https://www.crummylogic.com/wordpress/?feed=rss2&#038;p=248</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
