The ESXi firewall ports and services are configured together. These services pass through the firewall embedded into the hypervisor if they are enabled.
Services must be initially be defined using the CLI but can then be managed via the Web Client

First change the directory to /etc/vmware/firewall

The easiest option is to copy one of the existing services and modify it accordingly. So lets have a look at the existing services.xml




I created a new xml file in the /etc/vmware/firewall directory. Below a example service:


In the next step we need to load our changes using the esxcli command

Now we can see the result from the vSphere Web Client