Affected versions: CentOS Stream 9

📖 ~1 min read

Table of contents
  1. Symptom & Impact
  2. Environment & Reproduction
  3. Root Cause Analysis
  4. Quick Triage
  5. Step-by-Step Diagnosis
  6. Solution – Primary Fix
  7. Solution – Alternative Approaches
  8. Verification & Acceptance Criteria
  9. Rollback Plan
  10. Prevention & Hardening
  11. Related Errors & Cross-Refs
  12. References & Further Reading

Symptom & Impact

Inbound traffic to a service is dropped despite the port being ‘open’.

Environment & Reproduction

Interface assigned to the default ‘public’ zone instead of the intended zone.

Root Cause Analysis

firewalld assigns interfaces by NetworkManager connection profile, not interface name.

Quick Triage

firewall-cmd –get-active-zones shows current assignments.

Step-by-Step Diagnosis

Inspect each connection: nmcli c show | grep zone.

Illustrative mockup for centos-stream-9 — firewalld_zone_diag
Diagnostic view for firewalld-zone-misconfig — Illustrative mockup — Progressive Robot

Solution – Primary Fix

Set the zone on the NM connection: nmcli c modify connection.zone ; reload.

Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Illustrative mockup for centos-stream-9 — firewalld_zone_fix
Remediation steps for firewalld-zone-misconfig — Illustrative mockup — Progressive Robot

Solution – Alternative Approaches

Bind the service directly to a zone: firewall-cmd –zone= –add-service= –permanent.

Verification & Acceptance Criteria

firewall-cmd –list-all –zone= shows expected interface and ports.

Rollback Plan

Re-assign the interface back to its previous zone and reload firewalld.

Prevention & Hardening

Use distinct zones per VLAN and store rules in –permanent only.

Related: nftables backend issues and rich-rule ordering.

Related tutorial: View the step-by-step tutorial for centos-stream-9.

View all centos-stream-9 tutorials on the Tutorials Hub →

Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading

firewalld.org docs and Red Hat ‘Configuring firewalls’ guide.

Need Expert Help?

If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today — we respond within one business day.