Use it when configuring, checking or troubleshooting firewalld in Linux Security.
firewalld
firewalld is a dynamic firewall manager exposing zones, services, ports, rich rules, policies and direct/passthrough constructs while maintaining separate runtime and permanent configurations over a Netfilter backend.
1. firewalld manages nftables via zones and services (RHEL/Fedora).
2. Assign interfaces to zones.
3. Use --permanent then --reload.
4. Rich rules for complex cases.
5. Check runtime vs permanent.
interface → zone → services/ports → allow
Context & applicabilityCommon mistakes · platform/version boundaries
A firewalld runtime object shows manager intent for current state, but it does not show persistence, backend rule reachability or application delivery.
Suspicious evidence: runtime/permanent drift, wrong default zone, overlapping source zone, direct-rule conflict, reload removes exception, backend mismatch, service definition broad or interface unmanaged.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
interface/source and route → active zone/policy → runtime firewalld objects → backend Netfilter rules → packet verdict → log/endpoint → permanent reload state
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Permanent firewalld rule ≠ active runtime rule until loaded.
- Interface in zone ≠ every source/path classified as expected.
- Configuration file present ≠ parsed, loaded and effective runtime state.
- One allow/deny result ≠ complete DAC, privilege, LSM, firewall and application outcome.
firewall-cmd --state— runningfirewall-cmd --get-active-zones— zonesfirewall-cmd --list-all --zone=<zone>— services/ports
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
A firewalld runtime object shows manager intent for current state, but it does not show persistence, backend rule reachability or application delivery.
In depth
firewalld is the dynamic firewall manager on RHEL, Fedora and SUSE. It organises rules into zones (trust levels) assigned to interfaces or source networks, and supports runtime changes without dropping connections.
firewall-cmd --get-active-zones
firewall-cmd --zone=public --list-all
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --permanent --zone=public --remove-service=ssh
firewall-cmd --permanent --new-zone=mgmt
firewall-cmd --permanent --zone=mgmt --add-source=10.0.10.0/24 --add-service=ssh
firewall-cmd --reload
Using a source-based management zone is an easy way to allow SSH only from admin networks. Changes without --permanent are lost at reload — make them permanent once tested.
ReferenceConfiguration & state1 section · depth on demand
Commands
firewall-cmd --get-active-zones
firewall-cmd --zone=public --list-all
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --permanent --zone=internal --add-source=10.99.0.0/24
firewall-cmd --reload
Documented example, not captured output. Without --permanent, changes are lost on reload; with it, they apply only after --reload. Default on RHEL, Fedora and SUSE.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Linux Security → firewalld. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/security/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Linux Security → firewalld proof map
Fast scope, effective-state, runtime-evidence and closure boundaries for Linux Security → firewalld.
| Boundary | Establish | Does not establish |
|---|---|---|
| Scope | Exact host, role, build/kernel, identity, workload and expected control | Does not prove policy receipt or effective runtime state |
| Effective state | Resultant/loaded policy, precedence, mode, labels/rules/keys and active services/kernel controls | Configuration presence does not prove enforcement |
| Runtime evidence | Correlated events/audit, process/token/credential, packet/syscall and workload result | One event, clean status or allow/deny does not prove complete security |
| Closure | Original allowed/denied workload works, unsafe state is removed and recovery/regression pass | Commit, restart, block or compliance result alone is not closure |