1、编辑/etc/vmware/firewall/service.xml
vi /etc/vmware/firewall/service.xml
2、在该文件重中倒数第二行开始添加以下内容:
<!-- Firewall configuration information for VNC -->
<service id='0040'>
<id>VNC</id>
<rule id='0000'>
<direction>inbound</direction>
<protocol>tcp</protocol>
<porttype>dst</porttype>
<port>
<begin>40000</begin>
<end>60000</end>
</port>
</rule>
<enabled>true</enabled>
<required>false</required>
</service>
3、执行以下命令以使配置文件生效:
esxcli network firewall refresh
4、查看是否已经生效:
esxcli network firewall ruleset list | grep VNC
VNC true
原创:Linux中国 https://linux.cn/article-5650-1.html作者: netb2c
点击查看更多内容
为 TA 点赞
评论
共同学习,写下你的评论
评论加载中...
作者其他优质文章
正在加载中
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦