Linux firewall shutdown command (permanent shutdown, temporary shutdown, restart firewall)

1: Check the firewall status

systemctl status firewalld
service  iptables status

2: Temporarily turn off the firewall

systemctl stop firewalld
service  iptables stop

3: Permanently turn off the firewall

systemctl disable firewalld
chkconfig iptables off

Permanently closed status:
Insert image description here

4: Restart the firewall

systemctl enable firewalld
service iptables restart

5: Restart after permanent shutdown

//Not tried yet

chkconfig iptables on

Guess you like

Origin blog.csdn.net/Myx74270512/article/details/127938415