Help Docs Security Overview Firewall Management Using FirewallD on CentOS 7

Using FirewallD on CentOS 7

FirewallD provides protection by using firewall zones with varying degrees of trust defined in your zone profiles. FirewallD allows for changes to be made without having to restart the entire firewall, though it is important to make sure that the daemon and the firewall in kernel are in sync.

Liquid Web managed servers automatically use iptables with CSF as their firewall.  However, you have the option of using FirewallD, a dynamic firewall management tool for Linux operating systems. FirewallD provides protection by using firewall zones with varying degrees of trust defined in your zone profiles.

Note:

FirewallD allows for changes to be made without having to restart the entire firewall, though it is important to make sure that the daemon and the firewall in kernel are in sync.

This tutorial will take you through:

Start and Enable FirewallD

  1. First, you will have to login as the root user via Secure Shell. If you are unsure how to login, please see our article Logging into Your Server via Secure Shell (SSH).
  2. To enable FirewallD, run the following command:
    systemctl enable firewalld

  3. Next, to start FirewallD, enter:
    systemctl start firewalld

  4. You can check the status of FirewallD by running the command:
    systemctl status firewalld

Stop and Disable FirewallD

  1. Again, you will login as the root user via Secure Shell.
  2. To disable FirewallD, run the following command:
    systemctl disable firewalld

  3. To stop FirewallD, enter:
    systemctl stop firewalld

  4. You can check the status of FirewallD by running the command:
    systemctl status firewalld

Restart FirewallD

  1. Login as the root user via Secure Shell.
  2. To restart FirewallD, run the following command:
    systemctl restart firewalld

  3. You can check the status of FirewallD by running the command:
    systemctl status firewalld

Was this article helpful?