Im very new  to linux (1 1/2 weeks), and have been reading alot of info on
this subject.  Ive read how most re-compiled their kernel, and 1-2
references of some that didnt have to, running redhat.  I think I have it
working (my brothers comp is passing through it), with the info provided by
John Henderson (see main page, theres a link that gives redhat 5 info)

BUT, Im so new to this and have re-done my system 2 times, becuase Ive
royally screwed it up fiddling with settings from this page of that :)  So,
I'd like to give my info to you knowledgeable readers (Im buttering the
bread here) so I can get a yay or nay to if Ive got it correct, or if I'm
doing somthing I just  shouldn't be doing.

First, of all, Im on a cable modem.  It has a static ip 124.236.3.2 (defualt
gateway)

eth0 is 124.236.3.3 (netmask 255.255.255.0)
eth1 is 192.168.0.1 (netmask 255.255.255.0)

I got both cards working, and am able to ping the outside world and
internally.

1) I installed ipfwadm-2.3.0-5.i386.rpm off my redhat 5.2 cdrom.

2) I added these lines to /etc/rc.d/rc.local:    (thanks a million John
Henderson!)

echo "ip_masq 192.168.0.1"
echo "1" > /proc/sys/net/ipv4/ip_forward
/sbin/depmod -a
/sbin/modprobe ip_masq_ftp.o
/sbin/modprobe ip_irc.o
/sbin/modprobe ip_masq_raudio.o
/sbin/ipfwadm -F -p deny
/sbin/ipfwadm -F -a m -S192.168.0.0/24 -D0.0.0.0/0
/sbin/ifconfig eth1 192.168.0.1
/sbin/route add -net 192.168.0.0

3) changed flag in /etc/sysconfig/network from 'false' to 'true' on
FORWARD_IPV4=

my brothers comp(win98)  is 192.168.0.2, with a gateway of eth1 192.168.0.1.

And that's all Ive done, It seems to be working ok. But, i get an error on
boot up, rc.d/rc.6/routed -no file.   Should something be added there ?
Should I re-do the kernel (2.0.36) and add ip masq like it says ? Would it
be more efficient if I did so ? Or am I ok ?

Since I finally got something working, I'd like to leave it alone, but if
there's someting taboo in this, I'd like to fix it asap.

Thanks for your patience if you've read down this far!  Im a new linux user
and have been reading up as much as my brain allows :)

Brook Vogt   <[EMAIL PROTECTED]>





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For daily digest info, email [EMAIL PROTECTED]

Reply via email to