VMware GSX Server 3.2Features | Documentation | Knowledge Base | Discussion Forums Advanced NAT ConfigurationRead the section that corresponds to your host operating system for information on configuring NAT for your virtual machines. Windows HostsConfigure the NAT device using the Virtual Network Editor (Host > Virtual Network Settings > NAT). You can stop, restart and start the virtual NAT device by clicking the appropriate button. The VMnet host setting lets you choose which virtual network uses the NAT device. You can select Disable if you do not want to use NAT on any virtual network. To edit NAT settings for a virtual network, choose it from the drop-down menu, then click Edit. The NAT Settings dialog box appears. You can change any of the following NAT settings: To add a new port for either TCP or UDP, click Add. If a port is already listed, you can change its settings. Select its name in the list, then click Properties. Or click Remove to remove the selected port. When you click Add, another dialog box appears. In the Host port field, type the number of the incoming TCP or UDP port. For example, incoming HTTP requests are usually on port 80. In the first Forwarding IP address field, type the IP address of the virtual machine to which you want to forward the incoming requests. In the second field on that line, type the port number you want to use for those requests on that virtual machine. This may be the standard port, such as 80 for HTTP, or a nonstandard port if software running in the virtual machine is configured to accept requests on a nonstandard port. The Description field is optional. You may use it to identify the service being forwarded (for example, HTTP). When you have made these settings, click OK. When you have made all the networking changes you want, click OK. Linux HostsUse the NAT configuration file on the host to configure the NAT device. This file is /etc/vmware/vmnet8/nat/nat.conf. The configuration file is divided into sections. Each section configures a part of the NAT device. Text surrounded by square brackets such as [host] marks the beginning of a section. In each section is a configuration parameter that can be set. The configuration parameters take the form ip = 192.168.27.1/24. For an example of a NAT configuration file, see Sample Linux vmnetnat.conf File. The configuration file variables are described below. The [host] Section
ip
netmask
configport
device
activeFTP The [udp] Section
timeout The [incomingtcp] SectionUse this section to configure TCP port forwarding for NAT. You can assign a port number to an IP address and port number on a virtual machine. The following line shows the format used in this section. 8887 = 192.168.27.128:21 This example creates a mapping from port 8887 on the host to the IP address 192.168.27.128 and port 21. When this mapping is set and an external machine connects to the host at port 8887, the network packets are automatically forwarded to port 21 (the standard port for FTP) on the virtual machine with IP address 192.168.27.128. The [incomingudp] SectionUse this section to configure UDP port forwarding for NAT. You can assign a port number to an IP address and port number on a virtual machine. The following line shows the format used in this section. It illustrates a way to forward X server traffic from the host port 6000 to the virtual machine's port 6001. 6000 = 192.168.27.128:6001 This example creates a mapping from port 6000 on the host to the IP address 192.168.27.128 and port 6001. When this mapping is set and an external machine connects to the host at port 6000, the network packets are automatically forwarded to port 6001 on the virtual machine with IP address 192.168.27.128. |

