[squid-users] I keep getting connection refused

From: JuupJupp <jchapman03_at_gmail.com>
Date: Thu, 29 Oct 2009 05:38:51 -0700 (PDT)

I have just finished setting up Squid and I am having the hardest time. I
have tried everything. The current problem I am having is that I have to
reload the page 20 times for me to see the page load once. The other 19
loads are a connection refused error.

My squid.conf is as follows:
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd
auth_param basic children 1
auth_param basic concurrency 500
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
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 SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access allow manager localhost
acl ncsaauth proxy_auth REQUIRED
http_access allow ncsaauth
http_access allow localnet
http_access allow localhost
icp_access allow localnet
htcp_access allow localnet
http_port 3128
acl ip1 myip 66.63.191.247
tcp_outgoing_address 66.63.191.247 ip1
acl ip2 myip 66.63.167.178
tcp_outgoing_address 66.63.167.178 ip2
acl ip3 myip 66.63.167.179
tcp_outgoing_address 66.63.167.179 ip3
acl ip4 myip 66.63.167.180
tcp_outgoing_address 66.63.167.180 ip4
acl ip5 myip 66.63.167.181
tcp_outgoing_address 66.63.167.181 ip5

acl cli_10_0_0_10 src 76.94.55.2
http_access allow cli_10_0_0_10

hierarchy_stoplist cgi-bin ?
access_log /var/log/squid/access.log squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern (cgi-bin|\?) 0 0% 0

icp_port 3130
forwarded_for off
coredump_dir /var/spool/squid
request_header_access Allow allow all
request_header_access Authorization allow all
request_header_access WWW-Authenticate allow all
request_header_access Proxy-Authorization allow all
request_header_access Proxy-Authenticate allow all
request_header_access Cache-Control allow all
request_header_access Content-Encoding allow all
request_header_access Content-Length allow all
request_header_access Content-Type allow all
request_header_access Date allow all
request_header_access Expires allow all
request_header_access Host allow all
request_header_access If-Modified-Since allow all
request_header_access Last-Modified allow all
request_header_access Location allow all
request_header_access Pragma allow all
request_header_access Accept allow all
request_header_access Accept-Charset allow all
request_header_access Accept-Encoding allow all
request_header_access Accept-Language allow all
request_header_access Content-Language allow all
request_header_access Mime-Version allow all
request_header_access Retry-After allow all
request_header_access Title allow all
request_header_access Connection allow all
request_header_access Proxy-Connection allow all
request_header_access User-Agent allow all
request_header_access Cookie allow all

And I added the following line to my iptables:
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 3128 -j ACCEPT

Here is the message I always see:
* About to connect() to proxy 66.63.167.181 port 3128 (#0)
* Trying 66.63.167.181... * Connection refused
* couldn't connect to host
* Closing connection #0

Any help would be great!

-- 
View this message in context: http://www.nabble.com/I-keep-getting-connection-refused-tp26112209p26112209.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Thu Oct 29 2009 - 12:38:54 MDT

This archive was generated by hypermail 2.2.0 : Thu Oct 29 2009 - 12:00:04 MDT