routed

Michael Peddemors (tyax@xl.ca)
Thu, 06 Mar 1997 20:57:05 -0800


I am trying to set up a Linux 2.0.0 box as a gateway from my Class 'C'
network, to the Internet via a PPP link.. I am pretty sure I have all
the PPP details down pat, and intend to use ip-up/ip-down to change the
default gateway for this machine from itself to my ISP server..
Only problem is having a problem with some of the basics

when i start rc.inet1 it of course starts the regular stuff, and I have
it setting up itself as the gateway on boot up.. via

route add default gw 200.200.200.1 #which is my IP as set by ifconfig

when I use the route -n command although I have default listed, it
doesn't have the gateway flag set... tried to set the gw as 'lo' and as
localhost and as 127.0.0.1 as well as my hostname and still no Gateways
indicated in the table. Am I missing something here? Do I not
understand some basic?

While I am at asking for help, might as well ask one more question <eep>

I have read every doc from here to forever, and I see so many options I
am reeling.... What is the BEST way to setup a small ISP gateway... The
gateway will act as ns, mx, gw, and the PPP connection to the Internet,
while attached to the rest of the network via eth (which includes 4
machines each acting as dialup boxes with 3 modems each, all using this
machine to access Internet)

My plan was to ARP all modem lines with an IP on my class 'c', and each
dialup would point to the PPP provider as gw and nameserver. Planned on
firewalls, and each dialup line will get permanent access to internet.
Do I need Gated? Do I use masquerading? (hopefully not) Is routed
enough? Can you tell I am getting boggled after putting in 20 hours a
day for last 3 months at this? Nowhere can I see a reccomended set up
for this configuration, so combining the howto-s on DNS, PPP and net-2
as well as NAG.. and trying to patch it all together..

My many thanks..