If you are familiar with Kimsufi from OVH which provide really cheap servers but just one IPv4 and IPv6 address with it. When you get a good hardware for really cheap, you would probably want it virtualized and vmware will be the obvious choice.
How to setup Kimsufi vmware with just one IPv4 and IPv6?
If you talk to a Kimsufi vmware expert, he would say you need one public ip for vmware management and each IP for each of your Virtual Servers you create.
Since we got a IPv4 and a IPv6 address, we technically have two IPs. Obviously when you install ESXi, your public IPv4 will be assigned as vmware management address. What we will be doing is assign IPv6 as our management IP address.
- Once you installed ESXi on your new server, login with vsphere client.
- Under Configuration -> Networking
- Open properties of vSwitch 0
- Edit Management Network and go to IP Settings
- Add your IPv6 as static IP address.
- Ensure that IPv6 gateway is correct and click ok to save the new configuration
You are all set to use IPv6 as your management address. Now open Vsphere client and test to see if you are able to use IPv6 to connect to your server. Once you have confirmed you can connect using IPv6, release the IPv4 address by selecting No IP Settings for IPv4 under properties of Management Network.
Note: Your ISP need to support IPv6 protocol to use an IPv6 address to connect using Vsphere client.
Use single IPv4 address to across multiple virtual machines using NAT port mapping
Using pfSense firewall you can NAT your IPv4 address and distribute it multiple Virtual server in your network.
- We need to create a new virtual switch in vmware for our LAN network.
- Once created add all your virtual servers network card to this port group.
- Create a new virtual machine with two network cards. One network card should in your LAN and the other should be on vm network connecting to physical card of your ESXi
- Install pfSense. You can download it for free from pfsense website.
- Once pfSense is installed, assign your public IPv4 address to the WAN interface and a private IPv4 address to your LAN interface.
- Now from any of your Virtual server open web console of pfSense by entering its LAN ip in a web browser.
- Go to Firewall -> NAT
- The trick here is to create port mapping rule. If you are running a webserver then you would probably map port 80 to LAN IP of that server. So any request hitting port 80 of your public IP will be redirected to your webserver. Similarly for other servers you can map each port like 3389 for RDP.
- Ensure that you assign private IPv4 address in the same range as pfSense to your virtual servers with pfSense as gateway.
Add a private IPv4 address to manage Kimsufi vmware within VM network
Now you have IPv6 access to Kimsufi vmware, sometimes it is hard to connect using IPv6 if your ISP won’t support.
- In the new LAN switch you have created in above step, add a new vmkernal connection.
- Under properties, edit Management Network and go to IP Settings
- Assign a IPv4 private IP in the same range as of other virtual servers with pfSense as gateway.
- Remote into any of your virtual servers and install Vsphere to manage your server using the private IP.
Below is the screenshot of my vmware setup performing the above steps.
You can also refer a detailed french PDF document on this setup(use Google Translate if you don’t know french). Please drop a comment below if you need any help with this setup.