CentOS 7.0 防火墙

CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。
firewall:
systemctl start firewalld.service#启动firewall
systemctl stop firewalld.service#停止firewall
systemctl disable firewalld.service#禁止firewall开机启动
改成iptables
firewall:
systemctl start iptables.service

查看防火墙状态
firewall-cmd --state
原文地址:https://www.cnblogs.com/weixiaole/p/4449733.html