Diald with Debian GNU/Linux

Diald creates a SLIP interface, makes it the defaultroute, and connects it to a FIFO. Diald then listens to the other end of the FIFO. When you send a packet to a host to which you are not directly connected the kernel looks at the address, says "I don't know this guy. Let the gateway deal with this" and sends the packet down the defaultroute. Diald receives the packet and examines it. If it is of a type that is supposed to bring up the link, it starts pppd. When the PPP link is up it does some black magic with the routing table to substitute the PPP link for the SLIP one as defaultroute, and you're off. (John Hasler)

Requirements: diald, ppp, pppconfig, slip driver within the kernel

Run pppconfig to set up your ppp configuration for use with pon/poff. If that runs, go ahead and take a look at diald.

For some reason there is one file missing in /etc/diald which is diald.options. But: There is a proper example in /usr/doc/diald/examples. Just uncompiress it:

   zcat /usr/doc/diald/examples/diald.options.gz > /etc/diald/diald.options
and edit it. For DynIP with PPP change the local and remote addresses to something else, e.g. like:
   local 192.168.0.1
   remote 192.168.0.2
You'll have to add the username for ppp as extracted from /etc/ppp/peers/provider
   pppd-options noauth user 
And you'll have to exchange the connect/disconnect command like:
   connect "/usr/sbin/chat -v -f /etc/chatscripts/provider"
   disconnect "/usr/bin/poff provider"
Now restart diald with
   sh /etc/init.d/diald restart
I hope it works. :)
© Joey, 24 Apr '99