This is exactly what I do at home; I have a 16MB 486/SX-33 dedicated to firewalling and dialing my ISDN line. (It has a LavaPort to support 230400 baud).
In order to assure that pppd will continue to operate after failure,
I've added a line to /etc/inittab
s2:4:respawn:/usr/sbin/pppd nodetach call ISDN
(I use runlevel 4, yours would be set accordingly)
/etc/ppp/peers/ISDN contains
ttyS2 230400 crtscts
connect /etc/ppp/scripts/ISDN.sh
noauth
persist
idle 600
defaultroute
demand
2xx.xx.xx.xx:2xx.xx.xx.xx
ipcp-accept-remote
name username
(I have a fixed IP, you may need to add "ipcp-accept-local")
/etc/ppp/scripts/ISDN.sh contains
#!/bin/bash
dial() {
/usr/sbin/chat -t 15 -v \
ABORT "NO CARRIER" \
ABORT "BUSY" \
"" ATH0 \
OK-+++-OK ATDT$1 \
CONNECT
}
dial 8xx-xxxx || dial 8xx-xxxx
/etc/ppp/chap-secrets contains
* username password
At 03:32 AM 4/18/2000 , Brian K. Murphy wondered...
>I have set up a client so that his computers can access the internet through a linux box doing ip masquerading/firewall duty. Everything works smoothly except that you have to manually dial the linux box to get connected. I know pppd has a option ("demand") that should dial the internet when you aren't online and a TCP request is received. I just can't find any good examples of how to implement pppd. Maybe this is a dumb question..and yes...I have read the manuals so don't ask. ... but can someone please explain what I should do to implement pppd with the demand dial.....Thanks in advance.
>
>I am running RH 6.1 by the way...
--
To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.