<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-26666623</atom:id><lastBuildDate>Fri, 25 Oct 2024 09:14:59 +0000</lastBuildDate><category>reverse proxy</category><category>accelerate</category><category>filedescriptors</category><category>http proxy</category><category>out of free ports</category><category>project</category><category>soc</category><category>socks</category><category>squid</category><category>ssl support</category><category>ssl transparent proxy</category><category>web page</category><title>Squid questions and solutions blog (optimising web delivery)</title><description></description><link>http://squid-cache.blogspot.com/</link><managingEditor>noreply@blogger.com (Unknown)</managingEditor><generator>Blogger</generator><openSearch:totalResults>30</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-26666623.post-7269775848713206488</guid><pubDate>Thu, 21 Jun 2007 06:43:00 +0000</pubDate><atom:updated>2007-06-21T08:59:17.677+02:00</atom:updated><title>Howto debug network errors in squid with wireshark</title><description>If you see in the squid logs errors such as:&lt;br /&gt;&lt;pre wrap=&quot;&quot;&gt;&lt;br /&gt;&gt; 2007/06/12 11:15:45| parseHttpRequest: Unsupported method &#39;^C&#39;&lt;br /&gt;&lt;span class=&quot;moz-txt-citetags&quot;&gt;&gt; &lt;/span&gt;2007/06/12 11:15:45| clientReadRequest: FD 145 (x.x.x.x:62332) Invalid&lt;br /&gt;&lt;span class=&quot;moz-txt-citetags&quot;&gt;&gt; &lt;/span&gt;Request&lt;br /&gt;&lt;span class=&quot;moz-txt-citetags&quot;&gt;&gt; &lt;/span&gt;2007/06/12 11:15:48| parseHttpRequest: Requestheader contains NULL&lt;br /&gt;&lt;span class=&quot;moz-txt-citetags&quot;&gt;&gt; &lt;/span&gt;characters&lt;br /&gt;&lt;span class=&quot;moz-txt-citetags&quot;&gt;&gt; &lt;/span&gt;2007/06/12 11:15:48| parseHttpRequest: Unsupported method &#39;^C&#39;&lt;br /&gt;&lt;span class=&quot;moz-txt-citetags&quot;&gt;&gt; &lt;/span&gt;2007/06/12 11:15:48| clientReadRequest: FD 1611 (x.x.x.x:60853) Invalid&lt;br /&gt;&lt;span class=&quot;moz-txt-citetags&quot;&gt;&gt; &lt;/span&gt;Request&lt;br /&gt;&lt;span class=&quot;moz-txt-citetags&quot;&gt;&gt; &lt;/span&gt;2007/06/12 11:15:49| parseHttpRequest: Requestheader contains NULL&lt;br /&gt;&lt;span class=&quot;moz-txt-citetags&quot;&gt;&gt; &lt;/span&gt;characters&lt;br /&gt;&lt;span class=&quot;moz-txt-citetags&quot;&gt;&gt; &lt;/span&gt;2007/06/12 11:15:49| parseHttpRequest: Unsupported method &#39;^C&#39;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;You could do some debug with utils such as ethereal/wireshark:&lt;br /&gt;&lt;br /&gt;PROCEDURE:&lt;br /&gt;&lt;br /&gt;1. Start wireshart, and start a new packet capture.&lt;br /&gt;&lt;br /&gt;2. When seeing the error in cache.log, enter the filter&lt;br /&gt;ip.address == YYYYYY &amp;&amp;amp; tcp.port == XXXXX&lt;br /&gt;&lt;br /&gt;where YYYYY is the IP and XXXXX is the port number from the Invalid&lt;br /&gt;Request log line.&lt;br /&gt;&lt;br /&gt;Then select the first packet shown (should be a SYN), and choose Analyze&lt;br /&gt;-&gt; Follow TCP Stream. This opens a new window with the TCP stream&lt;br /&gt;decoded. In this area you&#39;ll have all important data about the problem.</description><link>http://squid-cache.blogspot.com/2007/06/howto-debug-network-errors-in-squid.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>4</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-26666623.post-1290428192143764421</guid><pubDate>Wed, 30 May 2007 06:26:00 +0000</pubDate><atom:updated>2007-05-30T08:33:54.667+02:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">http proxy</category><category domain="http://www.blogger.com/atom/ns#">socks</category><title>Differences between an HTTP/FTP/SSL proxy and a SOCKS proxy</title><description>Squid is a HTTP proxy.  &lt;span style=&quot;font-family: monospace;&quot;&gt;&lt;/span&gt;All communication to Squid is HTTP. But HTTP&lt;span style=&quot;font-family: monospace;&quot;&gt; &lt;/span&gt;proxies can resolve a number of different URL-schemes for their HTTP&lt;span style=&quot;font-family: monospace;&quot;&gt; &lt;/span&gt;clients.&lt;span style=&quot;font-family: monospace;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;The &lt;span style=&quot;font-weight: bold;&quot;&gt;difference between an HTTP proxy and SOCKS&lt;/span&gt; is that the HTTP proxy is&lt;span style=&quot;font-family: monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;fully aware of the protocol being proxied, and as result have well&lt;span style=&quot;font-family: monospace;&quot;&gt; &lt;/span&gt;defined behavior. The main difference is the ability to cache results.&lt;span style=&quot;font-family: monospace;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;SOCKS on the other hand is protocol neutral and SHOULD NOT perform&lt;span style=&quot;font-family: monospace;&quot;&gt; &lt;/span&gt;caching or other heavily protocol dependent actions.&lt;span style=&quot;font-family: monospace;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;With a web browser you can support both kind of proxys in order to surf the web.</description><link>http://squid-cache.blogspot.com/2007/05/differences-between-httpftpssl-proxy.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-26666623.post-5996115150432545681</guid><pubDate>Mon, 02 Apr 2007 08:00:00 +0000</pubDate><atom:updated>2007-04-02T17:26:13.462+02:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ssl transparent proxy</category><title>Transparent SSL proxy</title><description>&lt;span style=&quot;font-weight: bold;&quot;&gt;Does squid support this feature actually?&lt;/span&gt;. Yet NO (squid-2.6-Stable12)&lt;br /&gt;&lt;br /&gt;Several people ask on the squid mailing list they are working with a transparent proxy but they need transparently &quot;proxy&quot; the 443 port &quot;HTTPS&quot; they mean that their transparent proxy could work with https urls.&lt;br /&gt;&lt;br /&gt;But there are some misconceptions between HTTPS/SSL and proxy/reverse proxys.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Brief description:&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Working &lt;span style=&quot;font-weight: bold;&quot;&gt;as a normal proxy, squid can tunnel SSL requests&lt;/span&gt; when are requested by a HTTP user-agent (&lt;a href=&quot;http://tools.ietf.org/html/draft-luotonen-web-proxy-tunneling-01&quot;&gt;Netscape Documentation&lt;/a&gt;) vía HTTP proxies.&lt;br /&gt;This involved a &lt;span style=&quot;font-weight: bold;&quot;&gt;HTTP method&lt;/span&gt; (&lt;span style=&quot;font-weight: bold;&quot;&gt;CONNECT&lt;/span&gt;) for establishing the tunnel.&lt;br /&gt;&lt;br /&gt;But in a interception proxy  know as transparent proxy as well, the proxy becomes the server for the client and becomes the client for the web server. The connection between the two parts who starts the connection is broken and the identity of each is hidden  (SSL),  so in this special case the transparent proxy doesn&#39;t know how to handle the SSL requests because is not operating as a normal proxy.&lt;br /&gt;&lt;br /&gt;Some ideas to implement:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Listen on a different port than the current port used for the transparent proxy (usually 80)&lt;/li&gt;&lt;li&gt;Accept the SSL connection.&lt;/li&gt;&lt;li&gt;Do the acl lookups sourc/destination IP, source MAC, , time srcdomain...&lt;/li&gt;&lt;li&gt;Convert it to a HTTP CONNECT request suitable for the http proxy.&lt;/li&gt;&lt;/ul&gt;Another &lt;a href=&quot;http://squid-cache.blogspot.com/2007/03/fun-project-with-squid-soc.html&quot;&gt;small project to work in with squid&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;/span&gt;&lt;/span&gt;</description><link>http://squid-cache.blogspot.com/2007/04/transparent-ssl-proxy.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-26666623.post-635982364237975148</guid><pubDate>Wed, 14 Mar 2007 15:18:00 +0000</pubDate><atom:updated>2007-03-14T17:12:49.563+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">project</category><category domain="http://www.blogger.com/atom/ns#">soc</category><title>A fun project with squid (soc?)</title><description>Right now, google is starting the &lt;a href=&quot;http://code.google.com/soc&quot;&gt;soc&lt;/a&gt;, in order to get more open source projects and helping to the software students into participating in open source development.&lt;br /&gt;&lt;br /&gt;Some ideas to help with squid:&lt;br /&gt;&lt;br /&gt;In the squid list we are seeing several sites which are not working with squid due to a broken sites, this sites could not work due to a multiple factors, a fun project should be to make a software in order to test this broken sites.&lt;br /&gt;&lt;br /&gt;Some issues with these sites are:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;ECN&lt;/li&gt;&lt;li&gt;Windows Scaling&lt;/li&gt;&lt;li&gt;Forgetting Vary&lt;/li&gt;&lt;li&gt;Mixing up ETag (same ETag on multiple incompatible entities)&lt;/li&gt;&lt;li&gt;Various malformed responses&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Double content lenght&lt;/li&gt;&lt;li&gt;Malformed headers&lt;/li&gt;&lt;li&gt;Repeated single-value headers&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;And you can help a lot of with squid too, only take a look to &lt;a href=&quot;http://www.squid-cache.org/bugs/index.cgi&quot;&gt;bugzilla&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Any more squid project related?</description><link>http://squid-cache.blogspot.com/2007/03/fun-project-with-squid-soc.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-26666623.post-9005177073899682426</guid><pubDate>Wed, 07 Mar 2007 08:02:00 +0000</pubDate><atom:updated>2007-03-07T09:14:03.938+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">accelerate</category><category domain="http://www.blogger.com/atom/ns#">reverse proxy</category><title>Squid accelerator tips to serving content when a backend server is down</title><description>We can have squid to serve stale objects although the backend server is down.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Make sure &lt;span style=&quot;font-weight: bold;&quot;&gt;negative_ttl&lt;/span&gt; is set to 0 seconds to disable the caching of errors.&lt;/li&gt;&lt;li&gt;If the web server become unreachable, set the connect timeout sufficiently short. There are three different connect timeouts depending on your config and requirements:&lt;/li&gt;&lt;/ul&gt;                    - &lt;span style=&quot;font-weight: bold;&quot;&gt;config_timeout:&lt;/span&gt; for requests going DIRECT&lt;br /&gt;                    - &lt;span style=&quot;font-weight: bold;&quot;&gt;peer_config_timeout:&lt;/span&gt; for requests going to a cache_peer&lt;br /&gt;                    - &lt;span style=&quot;font-weight: bold;&quot;&gt;cache_peer ... timeout=XXX:&lt;/span&gt; specific timeout for this cache_peer, this one                                          override peer_config timeout.&lt;br /&gt;&lt;br /&gt;                   Default values are 1 minute for requests going direct  and 30 seconds for requests sent                 to a cache_peer.&lt;br /&gt;&lt;br /&gt;As a general statement in accelerator setups, you want the backend connect timeout quite short, a few seconds.</description><link>http://squid-cache.blogspot.com/2007/03/squid-accelerator-tips-to-serving.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-26666623.post-5980612800719147375</guid><pubDate>Tue, 27 Feb 2007 16:18:00 +0000</pubDate><atom:updated>2007-02-27T17:43:12.518+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">squid</category><category domain="http://www.blogger.com/atom/ns#">web page</category><title>New look in the squid web.</title><description>&lt;a href=&quot;http://www.creative.net.au/blog/1&quot;&gt;Adrian Chadd&lt;/a&gt; is an active squid developer who has helped with the &lt;a href=&quot;http://new.squid-cache.org/&quot;&gt;new look on the web page&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a aiotarget=&quot;false&quot; aiotitle=&quot;&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLS9LsclGzJswOMlKEN71QkTPhUKVQaR3myEZGdMupFGHt1ZYWY88FeKyPTM1YYnGZCSBbrCRxEtZ25-mJOHmBIk-7rK7WOe3SFqMVodFpuQR5mqHZoTWZglI2u6TVFFN6oTmnVg/s1600-h/squid.JPG&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLS9LsclGzJswOMlKEN71QkTPhUKVQaR3myEZGdMupFGHt1ZYWY88FeKyPTM1YYnGZCSBbrCRxEtZ25-mJOHmBIk-7rK7WOe3SFqMVodFpuQR5mqHZoTWZglI2u6TVFFN6oTmnVg/s320/squid.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5036252273112968658&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;The squid team is remarking the new &quot;&lt;a href=&quot;http://new.squid-cache.org/Intro/helping.html&quot;&gt;How to Help out&lt;/a&gt;&quot; section in order to catch more people helping to improve the squid software.&lt;br /&gt;&lt;br /&gt;It seems in a near future We&#39;ll have a new merchandise section where the people from the list could buy squid related things like t-shirts, cup of tea or similar in order to help the project.&lt;br /&gt;&lt;br /&gt;Personally I feel the squid list is a good source of information so We all would have to feel more close to the squid and to try help to the squid team by some way . Because &lt;a href=&quot;http://new.squid-cache.org/Intro/helping.html&quot;&gt;YOU can help in a differentd ways&lt;/a&gt;.</description><link>http://squid-cache.blogspot.com/2007/02/new-look-in-squid-web.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLS9LsclGzJswOMlKEN71QkTPhUKVQaR3myEZGdMupFGHt1ZYWY88FeKyPTM1YYnGZCSBbrCRxEtZ25-mJOHmBIk-7rK7WOe3SFqMVodFpuQR5mqHZoTWZglI2u6TVFFN6oTmnVg/s72-c/squid.JPG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-26666623.post-670661482211550549</guid><pubDate>Thu, 15 Feb 2007 09:40:00 +0000</pubDate><atom:updated>2007-02-15T10:49:28.810+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ssl support</category><title>SSL support, Squid 2.6 branch and RedHat</title><description>Testing the last squid version (squid-2.6Stable9) with ssl support in order to operate as a reverse proxy, I get this errors in the compilation process:&lt;br /&gt;&lt;br /&gt;---cut---&lt;br /&gt;ssl_support.h:49: syntax error before &#39;*&#39; token&lt;br /&gt;ssl_support.h:49: warning: type defaults to `int&#39; in declaration of `sslCreateServerContext&#39;&lt;br /&gt;ssl_support.h:49: warning: data definition has no type or storage class&lt;br /&gt;ssl_support.h:50: syntax error before &#39;*&#39; token&lt;br /&gt;ssl_support.h:50: warning: type defaults to `int&#39; in declaration of `sslCreateClientContext&#39;&lt;br /&gt;ssl_support.h:50: warning: data definition has no type or storage class&lt;br /&gt;ssl_support.h:54: syntax error before &quot;SSL&quot;&lt;br /&gt;ssl_support.h:56: syntax error before &#39;*&#39; token&lt;br /&gt;ssl_support.h:57: syntax error before &#39;*&#39; token&lt;br /&gt;ssl_support.h:58: syntax error before &#39;*&#39; token&lt;br /&gt;ssl_support.h:59: syntax error before &#39;*&#39; token&lt;br /&gt;ssl_support.h:60: syntax error before &#39;*&#39; token&lt;br /&gt;---cut--&lt;br /&gt;&lt;br /&gt;What&#39;s happening?&lt;br /&gt;&lt;br /&gt;The problem here is with RedHat, They have built OpenSSL with Kerberos support&lt;br /&gt;&lt;br /&gt;#[root@proxy squid-2.6.STABLE9]# rpm -qR openssl-devel-0.9.7a-33.12&lt;br /&gt;krb5-devel &lt;br /&gt;&lt;br /&gt;but Kerberos is not in the standard library and include path. This makes it impossible to build OpenSSL applications without manually including &lt;span style=&quot;font-weight: bold;&quot;&gt;/usr/kerberos&lt;/span&gt; in the include and library paths.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.squid-cache.org/mail-archive/squid-dev/200305/0023.html&quot;&gt;More info&lt;/a&gt;.</description><link>http://squid-cache.blogspot.com/2007/02/ssl-support-squid-26-branch-and-redhat.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-26666623.post-3871150780264473639</guid><pubDate>Tue, 06 Feb 2007 10:14:00 +0000</pubDate><atom:updated>2007-02-06T11:35:18.125+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">reverse proxy</category><title>Reverse proxy configurations</title><description>The configuration of a reverse proxy, it depends on what functionality you want to achive.&lt;br /&gt;There is three ways of using this depending on what your functionality&lt;br /&gt;requirements are:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;a)&lt;/span&gt; With Squid acting as an &lt;span style=&quot;font-weight: bold;&quot;&gt;accelerator/reverse proxy for a defined list&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;of sites, upgrading these sites to https&lt;/span&gt;. You then use the ssl option to&lt;br /&gt;cache_peer to wrap the request in SSL.&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;b)&lt;/span&gt; By using a &lt;span style=&quot;font-weight: bold;&quot;&gt;HTTP client sending https:// URLs to Squid&lt;/span&gt;. Squid will&lt;br /&gt;then maintain the SSL on behalf of the client.&lt;br /&gt;&lt;br /&gt;Here, the client has to send the https:// request using HTTP to the&lt;br /&gt;proxy, just as it does for http://. This is:&lt;br /&gt;&lt;pre&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;GET https://www.example.com/path/to/file HTTP/1.1&lt;br /&gt;[headers]&lt;/span&gt;&lt;/pre&gt;It does not work for clients using the &lt;span style=&quot;font-weight: bold;&quot;&gt;CONNECT method&lt;/span&gt; asking for a SSL&lt;br /&gt;tunnel over the proxy.&lt;br /&gt;&lt;br /&gt;At this case, the clients are knowing they should not run the SSL themselves and&lt;br /&gt;delegating this task to the proxy. They don&#39;t have any SSL capabilities and instead&lt;br /&gt;rely on the proxy to perform the SSL encryption.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;c)&lt;/span&gt; Using a &lt;span style=&quot;font-weight: bold;&quot;&gt;url rewriter helper to rewrite selected http:// URLs into&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;https:// per your own specifications&lt;/span&gt;, making Squid process the request&lt;br /&gt;as a https:// request even if the client requested http://&lt;br /&gt;&lt;br /&gt;At this case, the clients are emulating this by rewriting http:// URLs into https://&lt;br /&gt;at the proxy.&lt;br /&gt;&lt;br /&gt;It&#39;s also possible to extend Squid with the capability to decrypt&lt;br /&gt;CONNECT SSL proxy requests allowing inspection of https traffic.&lt;br /&gt;For more information on this way you can contact with Henrik Nordstrom.&lt;br /&gt;&lt;a href=&quot;http://www.squid-cache.org/contacting.html&quot;&gt;Contactos de squid&lt;/a&gt;.&lt;a class=&quot;linkification-ext&quot; href=&quot;http://www.squid-cache.org/contacting.html&quot; title=&quot;Linkification: http://www.squid-cache.org/contacting.html&quot;&gt;&lt;br /&gt;&lt;/a&gt;</description><link>http://squid-cache.blogspot.com/2007/02/reverse-proxy-configurations.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-26666623.post-7008248423619873150</guid><pubDate>Mon, 05 Feb 2007 10:09:00 +0000</pubDate><atom:updated>2007-02-05T11:14:52.051+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">out of free ports</category><title>Squid running out of free ports.</title><description>Symptons  from a busy squid with high traffic:&lt;br /&gt;&lt;pre wrap=&quot;&quot;&gt;commBind: Cannot bind socket FD 98 to *:0: (98) Address already in use&lt;/pre&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Solution:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;You have run out of free ports, all available ports occupied by&lt;br /&gt;TIME_WAIT sockets.&lt;br /&gt;&lt;br /&gt;Things to look into&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;1.&lt;/span&gt; Make sure you internally use &lt;span style=&quot;font-weight: bold;&quot;&gt;persistent connections&lt;/span&gt; between Squid and&lt;br /&gt;the web servers. This cuts down on the number of initiated connections/s&lt;br /&gt;considerably.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;2.&lt;/span&gt; Configure the &lt;span style=&quot;font-weight: bold;&quot;&gt;unassigned port range as big as possible in your OS&lt;/span&gt;. On&lt;br /&gt;Linux this is set in /proc/sys/net/ipv4/ip_local_port_range. The biggest&lt;br /&gt;possible range is 1024-65535 and can sustain up to at least 500&lt;br /&gt;connections/s continuous load squid-&gt;webservers.</description><link>http://squid-cache.blogspot.com/2007/02/squid-running-out-of-free-ports.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-26666623.post-8322136610088101468</guid><pubDate>Mon, 05 Feb 2007 09:59:00 +0000</pubDate><atom:updated>2007-02-05T11:22:21.223+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">filedescriptors</category><title>What does Squid do or act like when its out of file descriptors?</title><description>When Squid sees it&#39;s short of filedescriptors it stops accepting new&lt;br /&gt;requests, focusing on finishing what it has already accepted.&lt;br /&gt;&lt;br /&gt;And long before there is a shortage it disables the use of persistent&lt;br /&gt;connections to limit the pressure on concurrent filedescriptors.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;What does it to do in such case?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Once Squid has detected a filedescriptor limitation it won&#39;t go&lt;br /&gt;above the number of filedescriptor it used at that time, and you need to&lt;br /&gt;restart Squid to recover after fixing the cause to the system wide&lt;br /&gt;filedescriptor shortage.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;do squid recover or do it need to be restarted?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;depends on the reason to the filedescriptor shortage.&lt;br /&gt;&lt;br /&gt;If the shortage is due to Squid using very many filedescriptors then no&lt;br /&gt;action need to be taken (except perhaps increase the amount of&lt;br /&gt;filedescriptors available to Squid to avoid the problem in future).&lt;br /&gt;Squid automatically adjusts to the per process limit and hitting the&lt;br /&gt;system wide limit if it&#39;s lower than the per-process limit.&lt;br /&gt;&lt;br /&gt;If the shortage is due to some other process causing the systems as a&lt;br /&gt;whole to temporarily run short of filedescriptors or related resources&lt;br /&gt;then you need to restart Squid after fixing the problem as Squid has got&lt;br /&gt;fooled in this situation into thinking that your system can not support&lt;br /&gt;a reasonable amount of active connections.</description><link>http://squid-cache.blogspot.com/2007/02/what-does-squid-do-or-act-like-when-its.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-26666623.post-116184614692971516</guid><pubDate>Thu, 26 Oct 2006 06:58:00 +0000</pubDate><atom:updated>2006-10-26T09:02:26.940+02:00</atom:updated><title>Different log for each domain</title><description>With squid 2.6 in a reverse proxy configuration with several domains, it&#39;s possible to have log messagees to separate files per cache_peer_domain.&lt;br /&gt;&lt;br /&gt;Example with two peer domains.&lt;br /&gt;www.abc.com&lt;br /&gt;www.xyz.com&lt;br /&gt;&lt;br /&gt;---squid.conf----&lt;br /&gt;acl abc dstdomain www.abc.com&lt;br /&gt;acl xyz dstdomain www.xyz.com&lt;br /&gt;&lt;br /&gt;access_log /path/to/xyz.log squid xyz&lt;br /&gt;access_log none xyz&lt;br /&gt;access_log /path/to/abc.log squid abc&lt;br /&gt;access_log none abc&lt;br /&gt;access_log /path/to/access.log squid&lt;br /&gt;---squid.conf end---</description><link>http://squid-cache.blogspot.com/2006/10/different-log-for-each-domain.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-26666623.post-116158894131724202</guid><pubDate>Mon, 23 Oct 2006 07:30:00 +0000</pubDate><atom:updated>2006-10-23T09:35:41.330+02:00</atom:updated><title>HTTP1.0 / HTTP1.1</title><description>Squid is a HTTP/1.0 proxy. But all HTTP/1.1 clients and servers MUST interoperate with HTTP/1.0 to be compliant.&lt;br /&gt;&lt;br /&gt;The main difference this brings to the protocol (apart from version number) is that aplications or servers can&#39;t use transfer-encoding. The rest of HTTP/1.1 is supported fine over HTTP/1.0.&lt;br /&gt;&lt;br /&gt;Transfer-Encoding tells the receiver what encoding has been performed on the message in order for it to be safely transported.&lt;br /&gt;All transfer-encoding values are case-insensitive. HTTP/1.1 uses transfer-encoding values in the TE header field and in the Transfer-Encoding header field. The latest HTTP specification defines only one transfer encoding, chunked encoding.</description><link>http://squid-cache.blogspot.com/2006/10/http10-http11.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-26666623.post-116074612501631117</guid><pubDate>Fri, 13 Oct 2006 13:25:00 +0000</pubDate><atom:updated>2006-10-13T15:32:46.056+02:00</atom:updated><title>Relay server for SSL connections</title><description>If you have overladed web servers you can save the SSL load put in front of their a relay proxy for ssl connections. This means that this proxy will accept HTTPS connections and will translate them into HTTP requests on another server.&lt;br /&gt;&lt;br /&gt;This can be achieve with:&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;https_port&lt;/span&gt; directive. &lt;br /&gt;and setting up squid as an https accelerator for the http server.&lt;br /&gt;&lt;br /&gt;Example configuration;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;https_port 443 cert=/path/to/sslcert.pem defaultsite=your.site.name&lt;br /&gt;cache_peer ip.of.apache 80 0 no-query originserver&lt;/span&gt;</description><link>http://squid-cache.blogspot.com/2006/10/relay-server-for-ssl-connections.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-26666623.post-116074551289625802</guid><pubDate>Fri, 13 Oct 2006 13:14:00 +0000</pubDate><atom:updated>2006-10-13T15:18:32.906+02:00</atom:updated><title>Redirector in a reverse proxy scenario</title><description>A common technique using in a &lt;span style=&quot;font-weight:bold;&quot;&gt;reverse proxy scenario&lt;/span&gt; where virtual hostnames are distributed to several internal servers is using a redirector. But with the new 2.6 squid there is a better way to achieve this feature.&lt;br /&gt;You can forward the requests with:&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;cache_peer + cache_peer_acess + never_direct&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This is the recommend method if the other server is supposed to act exactly like the real web site, including it&#39;s name.</description><link>http://squid-cache.blogspot.com/2006/10/redirector-in-reverse-proxy-scenario.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-26666623.post-116074427839239691</guid><pubDate>Fri, 13 Oct 2006 12:54:00 +0000</pubDate><atom:updated>2006-10-13T14:57:58.403+02:00</atom:updated><title>2Gb access.log</title><description>&quot;&lt;span style=&quot;font-style:italic;&quot;&gt;FATAL: logfileWrite: /var/log/squid/access.log: (11) Resource &lt;br /&gt;&gt; temporarily unavailable&lt;/span&gt;&quot;&lt;br /&gt;&lt;br /&gt;A quit common cause for this message is the access.log reaching the magic 2GB barrier of 32-bit applications.&lt;br /&gt;&lt;br /&gt;A common solution for this is compile squid with large cache files support.&lt;br /&gt;&lt;br /&gt;From the configure script.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;--with-large-files&lt;/span&gt;      Enable support for large files (logs etc).&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;--enable-large-cache-files&lt;/span&gt;&lt;br /&gt;                         Enable support for large cache files (&gt;2GB).&lt;br /&gt;                         WARNING: on-disk cache format is changed by this option</description><link>http://squid-cache.blogspot.com/2006/10/2gb-accesslog.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-26666623.post-115977210204063889</guid><pubDate>Mon, 02 Oct 2006 06:51:00 +0000</pubDate><atom:updated>2006-10-02T08:58:49.526+02:00</atom:updated><title>Use the no_cache directive correctly</title><description>If you don&#39;t want cache some object, the best directive to achieve it is the &lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;no_cache&lt;/span&gt; directive &lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;acl QUERY urlpath_regex cgi-bin \? \.asp$ \.php$&lt;br /&gt;no_cache deny QUERY&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The &lt;span style=&quot;font-weight:bold;&quot;&gt;refresh_pattern&lt;/span&gt; directive only applies on pages where there is no explicit expiry information set by the origin server.</description><link>http://squid-cache.blogspot.com/2006/10/use-nocache-directive-correctly.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-26666623.post-115831256049380443</guid><pubDate>Fri, 15 Sep 2006 08:25:00 +0000</pubDate><atom:updated>2006-09-15T11:29:20.546+02:00</atom:updated><title>Limit the amount of time spending in personal stuff during work hours</title><description>Several people in her works hours are doing personal stuff such as reading gmail, yahoo mail, reading blogs, etc. In order to avoid these kind of behaviour you can do some acctions to remember them they are working and it&#39;s not good wasting work hours with not related things.&lt;br /&gt;&lt;br /&gt;Help to accomplish this task:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;session helper&lt;/span&gt; from squid-2.6.&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;deny_info&lt;/span&gt; redirecting to a web page with a reminder.</description><link>http://squid-cache.blogspot.com/2006/09/limit-amount-of-time-spending-in.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>4</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-26666623.post-115797209310573500</guid><pubDate>Mon, 11 Sep 2006 10:53:00 +0000</pubDate><atom:updated>2006-09-11T12:54:53.116+02:00</atom:updated><title>Recommended compile options</title><description>&lt;span style=&quot;font-weight:bold;&quot;&gt;--prefix&lt;/span&gt;= if you want to install Squid in another location&lt;br /&gt;than /usr/local/squid&lt;br /&gt;&lt;br /&gt;   &lt;span style=&quot;font-weight:bold;&quot;&gt;--enable-storeio&lt;/span&gt;=&quot;ufs aufs null&quot; on most platforms to allow choice of&lt;br /&gt;more performing disk I/O.&lt;br /&gt;&lt;br /&gt;   &lt;span style=&quot;font-weight:bold;&quot;&gt;--enable-auth&lt;/span&gt; to enable all authentication schemes to have them&lt;br /&gt;available the day you want to use them.&lt;br /&gt;&lt;br /&gt;   &lt;span style=&quot;font-weight:bold;&quot;&gt;--enable-delay-pools&lt;/span&gt; to enable the delay pools shaping capability.&lt;br /&gt;&lt;br /&gt;   &lt;span style=&quot;font-weight:bold;&quot;&gt;--enable-snmp&lt;/span&gt; to enable monitoring &amp; statistics collection using SNMP&lt;br /&gt;&lt;br /&gt;   &lt;span style=&quot;font-weight:bold;&quot;&gt;--with-large-files&lt;/span&gt; if you are on a 32-bit platform to enable support&lt;br /&gt;for large log files bigger than 2GB. Warning: Do not use this option on&lt;br /&gt;64-bit platforms.</description><link>http://squid-cache.blogspot.com/2006/09/recommended-compile-options.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-26666623.post-115744514060102426</guid><pubDate>Tue, 05 Sep 2006 08:32:00 +0000</pubDate><atom:updated>2006-09-05T10:33:35.156+02:00</atom:updated><title>Golden Rule</title><description>&lt;span style=&quot;font-weight:bold;&quot;&gt;Start with the first error, ignore the rest.&lt;/span&gt;</description><link>http://squid-cache.blogspot.com/2006/09/golden-rule.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-26666623.post-115744495295285658</guid><pubDate>Tue, 05 Sep 2006 08:25:00 +0000</pubDate><atom:updated>2006-09-05T10:29:40.443+02:00</atom:updated><title>Some notes regarding NTLM</title><description>Squid 2.6Stable 3 now support the NTLM passthrough.&lt;br /&gt;&lt;br /&gt;An alternative which is recommended and works for all proxies is to have the web site using https on authenticated content. https is tunneled via the proxy, not proxied, and therefore works fine even with non-HTTP-compliant authentication such as NTLM.</description><link>http://squid-cache.blogspot.com/2006/09/some-notes-regarding-ntlm.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-26666623.post-115744470439895479</guid><pubDate>Tue, 05 Sep 2006 08:24:00 +0000</pubDate><atom:updated>2006-09-05T10:25:04.410+02:00</atom:updated><title>From now this blog will be in english language</title><description></description><link>http://squid-cache.blogspot.com/2006/09/from-now-this-blog-will-be-in-english.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-26666623.post-114957901171858073</guid><pubDate>Tue, 06 Jun 2006 07:13:00 +0000</pubDate><atom:updated>2006-06-06T14:48:26.933+02:00</atom:updated><title>Aumentar numero de Filedescriptores</title><description>Cuando compilamos una versión de squid, tenemos que tener en cuenta el número de filedescriptors que va a tener disponible. Cuando realizamos el configure, aparecerá una linea;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-size:85%;&quot; &gt;checking Maximum number of filedescriptors we can open... 1024&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;que es los que actualmente tenemos en nuestro sistema operativo disponibles.&lt;br /&gt;Para aumentarlos;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;#ulimit -HSn 2048&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Volvemos a compilar, y comprobamos que efectivamente ha cogido bien el soporte de filedescriptors que ahora tendrá disponible.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-size:85%;&quot; &gt;checking Maximum number of filedescriptors we can open... 2048&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;1024 Filedescriptors&lt;/span&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://photos1.blogger.com/blogger/5617/2470/1600/filedescriptors.png&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;&quot; src=&quot;http://photos1.blogger.com/blogger/5617/2470/320/filedescriptors.png&quot; alt=&quot;&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;2048 Filedescriptors&lt;/span&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://photos1.blogger.com/blogger/5617/2470/1600/2048filesdescriptors.png&quot;&gt;&lt;img style=&quot;cursor: pointer;&quot; src=&quot;http://photos1.blogger.com/blogger/5617/2470/320/2048filesdescriptors.png&quot; alt=&quot;&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;</description><link>http://squid-cache.blogspot.com/2006/06/aumentar-numero-de-filedescriptores.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-26666623.post-114898274506816417</guid><pubDate>Tue, 30 May 2006 09:50:00 +0000</pubDate><atom:updated>2006-05-30T11:52:25.076+02:00</atom:updated><title>SNMP y Squid</title><description>Para ver los diferentes parametros que podemos monitorizar con squid en mrtg.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;snmpwalk host:3401 -v 1 -c public .1.3.6.1.4.1.3495 -m /usr/local/squid/share/mib.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Para lo que previamente tendremos que haber configurado el acceso snmp en squid.conf&lt;br /&gt;para que permita consultas a host.</description><link>http://squid-cache.blogspot.com/2006/05/snmp-y-squid.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-26666623.post-114805490688184880</guid><pubDate>Fri, 19 May 2006 15:20:00 +0000</pubDate><atom:updated>2006-09-06T09:08:48.653+02:00</atom:updated><title>Ocultar la versión de squid</title><description>Para ocultar la versión de squid que se muestra en una página de error;&lt;br /&gt;&lt;br /&gt;Edita src/errorpage.c&lt;br /&gt;Linea:69  :)&lt;br /&gt;&lt;br /&gt;&gt;De&lt;br /&gt;&quot;Generated %T by %h (%s)\n&quot;&lt;br /&gt;a&lt;br /&gt;&quot;Generated %T by %h \n&quot;&lt;br /&gt;&lt;br /&gt;Y vuelve a compilar squid.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;Update on 6th September&lt;/span&gt;&lt;br /&gt;From 2.6Stable1 it&#39;s available the &lt;span style=&quot;font-weight:bold;&quot;&gt;httpd_supress_version_string&lt;/span&gt; directive (default off)</description><link>http://squid-cache.blogspot.com/2006/05/ocultar-la-versin-de-squid.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-26666623.post-114802831414371126</guid><pubDate>Fri, 19 May 2006 08:35:00 +0000</pubDate><atom:updated>2006-05-19T10:47:02.210+02:00</atom:updated><title>Bloquear Malware con Squid</title><description>Hoy en día existen URLS que ocultan todo tipo de efectos dañiños tales como Virus, troyanos gusanos y todo lo denominado malware.&lt;br /&gt;Un usuario desea saber como se puede conseguir con squid filtrar archivos peligrosos por su extensión, pero las típicas reglas que bloquean&lt;br /&gt;\.com$&lt;br /&gt;\.scr$&lt;br /&gt;\.bat$ &lt;br /&gt;estas extensiones no sirven cuando hoy en día existen multitud de técnicas para ocultar archivos en urls tales como&lt;br /&gt;http://www.mikes.educv.ro/albums/cartao.scr?4d325356ae47122a6e7b8f1f07cae26d&lt;br /&gt;La solución para esto pasa por integrar squid con &lt;a href=&quot;http://www.malware.com.br/#blocklist&quot;&gt;listas de URLs&lt;/a&gt; disponibles para él.&lt;br /&gt;&lt;a href=&quot;http://www.malware.com.br/squid.html&quot;&gt;Aquí&lt;/a&gt; se explica la configuración de squid.</description><link>http://squid-cache.blogspot.com/2006/05/bloquear-malware-con-squid.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item></channel></rss>