1. Instructions for the firewall that comes with centos7
#stop firewall
systemctl stop firewalld.service
#Disable firewall startup
systemctl disable firewalld.service
#View the status of firewall
systemctl status firewalld.service
Second, the relevant status of the centos6 iptables firewall
#Close the firewall ---service iptables stop
#Start the firewall ---service iptables start
# Restart firewall—--service iptables restart
# View firewall status –service iptables status
# Permanently turn off the firewall –chkconfig iptables off
# Enable after permanent shutdown --chkconfig iptables on
{{o.name}}
{{m.name}}