VMware Cloud Community
JeffreyLi
Contributor
Contributor

How to manage my ESXi host which is behind a Linux server

I set up a ESXi host which is assigned IP 192.168.0.2,

My linux server has two network adapter eth1 (local IP 192.168.0.1) and eth1 (internet IP XXX.XXX.XXX.XXX)

I want to manage my ESXi host through Vsphere Client from my laptop.

What should I do to set my Linux server iptables?

Please, need help.

0 Kudos
1 Reply
athlon_crazy
Virtuoso
Virtuoso

Configure your linux to become a router by enabling ip_forward on your linux box. You can do something like :

■$iptables -t nat -A PREROUTING -p tcp -i eth1 –dport 443 -j DNAT –to 192.168.0.2:902

■$iptables -A FORWARD -p tcp -m state –state NEW –dport 443 -i eth1 -j ACCEPT

Then, in ESXi, configure it to use Linux box as gateway. Don't forget about security &etc since you are accessing from internet.

vcbMC-1.0.6 Beta

vcbMC-1.0.7 Lite

http://www.no-x.org

http://www.no-x.org
0 Kudos