Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

firewalld

Direct answer

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.

When to use this

Use it when configuring, checking or troubleshooting firewalld in Linux Security.

First 30 seconds

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.

Operational verification

interface → zone → services/ports → allow

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

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.

Platform / version applicability
Platform and workload security
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformPlatform and workload security
Scope / prerequisiteUse it when configuring, checking or troubleshooting firewalld in Linux Security.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key checks
  • firewall-cmd --state — running
  • firewall-cmd --get-active-zones — zones
  • firewall-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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docPlatform and workload security current

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%
Terminology layer

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.

Aliases that resolve here
dynamic Linux firewallfirewalld zonesfirewall daemon
Embedded reference data

Quick lookup tables

Linux Security → firewalld proof map

Fast scope, effective-state, runtime-evidence and closure boundaries for Linux Security → firewalld.

BoundaryEstablishDoes not establish
ScopeExact host, role, build/kernel, identity, workload and expected controlDoes not prove policy receipt or effective runtime state
Effective stateResultant/loaded policy, precedence, mode, labels/rules/keys and active services/kernel controlsConfiguration presence does not prove enforcement
Runtime evidenceCorrelated events/audit, process/token/credential, packet/syscall and workload resultOne event, clean status or allow/deny does not prove complete security
ClosureOriginal allowed/denied workload works, unsafe state is removed and recovery/regression passCommit, restart, block or compliance result alone is not closure
Confirmation

Confirm action

Continue?