Howto disable firewalld, and start iptables firewall on CentOS 7 Linux system

undefined

In this mini post I’ll show you how to stop, and disable firewalld, then install, and enable iptables on CentOS 7 Linux system.

In RPM Linux Family release 7 iptables firewall is not the default firewall, instead of it Redhad/CentOS is using Firewalld as the default firewall in any installation type “Minimal installation, Server installation, Server with GUI installation, etc..”. This require us to install additional package and disable the exiting firewalld on Redhat 7 / CentOS 7 / Scientific Linux 7 Linux systems.

First we will stop, and disable firewalld service, run the following commands:

# systemctl stop firewalld.service
# systemctl disable firewalld.service

Now, we need to install, enable, and start iptables services on CentOS 7. Run the following commands:

# yum -y install iptables-services.x86_64
# systemctl enable iptables.service
# systemctl start iptables

At this point we are using iptables instead of firewalld on CentOS/Redhat 7.

If You Appreciate What We Do Here On Mimastech, You Should Consider:

  1. Stay Connected to: Facebook | Twitter | Google+
  2. Support us via PayPal Donation
  3. Subscribe to our email newsletters.
  4. Tell other sysadmins / friends about Us - Share and Like our posts and services

We are thankful for your never ending support.

Leave a Reply

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