关闭防火墙命令:systemctl stop firewalld.service
开启防火墙:systemctl start firewalld.service
关闭开机自启动:systemctl disable firewalld.service
开启开机启动:systemctl enable firewalld.service
防火墙状态查看:systemctl status firewalld
查看开机是否启动防火墙服务: systemctl is-enabled firewalld
禁用防火墙(系统启动时不启动防火墙服务):systemctl disable firewalld
永久有效开启和关闭:
开启: chkconfig iptables on
关闭: chkconfig iptables off
防火墙状态查看:/etc/init.d/iptables status
防火墙临时关闭:/etc/init.d/iptables stop