centos防火墙端口的添加、查看和删除
2019-03-18 10:53
531 查看
centos防火墙端口的添加、查看和删除
1.查看zone名称
firewall-cmd --get-active-zones
2.添加端口
firewall-cmd --zone=public --add-port=3490/tcp --permanent
其中
--permanent是永久生效的意思,如果不用则重启后失效。
3.重载防火墙
firewall-cmd --reload
4.查看端口是否添加成功
firewall-cmd --query-port=3490/tcp
5.删除端口
firewall-cmd --zone=public --remove-port=3490/tcp --permanent
相关文章推荐
- centOS 防火墙 添加TOMCAT访问端口 查看是否安装mysql
- Linux iptables 防火墙 添加删除 端口
- CENTOS 给iptables防火墙添加允许访问 的端口(添加端口白名单)
- Linux iptables 防火墙 添加删除 端口
- 为Linux(CentOS)防火墙添加端口
- Linux iptables 防火墙 添加删除 端口
- linux防火墙iptables规则的查看、添加、删除和修改方法总结
- Linux iptables 防火墙 添加删除 端口
- Centos开放查看端口 防火墙关闭打开
- centos 7 配置防火墙 添加端口可以访问
- 开启iptables-service,查看、增加、删除防火墙端口
- Linux iptables防火墙添加删除端口
- centos 7.0 修改ssh默认连接22端口 和 添加防火墙firewalld 通过端口
- Linux iptables 防火墙 添加删除 端口 .
- Linux iptables 防火墙 添加删除 端口
- Linux iptables防火墙添加删除端口
- Centos 7和 Centos 6开放查看端口 防火墙关闭打开
- Linux iptables 防火墙 添加删除 端口 (转载)
- centos7 防火墙添加例外端口firewall
- Linux防火墙规则的查看、添加、删除和修改