2
I have to NAT a Windows PC with IP 10.10.10.10 through a Linux server with two network cards. The IP addresses of the NICs are 20.20.20.50 (connected to an external network) and 10.10.10.9. The second NIC is conneted to the Windows PC. My requirement is that I should be able to reach the Windows PC from the external network, so I need to NAT 20.20.20.40 (this is the IP through which the external network should be able to access the Windows PC) to 10.10.10.10.
How should I set up iptables on the Linux server to accomplish this?
LOL, I didn't pay attention the
20.20.20.50
is a public ip, it look so "private" to me :P. I will just remove mine and up vote yours +1. – John Siu – 2013-02-01T20:10:26.380