安装firewalld防火墙
yum install firewalld
开启防火墙
systemctl start firewalld.service
关闭防火墙
systemctl stop firewalld.service
设置开机自动启动
systemctl enable firewalld.service
关闭开机自动启动
systemctl disable firewalld.service
查看防火墙状态
systemctl status firewalld
重载防火墙设置
firewall-cmd –reload
参考链接:
http://www.centoscn.com/CentOS/help/2017/0103/8392.html