Question 470
You have attempted this task on a local virtualization classroom: A firewall rule was added to the default zone, but the application's NIC is assigned to a different active zone. Which command output or observation best confirms its success?
Explanation
Correct Answer
An authorized client connects and the correct zone reports the service or port. This check confirms the expected effect of: Identify interface zone with `firewall-cmd --get-active-zones`, then apply the approved rule to the interface's actual zone. It distinguishes the intended result from the original failure mechanism: Firewall policy is evaluated in the context of the active interface or source zone, not an assumed default.
Incorrect Answers
After reconnect or reboot `nmcli con show` and `ip addr` still report the address. That verifies a separate lab task: A technician adds an IPv4 address with `ip addr add`, but it disappears after reboot. It does not validate the implementation required here: Identify interface zone with `firewall-cmd --get-active-zones`, then apply the approved rule to the interface's actual zone.
The profile reflects changed settings and existing remote management remains recoverable. That verifies a separate lab task: A new network connection profile was edited but the operator attempts an unsafe remote restart of all networking services. It does not validate the implementation required here: Identify interface zone with `firewall-cmd --get-active-zones`, then apply the approved rule to the interface's actual zone.
A test from the management subnet succeeds and an unauthorized source is denied. That verifies a separate lab task: The server needs HTTPS only from one lab management subnet instead of from every source in the public zone. It does not validate the implementation required here: Identify interface zone with `firewall-cmd --get-active-zones`, then apply the approved rule to the interface's actual zone.