How To Install FirewallD on Fedora 40

To install FirewallD on Fedora 40, follow the steps below.

Step 1 : Update the system to ensure you have the latest packages:

Step 2 : Install FirewallD:

Step 3 : Start the FirewallD service:

Step 4 : Enable FirewallD to start on boot:

Step 5 : Check the status of FirewallD to ensure it's running:

Step 6 : Configure basic rules for FirewallD. For example, to allow traffic on ports 80 (HTTP) and 443 (HTTPS), execute the following commands:

Congratulations! You have successfully installed and configured FirewallD on Fedora 40.