Help with RHEL5 and IP Masquerading
I have two mchaines which one is pysically connected to the internet, the RHEL5 machine, and a second machine that is connected to the first via a crossover cable. The RHEL5 has two NIC cards. eth0 is connected to the internet via a DHCP server. eth1 has a static address of 192.168.1.1. The second machine that I would like to have internet access to has a single NIC and a static address of 192.168.1.2 with a gateway set to 192.168.1.1. Would I just ahve to run the following command on the RHEL5 machine to give internet access:
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
TIA,
Keith
|