LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-05-2003, 08:38 PM   #1
meldroc
Member
 
Registered: Aug 2003
Posts: 102

Rep: Reputation: 15
How do you make squid coexist with a dialup connection?


Right now, I have a hackjob solution, but I'm wondering if there's a canonical way to make squid coexist peacefully with a dial-up PPP connection? If I try to start squid while ppp is down, it screams and dies, leaving

Quote:
FATAL: Could not find any nameservers.
Please check your /etc/resolv.conf file
or use the 'dns_nameservers' option in squid.conf.
Squid Cache (Version 2.5.STABLE3): Terminated abnormally.
in /var/log/squid/cache.log

I have to start squid while my ppp connection is up in order to make it work. Right now, I have sudo /etc/init.d/squid start set to automagically run when KPPP starts the ppp connection, and sudo /etc/init.d/squid stop when KPPP brings it down. This works (most of the time,) but is IMHO ugly. I'd prefer to have squid running all the time, configured to automagically Do The Right Thing when the ppp connection goes up & down.

How do I configure squid to cope with a dialup connection?
 
Old 08-06-2003, 12:44 AM   #2
Corin
Member
 
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446

Rep: Reputation: 30
Re: How do you make squid coexist with a dialup connection?

Quote:
Originally posted by meldroc

use the 'dns_nameservers' option in squid.conf.
So do what it tells you to do and then it will not scream and die.

From the squid changelog in /usr/share/doc/squid-2.5.STABLE1

- Fixed internal DNS initialization so that it uses
'dns_nameservers' settings in squid.conf if set.
 
Old 08-06-2003, 01:39 AM   #3
anjan_bhushan
LQ Newbie
 
Registered: Jul 2003
Distribution: Suse, Mandrake, Redhat, Knoppix ,Solaris, Debian,Vector
Posts: 16

Rep: Reputation: 0
I am not sure if

- Fixed internal DNS initialization so that it uses
'dns_nameservers' settings in squid.conf if set.

is a fix for it. However thesolution posted by poster is not bad.
dns_nameservers bug is to make sure that even if resolv.conf is not configured and user wanted DNS resolution they may specify it in squid.conf.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Squid proxy(2)-How to limit connection make by Flashget, DAP, IDM,..--please help me b:z Linux - Networking 4 04-05-2005 09:34 PM
how to configure my lan to dialup on demand with squid?? TAAN Linux - Networking 0 12-10-2003 04:21 AM
Dialup connection speed alwayslearning Linux - General 4 03-03-2003 11:03 AM
dialup connection shakira Linux - General 2 10-13-2002 02:57 PM
Dialup Connection BittaBrotha Linux - Networking 5 03-26-2002 06:18 AM


All times are GMT -5. The time now is 08:50 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration