Windows 2008 and netsh routing.
-
Friday, September 03, 2010 11:02 PM
Hi
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
example:
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.
thx :)
- Moved by Vincent HuModerator Monday, September 06, 2010 9:14 AM (From:Server Core)
All Replies
-
Thursday, April 12, 2012 2:05 PM
Hi,
Try netsh routing ip nat add portmapping name="Local Area Connection" tcp 0.0.0.0 22 192.168.0.2:22
Lewis.j.Routledge
-
Thursday, April 12, 2012 2:08 PM
Hi,
Also this link may help;
http://technet.microsoft.com/en-us/library/cc754535(v=ws.10).aspx
Lewis.j.Routledge
-
Thursday, April 12, 2012 4:09 PM
check this link it has a good example
http://www.rickwargo.com/2011/01/08/port-forwarding-port-mapping-on-windows-server-2008-r2/
http://technet.microsoft.com/en-us/library/cc754535(v=ws.10).aspxhttp://www.arabitpro.com

