보안

ESXi 6, 7 웹인터페이스 443포트 변경

T8.CO.KR 2026. 9. 22. 13:51

80번 포트를 바꾸면 esxcli 명령에 에러가 난다.
이 포트와 연관된 서비스들이 많아서다.
80번 포트로 접속하면 443포트가 프록시하게 돼 있다.
프록시 포트를 변경해서 보안을 도모한다.

1. 포트 수정

vi /etc/vmware/rhttpproxy/config.xml


<httpsPort>4403</httpsPort>


2. 서비스 재시작
/etc/init.d/rhttpproxy restart


3. 수정

vi /etc/vmware/firewall/.webgui.xml
<ConfigRoot>
 <service>
 <id>HTTPs</id>
  <rule id='0000'>
   <direction>inbound</direction>
   <protocol>tcp</protocol>
   <porttype>dst</porttype>
   <port>4403</port>
  </rule>
  <enabled>true</enabled>
  <required>false</required>
 </service>
</ConfigRoot>


4. 적용
esxcli network firewall refresh
cp /etc/vmware/firewall/.webgui.xml /vmfs/volumes/datastore1/


5. 부팅시 적용

vi /etc/rc.local.d/local.sh
cp /vmfs/volumes/datastore1/.webgui.xml /etc/vmware/firewall/
esxcli network firewall refresh
exit 0