I have the following problem with my squid proxy which acts like a forward proxy to the official company proxy (148.42.10.11) to connect our floor network servers to the outside world.
my squid.conf
looks like this to
acl lan srv 10.132.10.0/24
http_access allow lan
#dns_nameservers 127.0.0.1
dns_nameservers 8.8.8.8
http_port 3128
http_port 8081 intercept
cache_peer 148.42.10.11 parent 8081 3130 no-query default proxy-only no digest
The proxy works but it spends somewhere around 30 seconds before actually returning something. for example a curl command starts to download the file after 34 seconds.
This are the logs when the squid container starts:
Squid | 2022/10/11 10:56:52| commBind: Cannot bind socket FD 22 to [::1]: (99) Cannot assign requested address
Squid | 2022/10/11 10:56:52| ERROR: Failed to create helper child read FD: UDP[::1]
Squid | 2022/10/11 10:56:52| Configuring Parent 148.42.10.11/8081/3130
Squid | 2022/10/11 10:56:52| Squid plugin modules loaded: 0
Squid | 2022/10/11 10:56:52| Adaptation support is off.
Squid | 2022/10/11 10:56:52| Accepting HTTP Socket connections at local=[::]:3128 remote=[::] FD 18 flags=9
Squid | 2022/10/11 10:56:52| Accepting NAT intercepted HTTP Socket connections at local=[::]:8081 remote=[::] FD 19 flags=41
Squid | 2022/10/11 10:56:52| Accepting HTCP messages on [::]:4827
Squid | 2022/10/11 10:56:52| Sending HTCP messages from [::]:4827
Squid | 2022/10/11 10:56:52| Done reading /var/spool/squid swaplog (0 entries)
once the curl request comes in the following is displayed
Squid | 2022/10/11 11:51:57| temporary disabling (Gateway Timeout) digest from 148.42.10.11
This is what is shown in the squid access.log after 30 seconds or so.
1665489137.139 35320 172.17.0.1 TCP_MISS/200 15886 GET http://www.google.com/ - FIRSTUP_PARENT/148.42.10.11 text/html