In this scenario lets suppose that you are running vmware server and you have a NAT host that you would like to allow port forwarding to. You would want to do this for example, if your NAT'ed host was running a webserver and you wanted to redirect traffic from port 8080 to that guest.
You can accomplish this by altering the information in /etc/vmware/vmnet8/nat/nat.conf
Since 80 would be a TCP port, we want to make the following insertion in the section [incomingtcp]. Add the following:
80 = 192.168.27.128:80What is going on is that the first number "80" represents the port that will be called from the outside world, like a web browser. The next number is the ip-address of the NAT'ed guest that we want to reach followed by a colon and the port that we want to reach on that client. If you wanted the outside world to come in over a non-standard port like 8080 it would look like this:
8080 = 192.168.27.128:80Now you will need to restart the vmware service to allow the change.
sudo /etc/init.d/vmware restart