linux的各个版本或同一个版本间不同版本号关于防火墙命令也会有不一样的。针对这些命令整理如下,方便自己或有需要的朋友查阅。
centos7.0默认防火墙为firewalld(为了测试,关闭默认防火墙,使用iptables防火墙)
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
查看默认防火墙状态:
firewall-cmd --state
not running
原文:http://www.cnblogs.com/ffeng/p/7397465.html