Security
The ssh service has been removed from the public zone on a server. Administrators on the 192.168.10.0/24 network must still be able to connect over SSH, and no other source should gain SSH access. Which command adds the correct rule to the public zone's runtime configuration?
Show the answer
Correct answerC. firewall-cmd --zone=public --add-rich-rule='rule family="ipv4" source address="192.168.10.0/24" service name="ssh" accept'
A rich rule with the source address of the admin network, the ssh service and the accept action permits only that network. The drop version would block the admins, and a destination address matches traffic sent to that network rather than traffic coming from it. A port element also needs a protocol, so that rule is invalid.