關閉防火牆命令:systemctl stop firewalld.service
開啟防火牆:systemctl start firewalld.service
關閉開機自啟動:systemctl disable firewalld.service
開啟開機啟動:systemctl enable firewalld.service
1. 永久性生效
開啟:chkconfig iptables on
關閉:chkconfig iptables off
2. 即時生效,重啟后失效
開啟:service iptables start
關閉:service iptables stop
