[Gllug] pppd demand dial help

David Pashley david at parguild.co.uk
Tue Apr 1 09:26:00 UTC 2003


Brent Geach said, and I quote:
> There is only 1 config that I need that connects to a central point from which
> vaious vpn's link me to the various geographical sites.
> So I'll just have to put in various routes to the effect of if it needs to see
> 1 of several ip ranges then dont go via default gw but via the pppd connection
> 
> What I have at the moment I have this
> 
> noauth
> connect "/usr/sbin/chat -v -f /etc/ppp/chatscripts/routetocrappyanalogue"
> debug
> /dev/modem
> 115200
> defaultroute

This could be the cause of your trouble. Try replacing it with
nodefaultroute.

> noipdefault
> user xxxxxxxx
> 
> chatscript
> 
> ABORT BUSY
> ABORT "NO CARRIER"
> ABORT VOICE
> ABORT "NO DIALTONE"
> ABORT "NO ANSWER"
> "" ATZX3
> OK ATDT0000000000000
> CONNECT \d\c
> 
> 
> and in options
> 
> demand
> idle 600
> ipcp-accept-remote
> ipcp-accept-local
> :172.19.1.1
> lock
> 
> Where 172.19.1.1 is the remote ip that the pppd server assigns me
> So to get it working now I added a route for a particular ip via the pppd then tried to ping
> it, which caused it to try dial up failed once for unknown reason and on retry
> got through and then deleted my original route which I added again and pinged
> fine then. So that means that pppd is changing my routing table when it
> connects and I cant find where that script is at the moment.
> 
> What package does pon come from?
> 
It should be in pppd package. It is basically 

#!/bin/sh
pppd call $1

> 
> 
> On Mon, 31 Mar 2003, Chris Bell wrote:
> 
> > On Mon 31 Mar, Brent Geach wrote:
> > > 
> > > Hi all,
> > > Someone Im hoping should have experience with this
> > > 
> > > Im trying to get pppd to demand dial when trying to access a number of
> > > geographically different ip's (ie a number of different ranges)
> > > 
> > > I can get pppd up and working and manually add all the routes but am wanting
> > > to automate it all with the demand option in pppd but can seem to figure out
> > > how to implement it!
> > > 
> >    The pppd can be configured for more than one destination and setup, and
> > each configuration can be given a simple short name, and called using
> >    pon <name>
> > Are you trying to get the system to select, run, and close particular
> > configurations according to need?
> > 
> > 
> > 
> > -- 
> > Gllug mailing list  -  Gllug at linux.co.uk
> > http://list.ftech.net/mailman/listinfo/gllug
> 

-- 
David Pashley
david at davidpashley.com
Nihil curo de ista tua stulta superstitione.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20030401/fd293794/attachment.pgp>


More information about the GLLUG mailing list