Question 430
After a lab configuration change, verify: A standard `http` service should be allowed through firewalld, but the operator adds a broad arbitrary port range. Which result most directly proves the desired system state?
Explanation
Correct Answer
`firewall-cmd --zone=public --list-services` contains `http` and only the required service is exposed. This check confirms the expected effect of: Use `firewall-cmd --zone=public --add-service=http --permanent` and reload after verifying intended interface zone. It distinguishes the intended result from the original failure mechanism: Named firewalld services encode documented port/protocol mappings more precisely than broad ranges.
Incorrect Answers
`ip -6 addr show` lists the address and a local IPv6 connectivity test succeeds. That verifies a separate lab task: An IPv6-only lab application cannot listen because the host connection has no configured static IPv6 address. It does not validate the implementation required here: Use `firewall-cmd --zone=public --add-service=http --permanent` and reload after verifying intended interface zone.
`firewall-cmd --zone=public --list-services` contains SSH and firewalld remains running and enabled. That verifies a separate lab task: A firewall service was accidentally removed from the active zone, and an operator proposes disabling firewalld entirely. It does not validate the implementation required here: Use `firewall-cmd --zone=public --add-service=http --permanent` and reload after verifying intended interface zone.
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: Use `firewall-cmd --zone=public --add-service=http --permanent` and reload after verifying intended interface zone.