2.0

Table Of Contents
VMware Server User’s Guide
254 VMware, Inc.
The [incomingudp] Section
UsethissectiontoconfigureUDPportforwardingforNAT.Youcanassignaport
numbertoanIPaddressandportnumberonavirtualmachine.
Thefollowinglineshowstheformatusedinthissection.Itillustratesawaytoforward
Xservertrafficfromthehostport6000
tothevirtualmachine’sport6001.
6000 = 192.168.27.128:6001
Thisexamplecreatesamappingfromport6000onthehosttotheIPaddress
192.168.27.128andport6001.Whenthismappingissetandanexternalmachine
connectstothehostatport6000,thenetworkpacketsareautomaticallyforwardedto
port6001onthevirtualmachinewithIPaddress
192.168.27.128.
Custom NAT and DHCP Configuration on a Windows Host
Ifyouare anadvanceduseronaWindowshostcomputer,youcanmakecustom
configurationsettingsbyeditingtheNATandDHCPconfigurationfiles.Ifyourhost
operatingsystemisinstalledontheCdrive,theconfigurationfilesforNATandDHCP
areinthefollowinglocations:
NAT:C:\Documents and Settings\All Users\Application
Data\VMware\vmnetnat.conf
DHCP:C:\Documents and Settings\All Users\Application
Data\VMware\vmnetdhcp.conf
Specifying Connections from Ports Below 1024
WhenaclientmachinemakesaTCPorUDPconnectiontoaserver,theconnection
comesfromaparticularportontheclient(thesourceport)andconnectstoaparticular
portontheserver(thedestinationport).Forsecurityreasons,someserversaccept
connectionsonlyfromsourceportsbelow1024.
IfavirtualmachineusingNATattemptstoconnecttoaserverthatrequirestheclient
touseasourceportbelow1024,itisimportantthattheNATdeviceforwardtherequest
fromaportbelow1024.Youcanspecifythisbehaviorinthevmnetnat.conffile.
N
OTEYoucanchangemanykeyNATandDCHPsettingsusingthevirtualnetwork
editor(fromtheWindowsStartmenu,selectPrograms>VMwareServer>Manage
VirtualNetworks).However,ifyouhavemademanualchangestotheconfiguration
files,someorallofthosechangesmightbelostwhenyou
usethevirtualnetworkeditor.
Ifyouhavemademanualchanges,makebackupcopiesofthefilesbeforechangingany
settingsinthevirtualnetworkeditor.Aftermakingchangesinthevirtualnetwork
editor,youcancopyyourmanualchangesbackintotheappropriateconfigurationfiles.