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:
4: Restart the firewall
systemctl enable firewalld
service iptables restart
5: Restart after permanent shutdown
//Not tried yet
chkconfig iptables on