Score:0

Squid Fowrard Proxy In Docker takes long time to resolve NS addresses

gs flag

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
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.