You can use this post for centos firewall configuration .
Disable ipv4 firewall :
service iptables save
service iptables stop
chkconfig iptables off
service iptables stop
chkconfig iptables off
Disable ipv6 firewall :
service ip6tables save
service ip6tables stop
chkconfig ip6tables off
service ip6tables stop
chkconfig ip6tables off
Enable IPv4 firewall :
service iptables start
chkconfig iptables on
chkconfig iptables on
Enable IPv6 firewall :
service ip6tables start
chkconfig ip6tables on
chkconfig ip6tables on
if you need to check firewll status you can use code below :
service iptables status
service ip6tables status
Kind regards
MonoVM.com