[squid-users] localhost

From: CD Tech <cdtech20059@dont-contact.us>
Date: Fri, 15 Feb 2008 19:07:07 -0500

Hello all,

Squid Cache: Version 2.6.STABLE17
Fedora 8

I have setup squid 2 days ago and have learned a ton already. I have
everything pretty much prefect except one lingering issue. Myself and
clients can not connect to our localhost. For example I can not
connect to my local server using http://localhost or 127.0.0.1 or
google desktop using http://127.0.0.1:4664 and for the life of me can
not figure it out. When I type in locahost or 127.0.01 it brings me
to the apache page on the squid server.

Since I am using a .pac file I can not bypass localhost or 127.0.0.1
in firefox or IE (although that does fix the issue). Any work around
to this? Below is my pac file and

pac

function FindProxyForURL(url, host)
{

      if (isInNet(myIpAddress(), "192.168.65.0", "255.255.255.0"))
return "PROXY 192.168.65.13:3128; DIRECT";
else
return "DIRECT";
}

squid.conf[root@NC-Squid squid]# grep -v "^#" /etc/squid/squid.conf |
sed -e '/^$/d'
visible_hostname NC-Squid.foo.local
http_port 3128
dns_defnames on
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
cache_dir ufs /var/spool/squid 1000 16 256
access_log /var/log/squid/access.log squid
cache_access_log /var/log/squid/access.log
cache_mgr sysadmin@foo.com
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl our_networks src 207.201.31.0/26 192.168.65.0/24 192.168.70.0/24
acl blockedsites url_regex "/etc/squid/squid-block.acl"
acl nocache url_regex "/etc/squid/squid-nocache.acl"
no_cache deny nocache
acl SSL_ports port 443 2083
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 81 # MRTG
acl Safe_ports port 210 # wais
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 Safe_Ports port 2082 # control panel
acl Safe_Ports port 2083 # control panel
acl Safe_Ports port 2525 # CRM
acl Safe_ports port 2095 # Webmail
acl Safe_ports port 4664 # google desktop
acl Safe_ports port 8080 # helpdesk
acl Safe_ports port 8443 # UNC
acl Safe_ports port 10000 #mgr
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny CONNECT !SSL_ports
http_access deny !Safe_ports
http_access deny blockedsites
http_access allow our_networks
icp_access allow all
http_access deny all
http_reply_access allow all
coredump_dir /var/spool/squid
[root@NC-Squid squid]#

Any help I would appreciate. thanks.
Received on Fri Feb 15 2008 - 17:07:11 MST

This archive was generated by hypermail pre-2.1.9 : Sat Mar 01 2008 - 12:00:05 MST