[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
question about demand dialing with diald
I have configured demand dialing running diald, and it works, sort of, but I
am having a problem. The script /etc/rc.d/init.d/diald runs when I boot, and
demand dialing works until idle timeout, when it disconnects as expected.
However, the next time I start a tcp communication, there is no response. If
I run "/etc/rc.d/init.d/diald start" it works fine again, until it times out,
and then the same problem again. Here is my script:
#!/bin/sh
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
[ -f /usr/sbin/diald ] || exit 0
[ -f /etc/diald.conf ] || exit 0
# See how we were called.
case "$1" in
start)
# Start daemons.
echo -n "Starting demand dialing: "
echo 1 > /proc/sys/net/ipv4/ip_dynaddr
daemon /usr/sbin/pppd call ameritech
sleep 3
/sbin/route del default
/sbin/route add default ppp0
;;
stop)
# Stop daemons.
echo -n "Shutting down demand dialing: "
/etc/ppp/ppp-off
;;
restart)
$0 stop
$0 start
;;
status)
status diald
;;
*)
echo "Usage: diald {start|stop|restart|status}"
exit 1 esac
exit 0
Any suggestions?
Mike