How to Set Up firewalld (CentOS/AlmaLinux)
How to Set Up firewalld (CentOS/AlmaLinux)
# Check status
firewall-cmd --state
# Allow common services
firewall-cmd --permanent --add-service=ssh
firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
# Allow a specific port
firewall-cmd --permanent --add-port=8080/tcp
# Apply changes
firewall-cmd --reload
# List all rules
firewall-cmd --list-all