[squid-users] Squid do not reply

Henning Svane hsv at energy.dk
Mon Oct 4 17:18:41 UTC 2021


Hi Alex

This from the end of the access.log
I can see some request to IPv6, but I do not have IPv6 as my ISP do not offer it yet.
As you can see I only request from IPv4, but I use dual stack to be future ready, as I hope my ISP sone will enter the modern age.

1633311799.437     57 10.40.63.11 TCP_REFRESH_MODIFIED/200 114201 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease - HIER_DIRECT/130.225.254.116 text/plain
1633311799.470     31 10.40.63.11 TCP_REFRESH_MODIFIED/200 100971 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease - HIER_DIRECT/130.225.254.116 text/plain
1633311799.503     31 10.40.63.11 TCP_REFRESH_MODIFIED/200 114203 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-security/InRelease - HIER_DIRECT/130.225.254.116 text/plain
1633311799.768    224 10.40.63.11 TCP_MISS/200 1256699 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-updates/main/binary-amd64/by-hash/SHA256/7cc00b82849880eab961e81146ad6e23770386b5>
1633311799.914    137 10.40.63.11 TCP_MISS/200 863985 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-updates/universe/binary-amd64/by-hash/SHA256/1711a00ad226337b7ee774ec39dc4abd7841d>
1633319549.416  30020 10.40.61.11 TCP_MISS_ABORTED/000 0 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal/InRelease - HIER_DIRECT/2001:878:346::116 -
1633319549.425  30027 10.40.61.11 TCP_MISS_ABORTED/000 0 GET http://ppa.launchpad.net/vbernat/haproxy-2.4/ubuntu/dists/focal/InRelease - HIER_DIRECT/2001:67c:1560:8008::19 -
1633319579.447  30029 10.40.61.11 TCP_MISS_ABORTED/000 0 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal/InRelease - HIER_DIRECT/2001:878:346::116 -
1633319579.455  30028 10.40.61.11 TCP_MISS_ABORTED/000 0 GET http://ppa.launchpad.net/vbernat/haproxy-2.4/ubuntu/dists/focal/InRelease - HIER_DIRECT/2001:67c:1560:8008::19 -
1633319579.487     37 10.40.61.11 TCP_REFRESH_UNMODIFIED/200 114208 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease - HIER_DIRECT/130.225.254.116 text/plain
1633319579.528     37 10.40.61.11 TCP_REFRESH_UNMODIFIED/200 100978 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease - HIER_DIRECT/130.225.254.116 text/plain
1633319579.566     37 10.40.61.11 TCP_REFRESH_UNMODIFIED/200 114210 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-security/InRelease - HIER_DIRECT/130.225.254.116 text/plain
1633319579.875    230 10.40.61.11 TCP_MISS/200 1256699 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-updates/main/binary-amd64/by-hash/SHA256/7cc00b82849880eab961e81146ad6e23770386b5>
1633319580.046    156 10.40.61.11 TCP_MISS/200 863985 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-updates/universe/binary-amd64/by-hash/SHA256/1711a00ad226337b7ee774ec39dc4abd7841d>
1633339143.582  30030 10.40.61.11 TCP_MISS_ABORTED/000 0 GET http://ppa.launchpad.net/vbernat/haproxy-2.4/ubuntu/dists/focal/InRelease - HIER_DIRECT/2001:67c:1560:8008::19 -
1633339143.582  30030 10.40.61.11 TCP_MISS_ABORTED/000 0 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal/InRelease - HIER_DIRECT/2001:878:346::116 -
1633339173.613  30029 10.40.61.11 TCP_MISS_ABORTED/000 0 GET http://ppa.launchpad.net/vbernat/haproxy-2.4/ubuntu/dists/focal/InRelease - HIER_DIRECT/2001:67c:1560:8008::19 -
1633339173.613  30029 10.40.61.11 TCP_MISS_ABORTED/000 0 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal/InRelease - HIER_DIRECT/2001:878:346::116 -
1633339173.636     21 10.40.61.11 TCP_MISS/304 355 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease - HIER_DIRECT/130.225.254.116 -
1633339173.646     10 10.40.61.11 TCP_MISS/304 355 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease - HIER_DIRECT/130.225.254.116 -
1633339173.657     10 10.40.61.11 TCP_MISS/304 355 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-security/InRelease - HIER_DIRECT/130.225.254.116 -
1633339214.784     11 10.40.61.11 TCP_MISS/304 355 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal/InRelease - HIER_DIRECT/130.225.254.116 -
1633339214.795     10 10.40.61.11 TCP_MISS/304 355 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease - HIER_DIRECT/130.225.254.116 -
1633339214.806     10 10.40.61.11 TCP_MISS/304 355 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease - HIER_DIRECT/130.225.254.116 -
1633339214.814     41 10.40.61.11 TCP_MISS/304 351 GET http://ppa.launchpad.net/vbernat/haproxy-2.4/ubuntu/dists/focal/InRelease - HIER_DIRECT/91.189.95.85 -
1633339214.816      9 10.40.61.11 TCP_MISS/304 355 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-security/InRelease - HIER_DIRECT/130.225.254.116 -
1633339314.276 239404 10.40.61.11 NONE/503 0 CONNECT changelogs.ubuntu.com:443 - HIER_NONE/- -
1633351198.272 240065 10.40.63.11 NONE/503 0 CONNECT changelogs.ubuntu.com:443 - HIER_NONE/- -
1633353563.799  30030 10.40.63.11 TCP_MISS_ABORTED/000 0 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal/InRelease - HIER_DIRECT/2001:878:346::116 -
1633353593.823  30023 10.40.63.11 TCP_MISS_ABORTED/000 0 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal/InRelease - HIER_DIRECT/2001:878:346::116 -
1633353593.845     22 10.40.63.11 TCP_MISS/304 355 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease - HIER_DIRECT/130.225.254.116 -
1633353593.858     13 10.40.63.11 TCP_MISS/304 355 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease - HIER_DIRECT/130.225.254.116 -
1633353593.869     10 10.40.63.11 TCP_MISS/304 355 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-security/InRelease - HIER_DIRECT/130.225.254.116 -
1633360882.874  30025 10.40.63.11 TCP_MISS_ABORTED/000 0 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal/InRelease - HIER_DIRECT/2001:878:346::116 -
1633360897.217      0 10.40.63.11 TCP_MISS/200 2581 GET cache_object://10.40.63.11/info - HIER_NONE/- text/plain
1633360912.905  30030 10.40.63.11 TCP_MISS_ABORTED/000 0 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal/InRelease - HIER_DIRECT/2001:878:346::116 -
1633360942.936  30030 10.40.63.11 TCP_MISS_ABORTED/000 0 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease - HIER_DIRECT/2001:878:346::116 -
1633360942.959     22 10.40.63.11 TCP_MISS/304 355 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease - HIER_DIRECT/130.225.254.116 -
1633360942.970     10 10.40.63.11 TCP_MISS/304 355 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease - HIER_DIRECT/130.225.254.116 -
1633360942.981     10 10.40.63.11 TCP_MISS/304 355 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-security/InRelease - HIER_DIRECT/130.225.254.116 -
1633363175.859  30030 10.40.63.11 TCP_MISS_ABORTED/000 0 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal/InRelease - HIER_DIRECT/2001:878:346::116 -
1633363205.889  30029 10.40.63.11 TCP_MISS_ABORTED/000 0 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal/InRelease - HIER_DIRECT/2001:878:346::116 -
1633363205.913     23 10.40.63.11 TCP_MISS/304 355 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease - HIER_DIRECT/130.225.254.116 -
1633363205.926     12 10.40.63.11 TCP_MISS/304 355 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease - HIER_DIRECT/130.225.254.116 -
1633363205.937     10 10.40.63.11 TCP_MISS/304 355 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-security/InRelease - HIER_DIRECT/130.225.254.116 -
1633364224.510  30029 10.40.63.11 TCP_MISS_ABORTED/000 0 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal/InRelease - HIER_DIRECT/2001:878:346::116 -
1633364254.540  30030 10.40.63.11 TCP_MISS_ABORTED/000 0 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal/InRelease - HIER_DIRECT/2001:878:346::116 -
1633364254.563     22 10.40.63.11 TCP_MISS/304 355 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease - HIER_DIRECT/130.225.254.116 -
1633364254.574     10 10.40.63.11 TCP_MISS/304 355 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease - HIER_DIRECT/130.225.254.116 -
1633364254.585     10 10.40.63.11 TCP_MISS/304 355 GET http://dk.archive.ubuntu.com/ubuntu/dists/focal-security/InRelease - HIER_DIRECT/130.225.254.116 -

Regards
Henning
-----Oprindelig meddelelse-----
Fra: Alex Rousskov <rousskov at measurement-factory.com> 
Sendt: 4. oktober 2021 18:57
Til: Henning Svane <hsv at energy.dk>; squid-users at lists.squid-cache.org
Emne: Re: [squid-users] Squid do not reply

On 10/4/21 12:32 PM, Henning Svane wrote:

> 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 ?

What apt-related lines do you see in Squid's access.log?

Alex.



> 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
> <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
> 
>  
> 
> 
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
> 



More information about the squid-users mailing list