【RHEL7/CentOS7防火墙之firewall-cmd命令详解】
目录 Firewalld zone firewall-cmd 开始配置防火墙策略 总结 原文: http://blog.gqylpy.com/gqy/318 "Redhat Enterprise Linux7已默认使用 firewalld 防火墙,其管理工具是 firewall-cmd 。使用方式也发生了很大的改变。 基于 iptables 的防火墙已默认不启动,但仍然可以继续使用。 RHEL7中有这几种防火墙共存: firewalld 、 iptables 、 ip6tables 、 ebtables 。 RHEL7的内核版本是3.10,在此版本的内核里防火墙的包过滤机制是 firewalld ,使用 firewalld 来管理 netfilter ,不过底层调用的命令仍然是 iptables 等。 @ *** RHEL7虽然仍有 iptables ,但不建议使用了,而是使用新的 firewalld 服务。 # 查firewalld软件包是否安装 [root@CentOS7 ~]# rpm -q firewalld firewalld-0.5.5-1.fc28.noarch 由于这几种防火墙的 daemon 是冲突的,所以建议禁用其它几种防火墙。 # 禁用方法一: [root@CentOS7 ~]# systemctl mask {iptables,ip6tables