閱讀222 返回首頁    go 阿裏雲 go 技術社區[雲棲]


如何在 vmware esxi 5.5 中開放 VNC 端口

1、編輯/etc/vmware/firewall/service.xml 


  1. vi /etc/vmware/firewall/service.xml

2、在該文件重中倒數第二行開始添加以下內容:


  1. <!-- Firewall configuration information for VNC -->
  2. <service id='0040'>
  3. <id>VNC</id>
  4. <rule id='0000'>
  5. <direction>inbound</direction>
  6. <protocol>tcp</protocol>
  7. <porttype>dst</porttype>
  8. <port>
  9. <begin>40000</begin>
  10. <end>60000</end>
  11. </port>
  12. </rule>
  13. <enabled>true</enabled>
  14. <required>false</required>
  15. </service>

3、執行以下命令以使配置文件生效:


  1. esxcli network firewall refresh

4、查看是否已經生效:


  1. esxcli network firewall ruleset list | grep VNC
  2. VNC true
  3. 原文發布時間為:2015-06-17 本文來自雲棲社區合作夥伴“Linux中國”

最後更新:2017-05-22 14:01:59

  上一篇:go  PHP學習路線圖
  下一篇:go  《ELK Stack權威指南(第2版)》一 3.3 Postfix日誌