To install and configure FirewallD on AlmaLinux 9, follow these steps:
Step 1 : Before installing any package, update your system using:
Step 2 : If FirewallD is not installed, install it using:
- Once installed, start the FirewallD service:
- To ensure FirewallD starts on system boot, enable it:
Step 3 : Verify that FirewallD is running:
Step 4 : You can configure FirewallD to allow traffic on specific ports, such as ports 80 (HTTP) and 443 (HTTPS). To allow traffic on these ports, run the following commands:
Congratulations! You have successfully installed and configured FirewallD on AlmaLinux 9.