ESXi host is establishing connections with the IPs that are blocked in firewall rules
For example, the below setting will not block any IPs other than the IPs under IP list even though Allow connections from any IP address is not checked.
This will occur if the default firewall action is set to "PASS". This system default value is "DROP"
To get the current default action, run the below command.
esxcli network firewall get
Default Action: PASS Enabled: true Loaded: true
Set the default firewall action to "DROP" using the below command.
esxcli network firewall set -d FALSE
Possible actions:
True: PASS : It will allow the packets from the all the hosts despite the deny list
False: DROP: It will deny the packets from the hosts that are set under deny list
If the vCenter IP is not listed under vSphere Web Client ( Port 443, 903) your host might lose the connection to vCenter. Make sure to add vCenter before you apply the setting.