Squid proxy server (parent peer issue)
Hi,
I am no expert, but I had the opposite problem (on Ubuntu 10.04):
- my squid cache used privoxy as a parent
- privoxy often wedged on startup and wouldn't answer requests
- squid noticed privoxy was unresponsive and decided to automatically bypass it, when I wanted an error so I could notice the problem
It sounds like you would like squid to behave like this - am I right?
To disable the above behaviour, I had to add a line:
cache_peer 127.0.0.1 parent 8118 7 no-query
never_direct allow all # this turned off the behaviour noted above
So maybe you have a never_direct line and you need to remove it?
The above advice has no basis more reliable than my own meandering experience. :-) What follows doesn't even have that basis, but it's what I'd try next if I was in your position, so for what it's worth...
If the parent is unreachable because you are not connected to the net, squid may get upset if it can't even resolve the hostname. So maybe you could also try specifying the parent proxy by IP address instead of hostname, or install a caching DNS server so the lookup will succeed even if you are offline.
Steve
|