Reverse NAT Setup for Hyper-V on Win 2008 R2

Posted by sukru on Server Fault See other posts from Server Fault or by sukru
Published on 2010-08-13T09:15:15Z Indexed on 2013/11/10 10:00 UTC
Read the original article Hit count: 156

I'm trying to setup a Linux server behind a Windows Hyper-V host that will help supply some of the services (SSH, HTTPS, etc). However getting RRAS configured for reverse NAT (port forwarding) turned out to be a non trivial task.

As a staring point, I tried forwarding port 22 (SSH) to the virtual machine. The virtual machine is on a public interface (i.e.: it also has a visible IP on the same network as the host). On RRAS management console I tried to add a rule, by adding "Local Area Connection" to NAT pool (Public Interface -> Enable Nat), and an incoming rule for port 22 -> :22. I also tried with the same port enabled on Windows Firewall (and not).

The NAT management page tells there are "1 mappings" and "30+ Outbound packets transleted". However all other counters (Inbound packets translated, and respective rejected ones) are always zero.

(I'm trying to access the server from an external machine). I can directly access the service if I give the VM's public IP, but not the host's one.

Is there a way to enable this on RRAS?

© Server Fault or respective owner

Related posts about windows-server-2008

Related posts about hyper-v