How To Set Up a Firewalld in Linux CentOS 7 / RHEL7

By | January 17, 2018

How To Set Up a Firewalld in Linux CentOS 7 / RHEL7

Firewalld is a firewall management solution available for many Linux distributions which acts as a frontend for the iptables packet filtering system provided by the Linux kernel. In this guide, we will cover how to set up a firewall for your server and show you the basics of managing the firewall with the firewall-cmd administrative tool

Install and Enable Your Firewall

firewalld is installed by default on some Linux distributions

yum install firewalld

After you install firewalld, enable the service and reboot your server:

systemctl enable firewalld


When the server restarts, your firewall should be brought up, your network interfaces should be put into the zones you configured

Before we can begin to create our firewall rules, we need to actually turn the daemon on

The systemd unit file is called firewalld.service.We can start the daemon for this session by typing:

systemctl start firewalld.service

We can verify that the service is running and reachable by typing:

firewall-cmd –state

Category: VPS

Leave a Reply

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