How to Install/Enable FirewallD GUI on Rocky Linux 9

Rocky Linux is a security-focused distribution that offers users a robust firewall feature with FirewallD. For users accustomed to a Graphical User Interface (GUI), the command line may seem daunting because there is no visual representation. However, for those willing to learn the commands, FirewallD provides an easy way to control the firewall and disable or enable access to ports, services, or protocols. The software is also highly customizable so that users can tailor the firewall to their specific needs.

The following tutorial will teach you how to install and enable FirewallD and install FirewallD GUI on Rocky Linux 9 using the command line terminal.

Update Rocky Linux

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

You can run the following command below for users that do not have the firewall installed or have removed the package previously.

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 ensure everything is working and no errors are present.

systemctl status firewalld

Example output:



How to Install/Enable FirewallD GUI on Rocky Linux 9

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

Install FirewallD GUI

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

sudo dnf install firewall-config -y

KDE desktop environment users 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 Rocky Linux 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 Rocky Linux 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 that this will remove all unused dependencies for FirewallD GUI and any other dependencies that are no longer used on your system, so be aware. You should remove these for most users 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.


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

Leave a Comment