I have Windows 2008 server. It works as a mail, ftp, web server. In my LAN there is other server and i want to reach this server with RDC from outside my lan, (example: domail.com:5555 -> 192.168.0.2:3389). Is there any solution to forward this port using Windows Firewall?
|
feedback
|
migrated from superuser.com Sep 21 '09 at 8:04
This question came from our site for computer enthusiasts and power users.
|
If your Windows server is behind a NAT device then I would recommend creating a port forwarding rule on your NAT that can accept an inbound connection on TCP/5555 and then forward to TCP/3389. This way you aren't modifying the server. Also, if you have more than one server you would like to connect via RDP then I would recommend you check out Windows 2008 Terminal Services Gateway. | |||
|
feedback
|
|
Try the following:
This rule shall forward any incoming connection to port 5555 from outside to your specific LAN IP/port. Here external is the name of the external network interface. Don't forget to have proper firewall rules that will allow traffic related to port 5555 to pass in both directions on the external NIC. You need to allow incoming traffic to port 5555 and outgoing traffic related to these connections. I've never used the built-in Windows firewall, but I strongly suggest you to have a look at wipfw. It is smart enough to implement connection tracking. | |||||
feedback
|
|
If you want to use port forwarding as your scenario; you should "add role: RRAS" and manage NAT rules under RRAS in Administrative Tools. Actually, isvery simple in 2K3 but 2k8? I'm shocked and disappointed | |||
|
feedback
|
|
Reproduced from this article:
Please note that you would need to open the firewall to allow incoming connection on the new port. Also, don't forget to take some precautions before editing the registry, such as creating a system restore point. | |||
|
feedback
|
|
First of all, W2K3's firewall can do that. But W2K8's firewall or advanced firewall cannot do this. Aditional info: "netsh routing..." command doesn't works on W2K8 in any combination (sdvfirewall, firewall etc.). I'm sorry:( | |||
|
feedback
|
|
netsh routing... command works well unter windows server 2008 r2 enterprise | |||
|
feedback
|
|
Just a suggestion but why not add a Remote Desktop Gateway. It's a built in role with W2K8+ that runs over SSL/443 which makes it pretty easy to route over any firewall. In addition you can then setup rules and use a Network Policy Server and rules to really control at a granular level who can access your server. Since you are already running a Web Server this may be the most secure solution. It will also allow you to RDP into any server behind the firewall without having to make any modifications to the firewall. Works great at my multiple sites and it is VERY secure. | |||
|
feedback
|
|
Is your Server 2008 R2 box acting as the 'head of your network', or simply put, your router? If not, then you need to make these changes to your router/firewall at the front of your network. Setup the port forward exactly as you described above, forwarding the inbound port of 5555 to (serverip):3389 By default, if you do not set the destination port to 3389, it will not work without a registry change to the server you're connecting to. | |||
|
feedback
|
