I'm using Windows Server 2008 R2 Enterprise (v6.1 build 7600)
What I'm trying to do is to add a port mapping from any public IP (port 22) to a LAN ip same port, I have VMWare installed with a ubuntu and wish to access ssh with external IP... so I need to forward all WAN connections on port 22 to a IP in my LAN.
I found that netsh do the trick, but I can't get it working on my server
netsh routing ip nat add portmapping name="Local Area Connection" tcp 0.0.0.0 22 192.168.0.2 22
The following command was not found: routing ip nat add portmapping "name=Local
Area Connection" tcp 0.0.0.0 22 192.168.0.2 22.
Or maybe there is another way to do this? I don't wish to use a portforward software.
- Moved by Vincent HuModerator Monday, September 06, 2010 9:14 AM (From:Server Core)
Also this link may help;
check this link it has a good examplehttp://technet.microsoft.com/en-us/library/cc754535(v=ws.10).aspx