An administrator needs to allow incoming TCP traffic on port 8443 using firewalld. Which command should be used to make this change persistent?
Trap 1: firewall-cmd --zone=public --add-port=8443/tcp
Missing --permanent; also no reload.
Trap 2: firewall-cmd --add-service=8443/tcp --permanent
--add-service is for service names, not ports.
Trap 3: firewall-cmd --add-port=8443/tcp
Missing --permanent; change will not survive reload.
- A
firewall-cmd --zone=public --add-port=8443/tcp
Why it fails: Missing --permanent; also no reload.
- B
firewall-cmd --add-service=8443/tcp --permanent
Why it fails: --add-service is for service names, not ports.
- C
firewall-cmd --add-port=8443/tcp
Why it fails: Missing --permanent; change will not survive reload.
- D
firewall-cmd --add-port=8443/tcp --permanent && firewall-cmd --reload
The --permanent flag writes the rule into firewalld's runtime-to-permanent configuration, so it survives reboot; --reload then applies it immediately. Omitting --permanent would leave the port open only until the next reload or restart, failing the persistence requirement.