πŸ“– ~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

Clients cannot connect even though the process is listening on the expected TCP or UDP port.

Environment & Reproduction

The port is not allowed in the active firewalld zone bound to the server interface.

Root Cause Analysis

Run sudo firewall-cmd –get-active-zones and sudo firewall-cmd –zone= –list-ports.

Quick Triage

Confirm service bind and listening state with ss -tulpen before changing firewall policy.

Step-by-Step Diagnosis

Allow the port permanently using sudo firewall-cmd –zone= –add-port=8443/tcp –permanent.

Illustrative mockup for rhel-9 β€” rhel9-firewalld-active-zone.webp
Checking active zones and interfaces in firewalld β€” Illustrative mockup β€” Progressive Robot

Solution – Primary Fix

Apply new rules with sudo firewall-cmd –reload and test connectivity from a remote host.

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 rhel-9 β€” rhel9-firewalld-open-port.webp
Adding a permanent TCP port rule and reloading firewalld β€” Illustrative mockup β€” Progressive Robot

Solution – Alternative Approaches

Verify rule persistence with sudo firewall-cmd –zone= –list-ports after reboot.

Verification & Acceptance Criteria

Remove incorrect rule using sudo firewall-cmd –zone= –remove-port=8443/tcp –permanent.

Rollback Plan

Define firewalld zone and port standards in deployment documentation and IaC templates.

Prevention & Hardening

Monitor rejected traffic counters and journalctl firewalld events for policy drift.

Use firewall system role or Ansible firewalld module to apply deterministic rules.

Related tutorial: View the step-by-step tutorial for rhel-9.

View all rhel-9 tutorials on the Tutorials Hub β†’

Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading

Review firewalld rich rules and zone concepts in RHEL 9 networking documentation.

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.