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

Application listens locally but remote clients cannot connect to the expected TCP/UDP port.

Environment & Reproduction

firewalld zone rules do not permit inbound traffic for the service port.

Root Cause Analysis

Run: sudo firewall-cmd –get-active-zones and sudo firewall-cmd –list-all.

Quick Triage

Confirm app is listening using ss -tulpen and verify interface is in correct firewalld zone.

Step-by-Step Diagnosis

Capture active zone rules before adding new allowances.

Illustrative mockup for rhel-9 β€” rhel9-firewalld-list-ports-01.webp
firewall-cmd output showing missing service port β€” Illustrative mockup β€” Progressive Robot

Solution – Primary Fix

Capture command sequence that adds permanent port access and reloads firewalld.

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-add-port-02.webp
Adding and reloading firewalld rule for app traffic β€” Illustrative mockup β€” Progressive Robot

Solution – Alternative Approaches

Allow port: sudo firewall-cmd –permanent –add-port=8443/tcp.

Verification & Acceptance Criteria

Reload rules: sudo firewall-cmd –reload and verify with firewall-cmd –list-ports.

Rollback Plan

If needed, use service abstraction: sudo firewall-cmd –permanent –add-service=https.

Prevention & Hardening

Test remote connectivity using nc -zv 8443 or curl against application endpoint.

Manage firewalld policy through infrastructure code and change-controlled templates.

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

Remove accidental rule with firewall-cmd –permanent –remove-port=8443/tcp and reload.

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.