📖 ~1 min read
Table of contents
Symptom & Impact
Opened ports work temporarily but close after system reboot.
Environment & Reproduction
firewall-cmd –list-ports differs between runtime and permanent configs.
Root Cause Analysis
Run firewall-cmd –runtime-to-permanent check and inspect active zone.
Quick Triage
Rules were added without –permanent or placed in wrong zone.
Step-by-Step Diagnosis
Re-add ports with –permanent and reload firewalld.

Solution – Primary Fix
After reboot, confirm firewall-cmd –list-all still shows expected rules.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Standardize zone assignment and persistent rule automation.
Verification & Acceptance Criteria
Remove accidental rules using firewall-cmd –permanent –remove-port.
Rollback Plan
Manage rules via firewall system role or Ansible modules.
Prevention & Hardening
firewall-cmd –add-service=http –permanent; firewall-cmd –reload
Related Errors & Cross-Refs
Provide zone XML from /etc/firewalld and service exposure requirements.
Related tutorial: View the step-by-step tutorial for oracle-linux-10.
View all oracle-linux-10 tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
NetworkManager connection zone bindings can override expectations.
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.