On an Enterprise Linux server that uses firewalld, you need to make sure that TCP port 8443 will be open in the public zone after the next reload or reboot without altering the currently active (runtime) rules. Which single command meets this requirement?
The requirement calls for a permanent change only. Adding the --permanent switch tells firewalld to write the rule to its on-disk configuration; that change is not applied to the active ruleset until firewalld is later reloaded or restarted. Omitting --permanent would affect only the runtime configuration, and adding --reload would immediately replace the current runtime settings-both of which violate the scenario. Using --add-service=https does not satisfy the specific port requirement (8443). Therefore, the correct command is:
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the --permanent flag do in firewall-cmd?
Open an interactive chat with Bash
What is the difference between a zone and a service in firewalld?
Open an interactive chat with Bash
Why is it important not to use --reload in this scenario?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Security
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access