Для того что бы настроить iptables в CentOS 7 необходимо Выключить службу Firewalld выполнив команды:
systemctl disable firewalld
systemctl stop firewalld
Установить iptables
yum -y install iptables-services
Включить IPtables при загрузке системы
systemctl enable iptables