How to install iptables on CentOS 7

How to install iptables on CentOS 7

CentOS now comes with firewalld instead of iptables at the installation of your dedicated server.

You can remove the firewalld service and install iptables to manage your firewall rules.


First you need to stop and remove firewalld

systemctl stop firewalld
systemctl disable firewalld
yum remove firewalld


Now you can install iptables

yum install iptables-services -y


Enable iptables at the boot

systemctl enable iptables


Start iptables

systemctl start iptables


Colo-Serv Communications has written 20 articles

Premium Dedicated Server in Canada

Leave a Reply

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

20 − 1 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>