[squid-users] Going Direct when parent cache not available.

From: Krist van Besien <krist@dont-contact.us>
Date: Thu, 4 Apr 2002 23:40:20 +0200

Hi all,

My situation is the following:
At home I dial in to my ISP.
At work I go on the network (with the same laptop) and need to access
webpages through a proxy.

I want to get rid of configuring/unconfiguring proxies in each of my web
browsers twice a day, an so installed squid on my laptop. The idea is that
all my borwsers (and urpmi etc...) are configured to use the proxy on
localhost, and this on in turn has as "parent" cache configured the proxy at
the companies network.

Now I want squid to go "direct", when the cache is not available (ie , at
home). I thought this would work, but when at home all I see (in the
cache.log) is squid trying to connect to the (unavailable) parent cache.

How do I solve this? I wnat squid to use the parent cache when at work, an go
direct when it detects that the parent cache is unavailable.

my squid.conf currently looks like this:

cache_peer 10.105.20.201 parent 3128 3130 login=xxxxx:xxxxx proxy-only
hierarchy_stoplist cgi-bin
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
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 SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
icp_access allow all
visible_hostname planck.vanbesien.net
acl local-servers dstdomain .nuon.local
never_direct allow all
always_direct allow local-servers

Krist
Received on Thu Apr 04 2002 - 14:40:25 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:07:22 MST