[squid-users] Squid do not reply

Henning Svane hsv at energy.dk
Mon Oct 4 16:32:55 UTC 2021


Hi
I have tried to install my first Squid proxy as a proxy for installation for ubuntu APT
But the apt-get cannot access cache or get through the proxy.
What have I missed or should have done otherwise ?

Most of the time when I run
sudo apt-get update
or other updates or install commands
I get the reply:
odin at APTProxy:~$ sudo apt-get update
[sudo] password for odin:
0% [Waiting for headers]

And it stay on 0% until it time out and sends this output:
[sudo] password for odin:
Err:1 http://dk.archive.ubuntu.com/ubuntu focal InRelease
  Connection failed [IP: 10.40.63.11 20080]
Hit:2 http://dk.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://dk.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:4 http://dk.archive.ubuntu.com/ubuntu focal-security InRelease
Reading package lists... Done
W: Failed to fetch http://dk.archive.ubuntu.com/ubuntu/dists/focal/InRelease  Connection failed [IP: 10.40.63.11 3128]
W: Some index files failed to download. They have been ignored, or old ones used instead.

Squid.conf :
acl localhost src 127.0.0.1/32 ::1
acl localhost src 10.0.0.0/8
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
#acl localnet src 172.16.0.0/12  # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src FC00:18F:11AB::/48

acl SSL_ports port 443
acl Safe_ports port 80      # http
acl Safe_ports port 443     # https
acl CONNECT method CONNECT
#acl allowed_websites dstdomain "/etc/squid/web_allowed.acl"
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access allow localhost
http_access deny all
http_port 3128
maximum_object_size 4096  MB
refresh_pattern -i (/cgi-bin/|\?) 0 0%  0
refresh_pattern (Release|Packages(.gz)*)$      0       20%     2880
refresh_pattern .       0   20% 4320
refresh_all_ims on
#debug_options ALL,5

"/etc/squid/web_allowed.acl"
.ubuntu.com
.launchpad.net

If I run
squidclient -h 10.40.63.11 -p 3128 -v  mgr:info
The reply are the following:
Request:
GET cache_object://10.40.63.11/info HTTP/1.0
Host: 10.40.63.11
User-Agent: squidclient/4.10
Accept: */*
Connection: close


.
HTTP/1.1 200 OK
Server: squid/4.10
Mime-Version: 1.0
Date: Mon, 04 Oct 2021 15:21:37 GMT
Content-Type: text/plain;charset=utf-8
Expires: Mon, 04 Oct 2021 15:21:37 GMT
Last-Modified: Mon, 04 Oct 2021 15:21:37 GMT
X-Cache: MISS from APTProxy
X-Cache-Lookup: MISS from APTProxy:20080
Via: 1.1 APTProxy (squid/4.10)
Connection: close

Squid Object Cache: Version 4.10
Build Info: Ubuntu linux
Service Name: squid
Start Time:     Mon, 04 Oct 2021 07:33:47 GMT
Current Time:   Mon, 04 Oct 2021 15:21:37 GMT
Connection information for squid:
        Number of clients accessing cache:      2
        Number of HTTP requests received:       20
        Number of ICP messages received:        0
        Number of ICP messages sent:    0
        Number of queued ICP replies:   0
        Number of HTCP messages received:       0
        Number of HTCP messages sent:   0
        Request failure ratio:   0.00
        Average HTTP requests per minute since start:   0.0
        Average ICP messages per minute since start:    0.0
        Select loop called: 65913 times, 425.864 ms avg
Cache information for squid:
        Hits as % of all requests:      5min: 0.0%, 60min: 0.0%
        Hits as % of bytes sent:        5min: -0.0%, 60min: -0.0%
        Memory hits as % of hit requests:       5min: 0.0%, 60min: 0.0%
        Disk hits as % of hit requests: 5min: 0.0%, 60min: 0.0%
        Storage Swap size:      0 KB
        Storage Swap capacity:   0.0% used,  0.0% free
        Storage Mem size:       212 KB
        Storage Mem capacity:    0.1% used, 99.9% free
        Mean Object Size:       0.00 KB
        Requests given to unlinkd:      0
Median Service Times (seconds)  5 min    60 min:
        HTTP Requests (All):   0.00000  0.00000
        Cache Misses:          0.00000  0.00000
        Cache Hits:            0.00000  0.00000
        Near Hits:             0.00000  0.00000
        Not-Modified Replies:  0.00000  0.00000
        DNS Lookups:           0.00000  0.00000
        ICP Queries:           0.00000  0.00000
Resource usage for squid:
        UP Time:        28069.974 seconds
        CPU Time:       2.997 seconds
        CPU Usage:      0.01%
        CPU Usage, 5 minute avg:        0.01%
        CPU Usage, 60 minute avg:       0.01%
        Maximum Resident Size: 94016 KB
        Page faults with physical i/o: 0
Memory accounted for:
        Total accounted:          655 KB
        memPoolAlloc calls:     68992
        memPoolFree calls:      69118
File descriptor usage for squid:
        Maximum number of file descriptors:   1024
        Largest file desc currently in use:     16
        Number of file desc currently in use:    9
        Files queued for open:                   0
        Available number of file descriptors: 1015
        Reserved number of file descriptors:   100
        Store Disk files open:                   0
Internal Data Structures:
            53 StoreEntries
            53 StoreEntries with MemObjects
             0 Hot Object Cache Items
             0 on-disk objects

Regards
Henning

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20211004/14657f6c/attachment.htm>


More information about the squid-users mailing list