Security
A server's management interface is assigned to the internal zone, and its public-facing interface is in the public zone. A monitoring agent listens on TCP port 8443, and that port must be reachable only through the internal zone. Which command adds the rule to the running configuration correctly?
Show the answer
Correct answerD. firewall-cmd --zone=internal --add-port=8443/tcp
The --zone option targets internal, and --add-port needs the port/protocol format. Omitting --zone applies the rule to the default zone, which is often public and so exposes the port on the wrong interface. A bare port number without a protocol is rejected, and --add-service takes a service name, not a port.