Hi,

...
> I have a Linux box (Slackware 3.5, kernel 2.0.34) networked to three win95
> clients. There is only ONE network card installed in the Linux box and not
two.
> So far I have been able to get the Linux box connected using
> minicom. I am now trying to configure IP masquerading to get the clients
connected to the
> net but without success.  This is what I have done so far:

What I have done is to use ipchain instead of all the other stuff:
------------------------------------------------------------------
#!/bin/sh

echo "** Making sure you have forwarding on..."
echo "1" > /proc/sys/net/ipv4/ip_forward
echo "1" > /proc/sys/net/ipv4/ip_dynaddr

#
# echo "** Dont let anyone in, but let everybody out..."
# my network is 192.168.1.0
#
ipchains --flush
ipchains -P forward DENY
ipchains -A forward -s 192.168.1.0/24 -j MASQ

exit 0
------------------------------------------------------------------

Its simple, and it works.

// Jarmo

Reply via email to