firewall-cmd --runtime-to-permanent

Category: Security & Hardening

firewall-cmd --runtime-to-permanent

Save the live firewalld config permanently

Copies every runtime-only rule change into the permanent configuration, so live edits survive a reload or reboot. This is the safe pattern: test with runtime rules first, then commit. Alternatively, edit permanent rules and reload to apply them.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.