[497] in linux-net channel archive
Re: Thanks! IP forwarding between PPP links... Works now.
daemon@ATHENA.MIT.EDU (Kayvan Sylvan)
Wed Jun 14 17:10:05 1995
Date: Wed, 14 Jun 95 12:31 PDT
To: Nick Holloway <alfie@alfie.demon.co.uk>
Cc: linux-ppp@vger.rutgers.edu, linux-net@vger.rutgers.edu
In-Reply-To: <199506132213.XAA00469@alfie.demon.co.uk>
From: Kayvan Sylvan <kayvan@Sylvan.COM>
>>>>> "Nick" == Nick Holloway <alfie@alfie.demon.co.uk> writes:
Nick> Rather than adding a host route for each machine, could you not do the
Nick> following?
Nick> At boot time, set up a network route to the dummy interface.
Nick> This would be used to discard the packets to prevent the routing
Nick> loop. When the other machines log in, they would have a host
Nick> route, and (I think, and this is the crucial bit) the host route
Nick> would take preference over the network route.
Yow! My hat's off to you. I just simplified my setup ten-fold.
Thank you!
Now, all I do is this:
In /etc/rc.d/rc.inet1, I do:
# Attach the sometimes connected hosts a non-functioning dummy device.
# This way, the routes are "nailed down" instead of spinning here
# or out to the net.
#
/sbin/modprobe dummy > /dev/null 2>&1 # load the dummy device driver
/sbin/ifconfig dummy0 127.0.0.1 # Bring dummy interface up.
route add -net 204.153.195.0 netmask 255.255.255.248 dev dummy0
That's all there is to it.
No cleanup scripts to re-add dummy routes.
For the occasionally connected machines, their shell is set up as a
small setuid binary to authenticate the user and then do the
execl("/usr/etc/pppd", "/usr/etc/pppd", "passive", 0).
---Kayvan
"The trust and respect of a child is an honor to be earned, not demanded."
Kayvan Sylvan | Sylvan Associates | Proud Dad of:
kayvan@Sylvan.COM | http://www.isp.net/~kayvan | Katherine Yelena (8/8/89)
(408) 978-1407 PGP OK | Ask me about Avatar. | Robin Gregory (2/28/92)