CentOS7.9 firewall command

CentOS7 firewall command changes:

CentOS7: systemctl status firewalld.service View firewall status

      systemctl stop firewalld.service this visit turn off the firewall

      systemctl disable firewalld.service from the next turn off the firewall

      systemctl enable firewalld.service open the firewall

Finally, about the network configuration: systemctl restart network

 

 

CentOS6: service iptables status to view the status of the firewall

      service iptables start temporarily open the firewall

      service iptables stop temporarily turn off the firewall

      chkconfig iptables --list view firewall boot state

      chkconfig iptables on the firewall to open the boot

      chkconfig iptables off the boot off the firewall

 

 

        

Guess you like

Origin www.cnblogs.com/lyxcode/p/11610173.html