firewall-cmd list rules is a common RHEL-family search — admins need the exact flags to audit a host. Compare: UFW vs firewalld.
Default zone
See active zone and whether firewalld runs.
bashstatus
sudo firewall-cmd --state
sudo firewall-cmd --get-default-zone

List everything
--list-all for current zone in one screen.
bashlist
sudo firewall-cmd --list-all
sudo firewall-cmd --list-all --zone=public

Ports and services
Separate lists when scripting.
bashports
sudo firewall-cmd --list-services
sudo firewall-cmd --list-ports

Permanent rules
Runtime vs permanent; always --reload after –permanent.
bashperm
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload

Quick Reference
- UFW: UFW vs firewalld
- SSH: harden OpenSSH
Related tutorials
Diagrams are original illustrations by Gnome IT Solutions. Tutorial text © Gnome IT Solutions.