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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.