How to Install FirewallD GUI on Fedora 40/39 Linux

Firewalld is a dynamic firewall management tool for Linux systems, providing a powerful yet user-friendly interface for managing network traffic. It supports IPv4 and IPv6 firewall settings and network zones and offers high flexibility and security. Firewalld includes a graphical user interface (GUI) that simplifies configuring firewall rules, making it accessible even for users who are not comfortable with command-line tools.

The following guide will demonstrate how to install and use the Firewalld GUI on Fedora 40 or 39. By leveraging the Firewalld GUI, you can easily manage your firewall settings, create and modify zones, and protect your system against unauthorized access. This guide will cover installation steps, basic usage, and tips for optimizing your firewall configuration using the graphical interface.

Install FirewallD

Confirming FirewallD Installation

Fedora Linux typically comes with FirewallD pre-installed. To verify its presence on your Fedora 36 system, execute the command below in the terminal. This command checks the installed version of FirewallD, which confirms its installation.

sudo firewall-cmd --version

The terminal will display a version number indicating that FirewallD is installed on your system.

Installing FirewallD if Not Present

If FirewallD is not pre-installed, you can easily install it using the following DNF command:

sudo dnf install firewalld -y

This command installs the FirewallD package and includes the -y flag to confirm the installation automatically.

Enable Firewalld

Once FirewallD is installed or confirmed present, the next step is enabling the service. For enhanced security, it is crucial to have FirewallD enabled at system startup and running immediately.

The command below sets FirewallD to start on boot and also initiates it right away:

sudo systemctl enable firewalld --now

After enabling, it’s essential to verify that FirewallD is running smoothly. The following command checks the status of FirewallD, providing information on whether it is active and running without errors:

systemctl status firewalld

With the successful execution of these steps, you ensure that FirewallD is installed and actively protecting your Fedora system.

Install FirewallD GUI

Install FirewallD GUI via DNF Command

To enhance the user experience with an intuitive graphical interface, Fedora Linux users can install the FirewallD GUI. This interface simplifies the process of managing firewall settings. The necessary packages are available in Fedora’s default appstream. Initiate the installation with this command:

sudo dnf install firewall-config

This command installs firewall-config, the graphical user interface for FirewallD, making it more accessible for users who prefer a GUI over command-line interactions.

KDE-Specific FirewallD GUI Installation

A specialized version of the FirewallD GUI is available for users operating on the KDE desktop environment. This version is tailored to integrate seamlessly with the KDE interface. To install this KDE-specific FirewallD control panel, execute the following command:

sudo dnf install plasma-firewall-firewalld -y

This command installs plasma-firewall-firewalld, ensuring a consistent and integrated experience for KDE users managing their firewall settings.

Run FirewallD GUI

Launching FirewallD GUI

After successfully installing the FirewallD GUI on your Fedora Linux system, you can initiate the interface to start configuring your firewall settings. To open the FirewallD GUI, navigate through the following steps:

  1. Click on ‘Activities’ at the top left corner of your screen.
  2. Select ‘Show Applications’ to view all installed applications.
  3. Locate and click on ‘Firewall’ to open the FirewallD GUI.

Exploring Firewall Settings

With the FirewallD GUI open, you now have the opportunity to explore and modify various firewall settings. The initial screen typically displays the ‘public’ zone, the default zone for most network interfaces. Within the GUI, you will find options to manage:

  • Services: Configure which services are allowed through the firewall.
  • Ports: Specify which ports are open for incoming and outgoing traffic.
  • Protocols: Define rules based on different network protocols.

Additionally, the ‘View’ menu and ‘Options’ provide further customization and settings, enhancing your control over the firewall configuration.

Managing Firewalld GUI

Remove Firewalld GUI

In some scenarios, users may uninstall the FirewallD GUI from their Fedora Linux system. The removal process is straightforward, whether for system optimization, preference for command-line tools, or other reasons.

Standard Environment

For those using the standard FirewallD GUI (firewall-config), the following DNF command will uninstall the graphical interface:

sudo dnf remove firewall-config

This command removes the firewall-config package, effectively uninstalling the FirewallD GUI from your system.

KDE Environment

KDE desktop environment users who have installed the KDE-specific version of the FirewallD GUI can uninstall it using a similar DNF command:

sudo dnf remove plasma-firewall-firewalld

This command targets the plasma-firewall-firewalld package, removing the KDE-integrated FirewallD GUI.

Conclusion

In this guide, we’ve covered the essential steps for installing and managing the Firewalld GUI on Fedora Linux. From confirming the presence of Firewalld to installing the GUI and removing it when necessary, we’ve explored key actions to streamline your firewall management. While the GUI provides a user-friendly interface, it is crucial to keep your firewall configurations up-to-date for optimal system security. Regularly reviewing your firewall settings and staying informed about best practices in network security will help you maintain a robust defense against potential threats.

Leave a Comment