Thank you, thank you, thank you!!! I'm definitely in your debt. Want anything from VietNam? Cashews, coffee, delivered but unopened ordinance, cost-effective coders...? ;)
This will keep me busy for a while, but i'll let you know how it goes. At 08:46 2001.11.16 -0500, Glenn Henshaw wrote: >At 1:49 AM +0700 11/16/01, AD Marshall wrote: >>I've been reading your exchange, Ben & Glenn, with great interest >>and trying some of what you've suggested in this and earlier mails. >> >>I'm still a newb', trying to do the same thing, dial-on-demand >>(with kill-on-idle) to share my ISP link to my RH7.1 box with one >>Win2K and one Win9x workstation. >> >>I was just wondering if either (or both ;) of you could share some >>of your ppp config' files or scripts with me. Backchannel is fine. > > My firewall script does most of the work. I am using Shorewall ><http://www.shorewall.net/>. > >> >>I've no problems with the MTUs matching, at 1500, between ppp0 and >>eth0, so far -- though i'm not really clear on how this causes IP >>fragmentation... a digression for me. >> >>I've already got IP-Masquerading set up to share my modem-link with >>my workstations via my RH7.1 box (with the iptables commands now >>in /etc/rc.d/rc.local and starting on bootup, thanks to Ben). >> >>And i've tried Glenn's earlier advice to someone else, re. dial-on- >>demand (DOD), ie, adding to /etc/sysconfig/network-scripts/ifcfg-ppp0: >> demand=yes >> idle=600 >>though left unchanged the idle line to "IDLETIMEOUT=600", assuming >>it a new version since RH7.1 set that as default. >> >>But i still have not been able to get D0D to execute. I still have >>to use wvdial or kppp instead. > > You probably need to enable forwarding ("echo 1 > /proc/sys/net/ipv4/ip_forward"), >to allow the outbound packets to trigger the dialer. (Shorewall does this on >activation). > >> >>I tried adding onboot=yes to ifcfg-ppp0, but pppd hung on both >>"/sbin/service network restart" and later on reboot (after killing >>pppd). > > > My pppd is launched by running a small script as part of the SysV initialization. >The script below is installed using chkconfig. This starts and stops it automatically >as the machine comes up. > >># more /etc/rc.d/init.d/ppp >#!/bin/sh ># ># /etc/rc.d/ppp -- control ppp daemon ># chkconfig: 345 21 96 ># description: starts and stops the pppd daemon ># >PATH=/sbin:/bin:/usr/sbin:/usr/bin ># >DEBUG="debug" > >case "$1" in > start) > echo -n "start ppp daemon: " > if [ "$2" = "" ]; then > DEVICE=ppp0 > else > DEVICE=$2 > fi > if [ "$3" = "" ]; then > DEBUG="" > else > DEBUG="debug" > fi ># ># If the ppp0 pid file is present then the program is running. Stop it. > if [ -r /var/run/$DEVICE.pid ]; then > echo "already running, stop first" > exit 1 > fi > echo -n "DEBUG=" $DEBUG > pppd $DEBUG & ># > echo "done." > ;; > stop) > echo -n "stop ppp daemon: " > if [ "$2" = "" ]; then > DEVICE=ppp0 > else > DEVICE=$2 > fi ># ># If the ppp0 pid file is present then the program is running. Stop it. > if [ -r /var/run/$DEVICE.pid ]; then > kill -INT `cat /var/run/$DEVICE.pid` ># ># If the kill did not work then there is no process running for this ># pid. It may also mean that the lock file will be left. You may wish ># to delete the lock file at the same time. > if [ ! "$?" = "0" ]; then > rm -f /var/run/$DEVICE.pid > echo "ERROR: Removed stale pid file" > exit 1 > fi ># ># Success. Let pppd clean up its own junk. > echo "PPP link to $DEVICE terminated." > sleep 10 > exit 0 > fi ># ># The ppp process is not running for ppp0 > echo "ERROR: PPP link is not active on $DEVICE" > exit 1 > ;; > status) > ps -ef | grep pppd | grep -v grep > ;; > restart) > $0 stop > $0 start > ;; > *) > echo "Usage: /etc/rc.d/init.d/ppp {start|stop}." > exit 1 > ;; >esac >exit 0 > >#End of file. > >-- >-- > >Glenn Henshaw | Ottawa, Canada >Play: [EMAIL PROTECTED] | Work: [EMAIL PROTECTED] > > > >_______________________________________________ >Seawolf-list mailing list >[EMAIL PROTECTED] >https://listman.redhat.com/mailman/listinfo/seawolf-list *--------------------------------------------------* AD Marshall, VietInfoComm&Edu [VICE]-8 Consulting Vietnam Information Communications & Education mailto:[EMAIL PROTECTED] Web: HTTP://ParadoxCafe.Net Cellular: +84 (0)903871313 _______________________________________________ Seawolf-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/seawolf-list