---
title: "How to Install Firewalld on Linux"
description: "Firewalld is a front-end manager that allows users to easily manage Linux firewall rules. It has become a popular option for securing Linux web hosting servers throughout the last few years. It's..."
url: https://www.inmotionhosting.com/support/security/how-to-install-firewalld-on-linux/
date: 2020-05-20
modified: 2024-03-21
author: "InMotion Hosting Contributor"
categories: ["Security"]
type: post
lang: en
---

# How to Install Firewalld on Linux

[Firewalld](https://firewalld.org/) is a front-end manager that allows users to easily manage Linux firewall rules. It has become a popular option for securing Linux web hosting servers throughout the last few years. It’s installed by default on many newer Linux distribution releases.

An unique advantage to the command-line interface (CLI) application is that ruleset changes are updated without closing existing sessions with the system.

Those on cPanel servers or looking for a firewall application with a graphical interface may prefer [ConfigServer Security & Firewall (CSF)](https://www.inmotionhosting.com/support/security/install-csf/) with its cPanel plugin.

Before we begin, open a terminal ([or SSH into your server](https://www.inmotionhosting.com/support/server/ssh/how-to-login-ssh/)), and check whether Firewalld is pre-installed and, if so, what version:

sudo firewall-cmd --version

If it’s installed, [start configuring Firewalld](#start). Below we cover:

- [Installing Firewalld](#install)
  - [Debian / Ubuntu](#debian)
  - [CentOS / Fedora](#centos)
  - [Arch / Manjaro](#arch)
  - [Gentoo](#gentoo)
  - [openSUSE](#opensuse)
- [Getting Started with Firewalld](#start)

Firewalld is pre-installed with our [Cloud Server Hosting](https://www.inmotionhosting.com/cloud-vps).

## Install Firewalld on Linux with the Terminal

### Install Firewalld on Debian / Ubuntu

Update repositories first:

sudo apt update

sudo apt -y install firewalld

### Install Firewalld on CentOS / Fedora

sudo yum install firewalld

### Install Firewalld on Arch / Manjaro

sudo pacman -S firewalld

### Install Firewalld on Gentoo

emerge net-firewall/firewalld

### Install Firewalld on openSUSE

Update openSUSE repositories first:

sudo zypper ref

sudo zypper install firewalld

Other Linux distro users can download the compressed file from [https://Firewalld.org](https://www.inmotionhosting.com/support/security/create-checksum-locally/) and [compare the SHA256 checksum](https://www.inmotionhosting.com/support/security/create-checksum-locally/).

## Getting Started

1. Enable Firewalld to start upon boot:sudo systemctl enable firewalld
2. Ensure Firewalld is running:sudo firewall-cmd --state
3. If UFW is installed, disable it to make Firewalld your primary firewall:sudo ufw disable
4. Open the `https` service:sudo firewall-cmd --permanent --add-service=httpsWe recommend [Certbot](https://www.inmotionhosting.com/support/website/ssl/lets-encrypt-ssl-ubuntu-with-certbot/) for creating free Let’s Encrypt SSL certificates on cloud servers.
5. Reload Firewalld to apply your changes:sudo firewall-cmd --reload
6. Ensure your changes were applied:sudo firewall-cmd --list-servicesThe results should resemble:`dhcp6-client https ssh`.

To better secure your system, [learn more Firewalld commands](https://www.inmotionhosting.com/support/security/how-to-configure-firewalld-basic-commands/).

If you installed Firewalld on your personal computer, you can manage your local firewall with the [firewall-config GUI application](https://firewalld.org/documentation/utilities/firewall-config.html).

![](https://www.inmotionhosting.com/support/wp-content/uploads/2020/05/firewall-config-screenshot.png)
