LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-23-2010, 06:39 AM   #1
jarvis823
LQ Newbie
 
Registered: Mar 2010
Distribution: Centos, Ubuntu, Debian
Posts: 5

Rep: Reputation: 0
Squid proxy server (parent peer issue)


Hi All,

Are there any method to prevent the parent peer is unreachable?
I have use offline_mode on, but the squid will have 404 error after I added a blackhole default route in the squid server.

Thanks,
Frankie
 
Old 06-29-2010, 08:13 PM   #2
zornslemma
LQ Newbie
 
Registered: Jun 2010
Distribution: Ubuntu
Posts: 3

Rep: Reputation: 0
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configure squid proxy with cc proxy as a parent proxy faisi Linux - Networking 1 08-10-2010 01:16 PM
Using ISA Server as Parent Proxy and want to setup Squid as dwonstream proxy tauseef1 Red Hat 1 04-09-2008 01:03 AM
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 01:38 AM
squid proxy restriction on peer-to-peer? (limewire) Teomari Slackware 3 03-29-2007 08:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration