6.5.1

Table Of Contents
Table 37. Firewall Commands (Continued)
Command Description
esxcli network firewall ruleset set --allowed-all
Set to true to allow all access to all IPs. Set to false to use a list
of allowed IP addresses.
esxcli network firewall ruleset set --enabled --
ruleset-id=<string>
Set enabled to true to enable the specified ruleset. Set enabled
to false to disable the specified ruleset.
esxcli network firewall ruleset allowedip list
List the allowed IP addresses of the specified rule set.
esxcli network firewall ruleset allowedip add
Allow access to the rule set from the specified IP address or
range of IP addresses.
esxcli network firewall ruleset allowedip remove
Remove access to the rule set from the specified IP address or
range of IP addresses.
esxcli network firewall ruleset rule list
List the rules of each ruleset in the firewall.
Firewall Command Examples
The following examples are from a blog post on virtuallyGhetto.
1 Verify a new ruleset called virtuallyGhetto.
esxcli network firewall ruleset rule list | grep virtuallyGhetto
2 Specify specific IP Address or IP ranges to access a particular service. The following example disable
the allow all option and specifies a particular range for the virtuallyGhetto service.
esxcli network firewall ruleset set --allowed-all false --ruleset-id=virtuallyGhetto
esxcli network firewall ruleset allowedip add --ip-address=172.30.0.0/24 --ruleset-
id=virtuallyGhetto
Customizing ESXi Services from the Security Profile
An ESXi host includes several services that are running by default. You can disable services from the
security profile, or enable services a if company policy allows it.
Use the vSphere Web Client to Enable Access to the ESXi Shell is an example of how to enable a
service.
Note Enabling services affects the security of your host. Do not enable a service unless strictly
necessary.
Available services depend on the VIBs that are installed on the ESXi host. You cannot add services
without installing a VIB. Some VMware products, for example, vSphere HA, install VIBs on hosts and
make services and the corresponding firewall ports available.
In a default installation, you can modify the status of the following services from the vSphere Web Client.
vSphere Security
VMware, Inc. 76