1、首先查看防火墙的启动状态,显示是:not running,是关闭的状态,开启和关闭防火墙firewall-艘早祓胂cmd –statesystemctl start firewalld.servicesystemctl stop firewalld.service
2、查看自启动的服务,左边是服务名称,右边是状态,enabled是开机启动,disabled是开机不启动。systemctl list-unit-files
3、前面为临时打开关闭防火墙,reboot重启电脑后又会恢复成开启的状态,如果是想重启后防火墙还是处于关闭的状态,就可以使用命令。disable是开启不启动,enable是开启自启动。system艘早祓胂ctl list-unit-files | grep firewalldsystemctl disable firewalld.servicesystemctl enable firewalld.service
4、查看防火墙iptables的配置文件。