2V0-621 · Question #228
An administrator creates a custom ESXi firewall rule using an XML file, however the rules do not appear in the vSphere Web Client. Which action should the administrator take to correct the problem?
The correct answer is B. Load the new rules using esxcli network firewall refresh. After placing a custom firewall rule XML file in the correct directory, the administrator must run 'esxcli network firewall refresh' to load the new rules without restarting the firewall service.
Question
An administrator creates a custom ESXi firewall rule using an XML file, however the rules do not appear in the vSphere Web Client. Which action should the administrator take to correct the problem?
Options
- ALoad the new rules using esxcli network firewall reload.
- BLoad the new rules using esxcli network firewall refresh.
- CVerify the entries in the XML file and then reboot the ESXi host.
- DRemove the ESXi host from the inventory and add it back.
How the community answered
(41 responses)- A12% (5)
- B78% (32)
- C5% (2)
- D5% (2)
Why each option
After placing a custom firewall rule XML file in the correct directory, the administrator must run 'esxcli network firewall refresh' to load the new rules without restarting the firewall service.
'esxcli network firewall reload' unloads and reloads the entire firewall module rather than simply refreshing rule definitions from XML files, making it the incorrect command for this specific task.
The 'esxcli network firewall refresh' command re-reads the firewall rule XML files from /etc/vmware/firewall/ and applies any new or updated rules to the running firewall configuration, making them visible in the vSphere Web Client without requiring a reboot or full firewall reload.
Rebooting the ESXi host is unnecessary and disruptive - the refresh command is specifically designed to apply new XML-based rules to a live system without a reboot.
Removing and re-adding the host from vCenter inventory is a drastic administrative action that has no effect on loading custom firewall rules defined in local XML files on the host.
Concept tested: ESXi custom firewall rule XML refresh
Source: https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.security.doc/GUID-6B749301-B4A0-4F9C-AA1D-C4A7B4A56D5B.html
Topics
Community Discussion
No community discussion yet for this question.