firewall-cmd --list-services

Category: Security & Hardening

firewall-cmd --list-services

List services allowed in the current zone

Shows the named services, like ssh or http, permitted in the active zone. Services are friendlier than raw ports because firewalld knows their ports. To see ports too, use firewall-cmd --list-all.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.