How can i install and use iptables on RHEL 7.2

How can i install and use iptables on RHEL 7.2

RHKFirstly, stop and mask the firewalld service:
systemctl stop firewalld
systemctl mask firewalld

Then, install the iptables-services package:
yum install iptables-services

After that, 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

Leave a Reply

Your email address will not be published. Required fields are marked *