CentOS7ではデフォルトfirewalldが動いている。
https://qiita.com/shrkw/items/8410e9cb65eb789a40e1
yum install iptables-services systemctl stop firewalld systemctl disable firewalld systemctl enable iptables systemctl start iptables
/usr/libexec/iptables/iptables.init save