>Hi,
>I'm using pppd (with the ppp-on script) to connect to the internet -
>everything's great. But now I would like to be able to
>start the script just when I actually NEED the internet!
>I guess I would have to get my gateway (of my tiny linux net) to
>'look' for all IP packages that are not for the local network, start
>the script iff there isn't a connection already and then route the
>IP packages over the line (which it already does if I dial manually).
>Any ideas?
I've accomplished this by using the ip-forwarding, the kerneld facility, modules
2.0 and the 2.0 kernel. Basically when the linux box gets a packet for which it
is not the destination, the forwarding facilites ask the kernel for a route
which causes the dialout via the /sbin/request-route script (see kerneld docs)
which then triggers the dial-out. When pppd gets its connection going,
the whole affair can be tied off by the ip-up script it runs. Its configuration
allows an inactivity timeout which hangs up the line when no longer needed.
I've got this working well now and if you want specifics email me. Otherwise,
start by getting modules to work properly on your system, then get a working
"dip" or "chat" script and ppp configuration. Then, _carefully_ read the
kerneld faq's/howto's on this very subject and you should be OK after
yanking out the requisite amount of hair...
>Henrik.
>--
>___________________________________________________________________________
>http://www.informatik.uni-hamburg.de/Arbeitsbereiche/NATS/staff/heine...
>University of Hamburg
>Computer Science Department Phone: (+49 40) 54592-521
>Natural Language Systems Division
>Vogt-Koelln-Str. 30
>D-22527 Hamburg
>GERMANY
>___________________________________________________________________________
--
Daylyn Meade
SOS-My opinions, as always, are mine and mine alone...