I'm trying to setup my linux box to ip forward for the rest of the machines
on my local LAN.

The networks looks like (plugged into a 5 port linksys hub):

192.168.100.1    my cable modem
192.168.100.2    linux box
192.168.100.3    MacOS/BeOS box
192.168.100.4    windows 95

Locally the 3 computers can all talk to each other fine and the linux box
can also talk out the cable modem just fine.  I found the following script
on one of the IP Masq help pages and it appears to setup things correctly.  
After running this and trying to conenct from the Mac or pc I can see the
appropriate info with "ipfwadm -M -l" but the connectionx are so slow that
they usually timeou;and when they don't they are just too slow to use
(several minutes just to login somewhere).

Can I do the ip masq with only one interface on the linux box or do I need a
second ethernet card and hang the cable modem directly off that?

Anyone have any tips on setting up ip masquarading on RedHat 5.1?  I'm new
to this area and there's so much stuff out there on web pages it gets
overwhelming.  


echo "ip_masq 192.128.100.2"
echo "1" > /proc/sys/net/ipv4/ip_forward
/sbin/depmod -a
/sbin/modprobe ip_masq_ftp.o
/sbin/modprobe ip_masq_raudio.o
/sbin/modprobe ip_masq_irc.o
/sbin/ipfwadm -F -p deny
/sbin/ipfwadm -F -a m -S192.168.100.0/24 -D0.0.0.0/0
/sbin/ifconfig eth1 192.168.100.2
/sbin/route add -net 192.168.100.0

thanks!
Bill Schwartz
[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