6.0.1

Table Of Contents
Cause
If vCenter Server is using a custom port for the reverse proxy, the custom port is not automatically enabled
in the ESXi firewall and the VIB downloads fail.
Solution
1 Open an SSH connection to the host and log in as root.
2 (Optional) List the existing firewall rules.
esxcli network firewall ruleset list
3 (Optional) Back up the /etc/vmware/firewall/service.xml file.
cp /etc/vmware/firewall/service.xml /etc/vmware/firewall/service.xml.bak
4 Edit the access permissions of the service.xml file to allow writes by running the chmod command.
n
To allow writes, run chmod 644/etc/vmware/firewall/service.xml.
n
To toggle the sticky bit flag, run chmod +t /etc/vmware/firewall/service.xml.
5 Open the service.xml file in a text editor.
6 Add a new rule to the service.xml file that enables the custom port for the vCenter Server reverse
proxy .
<service id='id_value'>
<id>vcenterrhttpproxy</id>
<rule id='0000'>
<direction>outbound</direction>
<protocol>tcp</protocol>
<port type='dst'>custom_reverse_proxy_port</port>
</rule>
<enabled>true</enabled>
<required>false</required>
</service>
Where id_value must be a unique value, for example, if the last listed service in the service.xml file has
ID 0040, you must enter id number 0041.
7 Revert the access permissions of the service.xml file to the default read-only setting.
chmod 444 /etc/vmware/firewall/service.xml
8 Refresh the firewall rules for the changes to take effect.
esxcli network firewall refresh
9 (Optional) List the updated rule set to confirm the change.
esxcli network firewall ruleset list
vSphere Troubleshooting
34 VMware, Inc.