日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

Linux下VMware的端口映射的方法

主機(jī)環(huán)境是UBUNTU 7.4

VMware Workstation 6.0.0 build-45731vmware使用NAT是通過(guò)vmnet8來(lái)是實(shí)現(xiàn),找到這個(gè)文件打開(kāi)/etc/vmware/vmnet8/nat/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 to

# 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映射

[incomingudp]

UDP映射

舉例

8889 = 192.168.0.128:22

保存退出,重啟服務(wù)

/usr/lib/vmware/net-services.sh restart

測(cè)試

ssh -p 8022 myhost.comornetstat -anpt ........tcp 0 0 0.0.0.0:4660 0.0.0.0:* LISTEN 2500........

    推薦閱讀