I have a linux machine, redhat 9, connected via cable modem to the
internet on eth0. Connected to eth1 is a laptop running xp. I am
attempting to use ip masquerade to allow the xp machine to connect to
the outside world via the linux machine. Here are the commands I give to
set up iptables.
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 MASQUERADE
I get the following error message after issuing the second command:
Bad argument 'MASQUERADE'
I copied this sequence of commands for a book telling one how to
interconned a windows and linux machine in a LAN. Of course, I have gone
to the iptables man pages, but cannot figure out what the error is. Can
anyone enlighten me as to what the correct command is? I am at a loss now.
Thanks for any help,
Dick Fell
|