I have a number of Windows VM's running on a Windows Hyper-V host (Windows Server 2016) and I need to be able to access the guests via RDP across the Internet but do not want to have to give them all a public IP address. The host has a public facing IP address and I can access the host via RDP no problem via the default port 3389.
What I'd like to do is NAT ports to the guest VM's to be able to access them via the hosts public IP address plus a port number and then NAT that port number to the guest VM.
So for example:
Host Public IP address is (for example) 8.8.8.8 and VM1 has private IP address 172.26.0.1
I'd like to NAT 8.8.8.8:3390 to 172.26.0.1:3389 then 8.8.8.8:3391 to 172.26.0.2:3389 etc...
To give the VM's internet access I have shared the hosts network adaptor and created a virtual switch which I've enabled on each VM and they can reach the internet but of course there is no route back to them (for the RDP session).(
Could someone kindly point me in the right direction to accomplish this?
Thanks.