How to Install/Enable FirewallD GUI on Rocky Linux 8

FirewallD is software that provides the system firewall feature to protect Rocky Linux from unwanted access by disabling and enabling ports, services, or protocols. However, for users that are used to an interface such as Graphical User Interface (GUI), then the command line may seem difficult at first glance because there’s no visual representation and who are not comfortable learning the command line terminal to 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 FirewallD GUI on Rocky Linux 8 Workstation.

Update System

Begin by making sure your Rocky Linux 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, proceed to install FirewallD.

Install FirewallD

By default, FirewallD should be automatically installed on Rocky Linux. 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 as below.

sudo dnf install firewalld -y

Enable FirewallD

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

The best practice is to automatically enable the firewall software at system boot and start 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:

Install/Enable FirewallD GUI on Rocky Linux 8

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. By default, the packages required are present in the “appstream” on Rocky Linux.

To begin the installation, use the following command.

sudo dnf install firewall-config -y

KDE users on Rocky Linux can install the KDE control panel for FirewallD as follows.

sudo dnf install plasma-firewall-firewalld

Run FirewallD GUI

Once the installation has been completed, you can run the GUI by opening the application following Activities > Show Applications > Firewall path.


Install/Enable FirewallD GUI on Rocky Linux 8

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:

Install/Enable FirewallD GUI on Rocky Linux 8

Remove (Uninstall) FirewallD GUI

For users that no longer wish to use FirewallD GUI, use the following command below.

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 Rocky Linux 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

In the tutorial, you have learned how to install FirewallD GUI on Rocky Linux 8.

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

Not what you were looking for? Try searching for additional tutorials.

Leave a Comment