Intro to Windows 2008 R2 Remote Desktop Gateway


     Remote access to your servers and workstations through terminal services or RDP is an easy way of doing work away from the office. However, without taking into consideration the security of these connections you are opening up a fairly large whole for someone to exploit. There are many applications and scripts available that a would be attacker can use to gain access to these terminal servers if you simply opened up port 3389 to the rest of the world. Windows 2008 introduced the Terminal Server Gateway and is rebranded as the Remote Desktop Gateway in R2. By using this gateway, you not only provide pre-authorized access to you terminal server, you also gain the benefit of using RPC over HTTPS, eliminating the need for additional ports to be open on you firewall and the ability to use RDP behind most corporate firewalls using port 443.

I will explain the steps necessary to configure this service as well as the RDP client in order to access your servers in a more secure manner.

Open Server Manager and select Roles –> Add Roles

image

Select “Remote Desktop Services” from the role list

image

And “Remote Desktop Gateway” from Role Services

image

You will be prompted to add additional services. Click “Add Required Role Services” and click Next

image

When prompted to Choose a Server Authentication Certificate for SSL select “Choose a certificate for SSL encryption later”. We do not currently have a certificate loaded and need IIS to generate the request which we will take care of later in this tutorial.

image

When prompted to Create Authorization Policy for RD Gateway select “Later”

image

On the “Network Policy and Access Services” Select Role Services page ensure the “Network Policy Server” is selected.

image

On the “Web Services (IIS)” Select Role Services accept defaults.

image

On the “Confirm Installation Selections” page ignore the 2 warnings as they will be addressed later.

image

Once complete it is time to move onto configuration.

image

Generate SSL Certificate:

Open Server Manager –> Web Server (IIS) –> Internet Information Services (IIS) –> Hostname –> Server Certificates

image

I have an Enterprise CA so I am selecting “Create Domain Certificate” if you needed to use a third party CA you would select “Create Certificate Request” (3rd party Certificates are not covered in this document)

image

Fill in your appropriate details

image

Select your Online Certificate Authority

image

Assign Certificate to the RD Gateway

Server Manager –> Remote Desktop Services –> RD Gateway Manager –> Hostname –> View or modify certificate properties.

image

Select “Import Certificate”

image

Import the recently created certificate

image

Create connection authorization policy

image

Name your policy

image

On the Requirements tab, Add the Users or Groups you want to have access

image

You can make changes to the other options as you see fit.

Create resource authorization policy

image

Name your policy

image

Select which Users or Groups can connect to remote computers

image

On the Network Resource tab you can specify which resources are available to connect the the RD Gateway. for the purpose of this tutorial we will use “Allow users to connect to any network resource”

image

On the Allowed Ports tab accept the default “Allow connections only through TCP port 3389”

image

Client Configuration

Open Remote Desktop Connection

Enter the host you want to connect to:

image

On the Advanced tab click “Settings” under Connect from anywhere

image

Select “User these TS Gateway server settings” and enter you server name

image

Enter you credentials

image

You should now be connected to your intended host.

You can monitor the remote connections through the Monitoring tab under “RD Gateway Manager” in Server Manager.

image

 

I may cover more of the features and configuration of the RD Gateway at a later time, but for now you should be able to enjoy most of the benefits and security this service provides.

Related Posts with Thumbnails
Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • Twitthis

About the Author

My name is Bobby Shea and I am an Infrastructure Practice Team Lead for EMC Application Consulting. When I am not working I enjoy riding my motorcycle with my wife, spending time with my family, watching NHL Hockey and exploring new technology.