commands
firewall-cmd — Inspect active zones
Query active zones on an authorized VM running firewalld. Runtime and permanent configuration differ. Use a fresh private workspace; do not apply to a real system.
Formal Syntax & Structure
linux syntaxlinux
firewall-cmd --get-active-zonesParameters & Attributes
| Name | Type | Description |
|---|---|---|
| --get-active-zones | option | List active zones |
Return Value
exit status and output
The active-zones query prints zones and their associated interfaces or sources. A failed query may indicate unavailable firewalld or authorization; inspect the output instead of assuming every zone is active.
Working Example
Example Snippetlinux
firewall-cmd --get-active-zones