VMware is a virtualization software that allows a guest operating system to be run ontop of a host operating system. Thus one computer can be running several different operating systems all at the same time while sharing resources like RAM, disk space and CPU load.

Tags |

vmware port forwarding

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:80


What 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:80


Now you will need to restart the vmware service to allow the change.




sudo /etc/init.d/vmware restart



Comments

Feel free to leave a comment or question

Name: (Optional but appreciated):

Comment:

Use [code] [/code] for code block style



Security Code: