Search squid archive

Squid is not caching downloads

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  squid3@xxxxxxxxxxxxx
    SMTP error from remote mail server after RCPT
TO:<squid3@xxxxxxxxxxxxx>:
    host mail.treenet.co.nz [58.28.153.233]: 554 5.7.1 Service
unavailable; Client host [173.242.114.152] blocked using dnsbl.ahbl.org;
NewIPNow.com/Anonymous proxy IPs used for harassment

------ This is a copy of the message, including all the headers. ------

Return-path: <thefixer@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Received: from pool-71-243-203-231.lax.dsl-w.verizon.net
([71.243.203.231] helo=[192.168.5.8])
        by erion.jollyworkshosting.com with esmtpsa
(SSLv3:AES256-SHA:256)
        (Exim 4.69)
        (envelope-from <thefixer@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>)
        id 1PcZn1-0003Gl-9u
        for squid3@xxxxxxxxxxxxx; Tue, 11 Jan 2011 16:41:15 +0800
Subject: Re:  Squid is Not Caching Downloads, only web
content
From: fix <thefixer@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
To: Amos Jeffries <squid3@xxxxxxxxxxxxx>
In-Reply-To: <4D2C1292.1040304@xxxxxxxxxxxxx>
References: <1294732087.8513.5.camel@fixjack-desktop>
         <4D2C1292.1040304@xxxxxxxxxxxxx>
Content-Type: text/plain; charset="UTF-8"
Organization: Electronik Tribulation Army
Date: Tue, 11 Jan 2011 00:41:13 -0800
Message-ID: <1294735273.8513.11.camel@fixjack-desktop>
Mime-Version: 1.0
X-Mailer: Evolution 2.28.3 
Content-Transfer-Encoding: 7bit

I am currently using Squid 2.7 that I got on Ubuntu 9.10 karmic Server,
headless.

Heres my conf. Also I suspect it may not be caching at all, because my
memory usage never goes about 150mb and I have it set to 400 max.
But it is saving stuff to my disk because I can see my drive usage is
high, but its clearly not serving downloads back to me. Im not an expert
at squid, this is just a bunch of stuff I put together from various
tutorials I found online, so if theres anything wrong please tell me,
and thank you for your courteous assistance.

Squid.conf
================================================================
visible_hostname evil.ubuntu
http_port 3128 transparent
icp_port        0

refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern .               0       20%     4320


dns_nameservers 127.0.0.1
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid3 5000 32 256
access_log /var/log/squid/access.log
cache_mem 400 MB
client_lifetime 300 minute
memory_pools off
half_closed_clients off
pconn_timeout 120 second
maximum_object_size 100 MB
maximum_object_size_in_memory 5 MB
log_icp_queries off
cache_mgr root@ubuntu

acl localhost src 127.0.0.1/32
acl manager proto cache_object
acl our_networks src 192.168.5.0/24
acl localnet src 127.0.0.1/255.255.255.255
acl all src all
acl windowsupdate dstdomain windowsupdate.microsoft.com
acl windowsupdate dstdomain .update.microsoft.com
acl windowsupdate dstdomain download.windowsupdate.com
acl windowsupdate dstdomain redir.metaservices.microsoft.com
acl windowsupdate dstdomain images.metaservices.microsoft.com
acl windowsupdate dstdomain c.microsoft.com
acl windowsupdate dstdomain www.download.windowsupdate.com
acl windowsupdate dstdomain wustat.windows.com
acl windowsupdate dstdomain crl.microsoft.com
acl windowsupdate dstdomain sls.microsoft.com
acl windowsupdate dstdomain productactivation.one.microsoft.com
acl windowsupdate dstdomain ntservicepack.microsoft.com
acl SSL_ports port 443
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # https
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
acl CONNECT method CONNECT
acl wuCONNECT dstdomain www.update.microsoft.com

http_access allow our_networks
http_access allow localnet
http_access allow CONNECT wuCONNECT our_networks
http_access allow windowsupdate our_networks
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow manager localhost
http_access deny manager
http_access deny all





On Tue, 2011-01-11 at 21:19 +1300, Amos Jeffries wrote:
> On 11/01/11 20:48, fix wrote:
> > Squid is Not Caching Downloads, only web content, how can I
configure it
> > to also cache my downloaded files?
> >
> 
> There is no difference between "downloads" and "web content" in HTTP. 
> Its all just objects.
> 
> Most likely that you have configured a maximum object size cacheable
or 
> something like that. What version of Squid and what does squid.conf
contain?
> 
> Amos




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux