在防火墙配置自定义服务
2016-05-10 20:50
387 查看
cd /etc/vmware/firewall
chmod 777 service.xml 修改service.xml的属性,否则无法修改该文件
chmod +t service.xml
vi service.xml
<service id='0099'>
<id>AAAA</id>
<rule id='0000'>
<direction>inbound</direction>
<protocol>tcp</protocol>
<porttype>dst</porttype>
<port>5555</port>
</rule>
<rule id='0001' >
<direction>outbound</direction>
<protocol>tcp</protocol>
<porttype>src</porttype>
<port>5555</port>
</rule>
<enabled>true</enabled>
<required>false</required>
</service>
chmod 444 service.xml 修改完之后要将该文件的属性修改回来
esxcli network firewall refresh 刷新一下防火墙设置
esxcli network firewall ruleset rule list | grep AAAA 验证自定义服务AAAA是否生效,也可在vSphere client中查看
chmod 777 service.xml 修改service.xml的属性,否则无法修改该文件
chmod +t service.xml
vi service.xml
<service id='0099'>
<id>AAAA</id>
<rule id='0000'>
<direction>inbound</direction>
<protocol>tcp</protocol>
<porttype>dst</porttype>
<port>5555</port>
</rule>
<rule id='0001' >
<direction>outbound</direction>
<protocol>tcp</protocol>
<porttype>src</porttype>
<port>5555</port>
</rule>
<enabled>true</enabled>
<required>false</required>
</service>
chmod 444 service.xml 修改完之后要将该文件的属性修改回来
esxcli network firewall refresh 刷新一下防火墙设置
esxcli network firewall ruleset rule list | grep AAAA 验证自定义服务AAAA是否生效,也可在vSphere client中查看
相关文章推荐
- Vista 防火墙 Vista Firewall Control v1.0.11 下载
- 简单易用的个人网络防火墙 Jetico Personal Firewall v2.0.0.25 Beta下载
- 簡單認識 snort rules 條件格式 IDS
- snort alert http_inspect OVERSIZE REQUEST-URI D...
- ipcop Firewall 1.4.13发行版
- PIX firewall configuration from scratch
- 防火墙、路由器、交换机+模拟软件+流控
- 基本Zone-base firewall知识及配置
- VTUN(vtun.sourceforge.net)
- H3C SecPath F100系列防火墙配置
- CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables
- cisco pix firewall 基本配置
- Firewall com Layer7 转贴
- CentOS防火墙配置
- FreeSwitch防火墙配置端口
- Open MySql Port in firewall for access
- [django每日学习14.11.7]关于django runserver创建的网站其他计算机无法访问
- CentOS7防火墙关闭与配置
- 罗塞塔石碑安装失败