If security requirements necessitate restricting access to the Host Client, you can follow the steps in this article to configure settings that allow access to the Host Client only from specific IP addresses.
vSphere 7.x
vSphere 8.x
Log in to vCenter Server using the vSphere Client.
Navigate to the host in the inventory.
Click "Configure" and then click "Firewall" under "System".
Click "Incoming".
Click "Configure" in the "Firewall" section.
Select "Ungrouped".
Select the rule set "vSphere Web Client" and click ">" to expand it.
Uncheck the "Allow connections from any IP address" checkbox.
Enter the IP addresses you want to allow connections from in the "IP List" box.
When listing multiple items, separate them with commas as shown in the example below.
192.0.2.1, 192.168.1.0/24
You can specify an IP address in the format shown in the example below.
- 192.0.2.1 (specific IPv4 address)
- 192.0.2.0/24 (IPv4 network address)
- 2001:db8::1/64 (specific IPv6 address)
- 2001:db8::/64 (IPv6 network address)
[Reference]
Activate or Deactivate an ESXi Service.
Add Allowed IP Addresses for an ESXi Host
For information on how to manage ESXi Firewall using ESXCLI, please refer to the following document.