1, into the following directory
The code is as follows |
Copy Code |
/etc/vmware/vmnet8/nat/nat.conf |
Edit this file, at the end of the file you can see:
The code is as follows |
Copy Code |
[INCOMINGTCP] # Use these and care-anyone can enter into your VM through ... # The format and example are as follows: #<external Port number> = <vm ' s IP address>:<vm ' s port number> #8080 = 172.16.3.128:80 [INCOMINGUDP] # UDP Port Forwarding Example #6000 = 172.16.3.0:6001 |
This time it should be easy to see these examples, if I want to map virtual 3389 to 2000 ports, just add under [incomingtcp]
2000 = 172.16.3.128:3389
Then save the exit, the terminal executes:
The code is as follows |
Copy Code |
/usr/bin/vmware-networks stop /usr/bin/vmware-networks start |
Finally do the verification, execution:
The code is as follows |
Copy Code |
Netstat–lntp |
See if there's a NO. 2000-port Monitor,