http://stackoverflow.com/questions/24756240/how-can-i-use-iptables-on-centos-7
# sudo service iptables startRedirecting to /bin/systemctl start iptables.serviceFailed to issue
method
call: Unit iptables.service failed to load: No such file or directory.
With RHEL 7/centos 7, FIREWALLD is introduced to manage iptables. IMHO, FIREWALLD is more suited for workstations than for server environments.
It's possible to go, and a more classic iptables setup. First, stop and mask the FIREWALLD service:
systemctl stop firewalldsystemctl mask firewalld
Then, install the Iptables-services package:
yum install iptables-services
Enable the service at Boot-time:
systemctl enable iptables
Managing the Service
systemctl [stop|start|restart] iptables
Saving your firewall rules can be done as follows:
service iptables save
Or
/usr/libexec/iptables/iptables.init save
How can I use the iptables on CentOS 7 or fedora?