Squid : connection refused to port 3128
Issue
-
Client systems using squid proxy server are not able to get package updates using yum utility.
# curl -v -x X.X.X.X:3128 https://repo-server-ip/rhel/rhel-7-server-rpms/repodata/repomd.xml * About to connect() to proxy X.X.X.X port 3128 (#0) * Trying X.X.X.X... * Connection refused * Failed connect to X.X.X.X:3128; Connection refused * Closing connection 0 curl: (7) Failed connect to X.X.X.X:3128; Connection refused -
When checked using nc command it also reports connection refused.
# nc -v X.X.X.X 3128 Ncat: Version 7.50 ( https://nmap.org/ncat ) Ncat: Connection refused. -
How to install and run squid service on RHEL ?
Environment
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.