How to Set Up FirewallD on CentOS
FirewallD is the default dynamic firewall on CentOS/RHEL/Alma. It uses zones and services; permanent rules survive reboot.
Steps
Install and start FirewallD:
sudo dnf install -y firewalldsudo systemctl enable --now firewalldCheck the active zone and current allows: