Is there a way to run just save with firewalld in RHEL7?
The version of firewalld in RHEL 7.0 has no "save" script and no way to copy the running firewall configuration to the permanent configuration. You save a firewall change with firewalld by adding --permanent
to the command line making the change. Without it, any change you make is temporary and will be lost when the system restarts.
For example:
firewall-cmd --add-service=http # Running config
firewall-cmd --add-service=http --permanent # Startup config
Later (post-RHEL 7) versions of firewalld do include a way to save the running configuration, and this is available now in Fedora and in RHEL 7.1. In this case the command is simply:
firewall-cmd --runtime-to-permanent