Installing IPTables on CentOS 7

If you wish to use the default iptables service rather than the new firewalld service shipped with CentOS 7, this can be done with the following commands,

yum install iptables-services
systemctl mask firewalld
systemctl enable iptables
systemctl enable ip6tables
systemctl stop firewalld
systemctl start iptables
systemctl start ip6tables