How to Install/Enable FirewallD GUI on AlmaLinux 9

FirewallD is software that provides the system firewall feature to protect AlmaLinux users from unwanted access by disabling and enabling ports, services, or protocols. However, for users who are used to an interface such as Graphical User Interface (GUI), the command line may seem difficult because there’s no visual representation, and for those who are not comfortable learning the command line terminal, the possibility of having an unsecured system.

However, you can install the FirewallD GUI. This sleek and simple design program is a perfect match for those who want easy access to what’s going on in their system without having too many bells and whistles to distract them from maintaining security.

In the following tutorial, you will learn how to install and enable FirewallD and install FirewallD GUI on AlmaLinux 9 using the command line terminal.

Update AlmaLinux

Begin by making sure your system is up to date with the latest packages, failure to do this may result in issues further down the line with the installation or your system in general.

sudo dnf upgrade --refresh

Once you have finished updating and upgrading your packages, install FirewallD.

Install FirewallD

By default, FirewallD should be automatically pre-installed on AlmaLinux 9. To confirm if the firewall is present, use the following command.

sudo firewall-cmd --version

The output should state a version number in the output that shows the presence of FirewallD.

For users that do not have the firewall present, you can run the following command below.

sudo dnf install firewalld -y

Enable FirewallD

After checking or re-installing FirewallD on your system, you need to enable the service.

The best practice is automatically enabling the firewall software at system boot and starting it immediately. This can be accomplished with an all-in-one command as follows.

sudo systemctl enable firewalld --now

Next, check the status of FirewallD to make sure everything is working and no errors are present.

systemctl status firewalld

Example output:

How to Install/Enable FirewallD GUI on AlmaLinux 9

As above, the backend of FirewallD is active and working correctly.

Install FirewallD GUI

The next step is to install the graphical interface (GUI) for FirewallD, which you can begin by using the following command.

sudo dnf install firewall-config -y

KDE users on AlmaLinux 9 can install the KDE control panel for FirewallD.

sudo dnf install plasma-firewall-firewalld -y

Launch FirewallD GUI

Once the installation has been completed, you can run the GUI by opening the application with the following path.

Activities > Show Applications > Firewall

Example:

How to Install/Enable FirewallD GUI on AlmaLinux 9

Once launched, you can begin to experiment with the firewall settings, the main list you can see is public, along with services, ports, protocols, and much more.

The view menu and Options also have additional options and selects.

Example of FirewallD GUI:

How to Install/Enable FirewallD GUI on AlmaLinux 9

How to Remove (Uninstall) FirewallD GUI

Use the following command below for users who no longer wish to use FirewallD GUI.

sudo dnf autoremove firewall-config

KDE users that want to remove the FirewallD panel.

sudo dnf autoremove plasma-firewall-firewalld

Note, this will remove all unused dependencies for FirewallD GUI and any other dependencies that are no longer in use on your system, so be aware. For most users, you should be removing these as they can clog your system up heavily after a while.

Comments and Conclusion

If you’re looking for a lightweight yet sophisticated program that will help keep an eye on your system, look no further than GUIs sleek and simple interface, and you should check it out.



Follow LinuxCapable.com!

Like to get automatic updates? Follow us on one of our social media accounts!