Article Title: VMware port ing in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
The host environment is UBUNTU 7.4
VMware Workstation 6.0.0 build-45731vmware using NAT is achieved through vmnet8, find this file open/etc/vmware/vmnet8/nat. conf
# Be up to 100% longer
Timeout = 60
[Incomingtcp]
# Use these with care-anyone can enter into your VM through these ......
# FTP (both active and passive FTP is always enabled)
# Ftp localhost 8887
#8887 = 192.168.0.128: 21
4660 = 192.168.0.128: 4660
# WEB (make sure that if you are using named webhosting, names point
# Your host, not to guest ...... And if you are forwarding port other
# Than 80 make sure that your server copes with mismatched port
# Number in Host: header)
# Lynx http: /localhost: 8888
#8888 = 192.168.0.128: 80
# SSH
# Ssh-p 8889 root @ localhost
#8889 = 192.168.0.128: 22
[Incomingudp]
# UDP port forwarding example
#6000 = 192.168.0.128: 6001
[Incomingtcp]
TCP ing
[Incomingudp]
UDP ing
Example
8889 = 192.168.0.128: 22
Save and exit. Restart the service.
/Usr/lib/vmware/restart net-services.sh
Test
Ssh-p 8022 myhost. comornetstat-anpt ...... Tcp 0 0 0.0.0.0: 4660 0.0.0.0: * LISTEN 2500 ......