Security

An administrator added several ports and a rich rule to the running firewalld configuration and confirmed that the application works. The changes must now be saved permanently without retyping each one. Which command does this?

Show the answer

Correct answerA. firewall-cmd --runtime-to-permanent

firewall-cmd --runtime-to-permanent writes the current runtime configuration to the permanent configuration. --reload does the opposite: it loads the permanent configuration and discards the runtime-only changes, so the tested rules would be lost.