Dan,

My Linux system is RedHat 2.2.12-20.  Below is the kernel routing table that
has been working well for two months on my system.  192.168.1.x is my
internal net, of course, and 66... the dsl, with 66.92.86.1 the gateway for
the local dsl subnet.  The last line in the table was the key one to getting
things to work for me, if I recall correctly, especially with the UG flag
and the 0.0.0.0 destination.  The basic idea was to tell the protocol stack
that any packet that you don't have a route for send to the 66... gateway
and let him handle it.  I seem to recall something about this table being
loaded at boot time by the kernel, as well, so a reboot might have been
required to put it into effect, instead of just restarting inetd.  With this
system eth0 will only communicate on my local net, I believe, and eth1
handles everything else.

I worked with a lot of config files as well at the time, too,  but only
remember this as being the step that finally did the trick.  Your situation
will be tougher if you're trying to route to the outside world thru two
gateways.  I think you really want a routing software package for that.  I
remember now wanting to get to that point, too, at the time, but finally
compromising on this setup in order to get something going.

I use IPchains firewalling and external primary and secondary
nameservers--no local nameserver at all!   Not an optimal configuration I
suppose, but I'm waiting for another one of those round tuits before I work
on it again.

Hope this helps, although now that I've dug out those old memories I can see
that you're trying to do something that I gave up on.   Best of luck.

Regards,
Jim

Kernel IP routing table
Destination     Gateway         Genmask               Flags      Metric
Ref    Use Iface
66.92.86.253    0.0.0.0         255.255.255.255   UH           0          0
0     eth1
192.168.1.10    0.0.0.0         255.255.255.255   UH           0          0
0     eth0
66.92.86.0      0.0.0.0         255.255.255.0           U            0
0        0     eth1
192.168.1.0     0.0.0.0         255.255.255.0         U             0
0        0     eth0
127.0.0.0       0.0.0.0         255.0.0.0                   U             0
0        0     lo
0.0.0.0         66.92.86.1      0.0.0.0                     UG           0
0        0     eth1





Reply via email to