🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ch.comp.os.linux
Article #20953

Re: dial on demand

#20953
From: Stefan Haller
Date: Thu, 26 Aug 1999 00:00
28 lines
1502 bytes
Olivier M. wrote:
> 
> I'd like to setup a server that should automaticely dial in
> when needed (squid access or mail sent). What program
> could you suggest to me ? I'm currently using diald (on a suse62),
> but it's quite unstabile.

Here are two simple possibilities that I used.

1.
Newer versions of pppd accept the option demand. pppd can be started
as daemon then and it only dials when a network request to the internet
was made. This only works with kernel 2.2.

2.
As soon as the kernel 2.0 could not find a route, it tries to start
/sbin/request-route. You can create/replace that file with a short
script which starts the ppp login. The script gets the requested
network address as a parameter. I can't remember the other parameters.
This won't work with 2.2 kernels anymore.


To disconnect when the link is idle, use the pppd options
idle (I think in the older version it is called like that,
but I can't remember exactely) or idle-disconnect (newer versions).

Gruss
 Stefan
Technical Details
Message-ID: <37C528F5.A94D6E65@ascom.ch>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <slrn7s62e1.6qf.olm@tardis-a3.ee.ethz.ch>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f4b73,26f05d8018299917
X-Google-Attributes: gidf4b73,public
From: Stefan Haller <stefan.haller@ascom.ch>
Subject: Re: dial on demand
Date: 1999/08/26
Message-ID: <37C528F5.A94D6E65@ascom.ch>
X-Deja-AN: 517414073
Content-Transfer-Encoding: 7bit
References: <slrn7s62e1.6qf.olm@tardis-a3.ee.ethz.ch>
Organization: ASCOM AG
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: ch.comp.os.linux