linux turn off the firewall method

Here is red hat / CentOs7 turn off the firewall command!

1: View the status of fire

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

4: Restart the firewall

systemctl enable firewalld

service iptables restart  

5: permanently closed after restart

// not tried yet

iptables ON chkconfig 
---------------------
Author: Silence.
Source: CSDN
Original: https: //blog.csdn.net/qq_35971258/article/details/79318842
Copyright: This article is a blogger original article, reproduced, please attach Bowen link!

Guess you like

Origin www.cnblogs.com/shttke/p/10966980.html