Re: [squid-users] ubuntu apt-get update 404

From: Matthew Morgan <atcs.matthew_at_gmail.com>
Date: Sat, 7 Nov 2009 11:11:20 -0500

On Sat, Nov 7, 2009 at 11:07 AM, Matthew Morgan <atcs.matthew_at_gmail.com> wrote:
>
>
> On Fri, Nov 6, 2009 at 9:34 PM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
>>
>> Matthew Morgan wrote:
>>>
>>> Are there any known issues with squid 3.x and apt-get update on Ubuntu?  On 2.7 everything worked fine, but on 3.0-stable19 and 3.0-stable20, I get random 404 responses when doing apt-get update.  I tried starting with a fresh cache, but no dice.  Here's my squid.conf:
>>>
>>> visible_hostname proxy
>>> http_port 192.168.2.1:3128 transparent
>>> snmp_port 3401
>>> acl all src all
>>
>> If that is actually in your squid.conf remove it.
>>
>>> acl manager proto cache_object
>>> acl localhost src 127.0.0.1/32
>>> acl to_localhost dst 127.0.0.0/8
>>> acl snmppublic snmp_community public
>>> acl localnet src 192.168.1.0/24    # RFC1918 possible internal network
>>> acl localnet src 192.168.2.0/24
>>
>>
>>> acl CONNECT method CONNECT
>>> http_access allow manager localhost
>>> http_access deny manager
>>
>>> http_access allow purge
>>
>> The above line makes the next two useless...
>>
>>> http_access allow purge localhost
>>> http_access deny purge
>>
>>
>>> http_access deny !Safe_ports
>>> http_access deny CONNECT !SSL_ports
>>> http_access allow localnet
>>> http_access allow localhost
>>> http_access deny all
>>> icp_access allow localnet
>>> icp_access deny all
>>
>>> http_port 192.168.2.1:3128
>>
>> You have this http_port 192.168.2.1:3128 attempting to open twice. Once with and once without a NAT lookups required.
>>
>>> hierarchy_stoplist cgi-bin ?
>>> cache_dir diskd /usr/local/squid/var/cache2 15000 16 256
>>
>> Not exactly the fastest disk IO method. On Linux its better to use AUFS.
>>
>>> client_persistent_connections off
>>> server_persistent_connections off
>>
>> Which means squid must open a new TCP link for every single request fetched. This will be slowing things down a fair amount.
>
>>
>>
>> Amos
>> --
>> Please be using
>>  Current Stable Squid 2.7.STABLE7 or 3.0.STABLE20
>>  Current Beta Squid 3.1.0.14
>

Thanks. There was a good bit of copy and paste between my 2.7 config
and my 3.x configs. I guess I just needed another pair of eyes on it!
 Also, thanks for the suggestion as to the cache type. Also, sorry if
replies to this thread are getting messed up. I'm at home--not at
work, so I'm using the gmail web interface instead of thunderbird.
I'm not quite used to it's thread handling. ;)
Received on Sat Nov 07 2009 - 16:11:23 MST

This archive was generated by hypermail 2.2.0 : Sat Nov 07 2009 - 12:00:03 MST