VMware Cloud Community
GlobalVisionIT
Contributor
Contributor

Change ESXi 7.0 firewall HTTPS port

Hi,

I need to change the default port for HTTPS from 443 to another number for my ESXi 7.0 u3 server so I can acces Web Ui using a port other then 443.

I found a simple solution to do everything on version 6.7 and it works great:
- I change the /etc/vmware/rhttpproxy/config.xml files

- also the /etc/vmware/firewall/service.xml file

- update the script in /etc/rc.local.d/local.sh to copy those files and to refresh firewall (esxcli network firewall refresh)

and on reboot it works perfectly !

Unfortunately the same solution does not work on 7.0: config.xml is changed correctly and the port is updated with the one I want, but service.xml remains as default, the firewall remains by default and therefore nothing works.

So now the HTTPS port is the new one I want but the firewall rule is still set to 443.

Anyone know how to change the port number of the firewall rule on ESXi 7.0 ?

 

Many thanks in advance!

Labels (1)
0 Kudos
0 Replies