<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[Resolved] Squid error after update 2.0-RC3 (i386) built on Tue Aug 30]]></title><description><![CDATA[<p dir="auto">I receive a squid (version 2.7.9_4.1) "Invalid Request" error message, after updating to 2.0-RC3 (i386) built on Tue Aug 30 18:46:28 EDT 2011</p>
<p dir="auto">This is frequently due to squid's parameter "request_body_max_size" set value lower than 1 MB, but I's set to<br />
"request_body_max_size 0 KB" (unlimited)</p>
<blockquote>
<pre><code>
cache.log : 
2011/08/31 15:58:55| clientTryParseRequest: FD 23 (10.0.0.9:2108) Invalid Request
2011/08/31 15:58:56| clientTryParseRequest: FD 23 (10.0.0.9:2109) Invalid Request
2011/08/31 16:05:08| clientTryParseRequest: FD 23 (10.0.0.9:2111) Invalid Request

</code></pre>
</blockquote>
<blockquote>
<pre><code>
access.log : 
1314799136.857      0 10.0.0.9 TCP_DENIED/400 2297 GET NONE:// - NONE/- text/html
1314799508.667      0 10.0.0.9 TCP_DENIED/400 2395 GET NONE:// - NONE/- text/html

</code></pre>
</blockquote>
<blockquote>
<p dir="auto">Squid conf  :</p>
<h1><a class="anchor-offset" name="do-not-edit-manually"></a>Do not edit manually !</h1>
<p dir="auto">http_port 10.0.0.10:3128<br />
http_port 127.0.0.1:3128<br />
http_port 127.0.0.1:3128 transparent<br />
icp_port 0</p>
<p dir="auto">pid_filename /var/run/squid.pid<br />
cache_effective_user proxy<br />
cache_effective_group proxy<br />
error_directory /usr/local/etc/squid/errors/French<br />
icon_directory /usr/local/etc/squid/icons<br />
visible_hostname Parefeu-test<br />
cache_mgr xxxx<br />
access_log /var/squid/log/access.log<br />
cache_log /var/squid/log/cache.log<br />
cache_store_log none<br />
logfile_rotate 7<br />
shutdown_lifetime 3 seconds</p>
<h1><a class="anchor-offset" name="allow-local-network-s-on-interface-s"></a>Allow local network(s) on interface(s)</h1>
<p dir="auto">acl localnet src  10.0.0.0/255.255.255.0 127.0.0.0/255.0.0.0<br />
forwarded_for off<br />
httpd_suppress_version_string on<br />
uri_whitespace strip</p>
<p dir="auto">cache_mem 256 MB<br />
maximum_object_size_in_memory 32 KB<br />
memory_replacement_policy heap GDSF<br />
cache_replacement_policy heap LFUDA<br />
cache_dir ufs /var/squid/cache 5000 16 256<br />
minimum_object_size 0 KB<br />
maximum_object_size 4096 KB<br />
offline_mode off<br />
cache_swap_low 90<br />
cache_swap_high 95</p>
<h1><a class="anchor-offset" name="no-redirector-configured"></a>No redirector configured</h1>
<h1><a class="anchor-offset" name="setup-some-default-acls"></a>Setup some default acls</h1>
<p dir="auto">acl all src 0.0.0.0/0.0.0.0<br />
acl localhost src 127.0.0.1/255.255.255.255<br />
acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 445 3128 1025-65535<br />
acl sslports port 443 563 445<br />
acl manager proto cache_object<br />
acl purge method PURGE<br />
acl connect method CONNECT<br />
acl dynamic urlpath_regex cgi-bin ?<br />
acl unrestricted_hosts src '/var/squid/acl/unrestricted_hosts.acl'<br />
cache deny dynamic<br />
http_access allow manager localhost<br />
 <br />
http_access deny manager<br />
http_access allow purge localhost<br />
http_access deny purge<br />
http_access deny !safeports<br />
http_access deny CONNECT !sslports</p>
<h1><a class="anchor-offset" name="always-allow-localhost-connections"></a>Always allow localhost connections</h1>
<p dir="auto">http_access allow localhost</p>
<p dir="auto">request_body_max_size 0 KB<br />
reply_body_max_size 0 deny all<br />
delay_pools 1<br />
delay_class 1 2<br />
delay_parameters 1 -1/-1 -1/-1<br />
delay_initial_bucket_level 100<br />
delay_access 1 allow all</p>
<h1><a class="anchor-offset" name="custom-options"></a>Custom options</h1>
<p dir="auto">tcp_outgoing_address 127.0.0.1<br />
redirect_program /usr/local/bin/squidGuard -c /usr/local/etc/squidGuard/squidGuard.conf<br />
redirector_bypass on<br />
redirect_children 3</p>
<h1><a class="anchor-offset" name="these-hosts-do-not-have-any-restrictions"></a>These hosts do not have any restrictions</h1>
<p dir="auto">http_access allow unrestricted_hosts</p>
<h1><a class="anchor-offset" name="setup-allowed-acls"></a>Setup allowed acls</h1>
<h1><a class="anchor-offset" name="allow-local-network-s-on-interface-s"></a>Allow local network(s) on interface(s)</h1>
<p dir="auto">http_access allow localnet</p>
<h1><a class="anchor-offset" name="default-block-all-to-be-sure"></a>Default block all to be sure</h1>
<p dir="auto">http_access deny all</p>
</blockquote>
]]></description><link>https://forum.netgate.com/topic/36828/resolved-squid-error-after-update-2-0-rc3-i386-built-on-tue-aug-30</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 03:29:15 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/36828.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 31 Aug 2011 14:15:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Resolved] Squid error after update 2.0-RC3 (i386) built on Tue Aug 30 on Thu, 01 Sep 2011 23:03:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nl">@<bdi>nl</bdi></a>:</p>
<blockquote>
<p dir="auto">I've found the problem :</p>
<p dir="auto">Disable loopback interface in squid and everything goes on.</p>
</blockquote>
<p dir="auto">I've checked my squid.conf after applying your method and I think I understand now - your fix does exactly the same thing as mine.<br />
Simply after adding loopback interface squid puts incorrectly<br />
http_port 127.0.0.1:3128<br />
thus disabling next line with transparent option, so it's a slight change in GUI interpretation in the latest version of squid package.</p>
]]></description><link>https://forum.netgate.com/post/294143</link><guid isPermaLink="true">https://forum.netgate.com/post/294143</guid><dc:creator><![CDATA[robo]]></dc:creator><pubDate>Thu, 01 Sep 2011 23:03:57 GMT</pubDate></item><item><title><![CDATA[Reply to [Resolved] Squid error after update 2.0-RC3 (i386) built on Tue Aug 30 on Thu, 01 Sep 2011 22:44:46 GMT]]></title><description><![CDATA[<p dir="auto">I encountered the same problem on august 30th build.  I've corrected the problem by removing middle line and restarting squid:</p>
<p dir="auto">http_port 10.0.0.10:3128<br />
<s>http_port 127.0.0.1:3128</s><br />
http_port 127.0.0.1:3128 transparent</p>
<p dir="auto">Is this a bug or newly introduced feature? I've checked my old squid.conf and 2nd line wasn't present there.</p>
]]></description><link>https://forum.netgate.com/post/294142</link><guid isPermaLink="true">https://forum.netgate.com/post/294142</guid><dc:creator><![CDATA[robo]]></dc:creator><pubDate>Thu, 01 Sep 2011 22:44:46 GMT</pubDate></item><item><title><![CDATA[Reply to [Resolved] Squid error after update 2.0-RC3 (i386) built on Tue Aug 30 on Thu, 01 Sep 2011 08:07:59 GMT]]></title><description><![CDATA[<p dir="auto">I've found the problem :</p>
<p dir="auto">Disable loopback interface in squid and everything goes on.</p>
]]></description><link>https://forum.netgate.com/post/294042</link><guid isPermaLink="true">https://forum.netgate.com/post/294042</guid><dc:creator><![CDATA[nl]]></dc:creator><pubDate>Thu, 01 Sep 2011 08:07:59 GMT</pubDate></item></channel></rss>