To install FirewallD on CentOS Stream 9, follow the steps below.
Step 1 : Ensure your system is up-to-date by running the following command:
Step 2 : If FirewallD is not already installed, you can install it using the following command:
Step 3 : Start the FirewallD service with the following command:
Step 4 : Enable FirewallD to start at boot:
Step 5 : Verify the status of FirewallD with:
Step 6 : Basic FirewallD Configuration
To allow traffic on port 80 (HTTP), use the following commands:
Congratulations! You have successfully installed and configured FirewallD on CentOS Stream 9.