Basic firewall Operation Command on centos

CentOS configure firewall action instances (start, stop, open and close ports):
Note: the basic operation of the firewall command:
Check the status of firewall:
[Root@localhost ~]# service iptables status< return >
Stop the firewall:
[Root@localhost ~]# service iptables stop < enter >
Start the firewall:
[Root@localhost ~]# service iptables start < enter >
To restart the firewall:
[Root@localhost ~]# service iptables restart < enter >
Permanently turn off the firewall:
[Root@localhost ~]# chkconfig iptables off< return >
Enable closed after:
[Root@localhost ~]# chkconfig iptables on< return >