Configuring the host firewall

A host firewall is a VMware vSphere feature to protect the host against attacks. The host firewall allows or blocks traffic to and from specific host services. You can use PowerCLI to configure the host firewall.

To get a list of all of the PowerCLI cmdlets that you can use to configure a host firewall, type the following command:

PowerCLI C:\> Get-Command -Noun VMHostFirewall*


    CommandType Name                            ModuleName
----------- ----                            ----------
Cmdlet      Get-VMHostFirewallDefaultPolicy VMware.VimAutomation.Core
Cmdlet      Get-VMHostFirewallException     VMware.VimAutomation.Core
Cmdlet      Set-VMHostFirewallDefaultPolicy VMware.VimAutomation.Core
Cmdlet      Set-VMHostFirewallException     VMware.VimAutomation.Core

Getting the host firewall default ...

Get Learning PowerCLI - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.