Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

Configuring Terminal Services Gateway of Windows Server 2008

Learn the key facts about Configuring Terminal Services Gateway of Windows Server 2008, with clear context, practical guidance, and useful takeaways.

Table of Contents

This updated guide examines Configuring Terminal Services Gateway of Windows Server 2008 and organizes the essential facts, background, and practical takeaways in clear American English.

Thomas Shinder

In the first part of this series, we did the basic installation for Terminal Services and Terminal Services registration and configured the Terminal Services subscription mode.In this section, we will introduce the installation and configuration of TS Gateway and RDP client.Then create a connection and check how it works.

Install Terminal Services Gateway Service on Terminal Services Gateway

Now we turn our attention to Terminal Services Gateway. This is the computer that external clients will connect to initially when creating their Terminal Services client connections.

Follow the steps below to install Terminal Services Gateway on Terminal Services Gateway.

  1. Open Server Manager on the Terminal Services Gateway computer. Click the Roles button in the left pane of the console, then click the Add Role link in the right pane.
  2. Click Next on the Before You Begin page.
  3. On the Select Server Roles page, check the Terminal Services checkbox
  4. On the Terminal Services page, click Next .
  5. On the Select Role Services page, check the TS Gateway checkbox . You will then see an Add Roles Wizard dialog box asking if you want to Add roles services and features required for TS Gateway . Click the Add Required Role Services button.

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 2 Figure 1

  1. Click Next on the Select Role Services page
  2. In the Choose a Server Authentication Certificate page for SSL Encryption , select the option Choose a certificate for SSL encryption later . Selecting this option is because we have not yet created a certificate for the TS Gateway to use the SSL connection between itself and RDP clients. We will require a certificate later and then configure the TS Gateway to use the certificate. Click Next .

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 3 Figure 2

  1. In the Create Authorization Policies for TS Gateway page, select the Later option. Selecting this option is because we want to include you in the TS Gateway console and show you how to configure authentication policies in this console. Click Next.

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 4 Figure 3

  1. Click Next on the Network Policy and Access Services page
  2. On the Select Role Services page, check the Network Policy Server checkbox, and then click Next .

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 5 Figure 4

  1. On the Web Server page (IIS) , click Next
  2. On the Select Role Services page, accept the default role services selected by the utility. There are a number of services needed to run the TS Gateway service. Click Next .

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 6 Figure 5

  1. Review all information on Confirm Installation Selections and click Install .

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 7 Figure 6

  1. Click Close on the Installation Results page to show that the installation was successful.

Request a certificate for Terminal Services Gateway

Now we can request a certificate that the internet site on the TS Gateway can use to establish SSL connections with the RDP client.

Follow the steps below to request a certificate for the TS Gateway machine:

  1. From the Administrative Tools menu, click Internet Information Services (IIS) Manager .
  2. In the Internet Information Services (IIS) Manager console, click the server name in the left pane of the console. Double-click the Server Certificates icon in the middle of this interface.

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 8 Figure 7

  1. In the left part of the console, click on the Create Domain Certificate link.

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 9 Figure 8

  1. On the Distinguished Name Properties page, enter the information specified in this page. The most important item is Common name. The name you enter here must be the same name that the Terminal Services client has been configured to use to communicate with the TS Gateway computer. This is also the name that shared DNS servers will be configured to provide a generic address to allow access to TS Gateway. In most cases, this part will be a router or an external interface of a NAT device, or perhaps the external interface of an advanced firewall such as Microsoft ISA Firewall. Click Next .

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 10 Figure 9

  1. On the Online Certification Authority page , click the Select button . In the Select Certification Authority dialog box , select the Enterprise CA name to which you want to collect the certificate. Remember that we can obtain this domain certificate and automatically install it because we are using an Enterprise CA. If you are using a standalone CA, you will have to use the internet enrollment site and that will only be possible after you have created an offline request, then you must manually install the computer's certificate. Click OK after selecting Enterprise CA.

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 11 Figure 10

  1. Enter a Friendly name name on the Online Certification Authority page. In this example we will name a certificate as TSG Cert . Click Finish.

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 12 Figure 11

  1. After receiving a certificate, you will see the certificate-related information in the middle pane of the console. If you double-click the certificate, you will see the Certificate dialog, which is the dialog box that displays the generic name in the Issued to field and informs You that there is a private key that corresponds to this certificate . This is very important because the certificate will not work if you do not have a private key. Click OK to close the Certificate dialog box .

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 13 Figure 12

Configure Terminal Services Gateway to use Certificate

With the certificate installed in your computer's certificate store, you can assign the TS Gateway to use this certificate.

Follow the steps below to configure the TS Gateway to use that certificate:

  1. In the Administrative Tools console, click on the Terminal Services entry, then click TS Gateway .
  2. In the TS Gateway Manager , click on the name of the TS Gateway computer in the left pane of the console. The middle pane provides a lot of useful information about the configuration steps that need to be completed to finish the installation. Click the View or modify certificate properties link.

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 14 Figure 13

  1. In the Properties dialog box for the TS Gateway, on the SSL Certificate tab, the Select feature has an existing certificate for SSL encryption to be enabled and then click the Browse Certificates button . This will bring up the Install Certificate dialog box. Click the certificate, in this case tsg.msfirewall.org , and then click the Install button .

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 15 Figure 14

  1. The SSL Certificate tab will display information about the certificate that the TS Gateway will use to establish SSL connections. Click OK .

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 16 Figure 15

  1. The content of the middle pane changes a bit, reflecting that the certificate is now installed on the TS Gateway. However, at this point we will see the Configuration Status section to create both the connection authentication policy and the resource authentication policy.

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 17 Figure 16

Create a Terminal Services Gateway CAP

CAP is an abbreviation for Connection Authorization Policy, which allows you to control who can connect to the Terminal Server through the Terminal Services Gateway.

Follow the steps below to create a connection authentication policy:

  1. In the left pane of the console, click the Connection Authorization Policies button located under the Policies . In the right pane of the interface, click the arrow to the right of Create New Policy and then click Wizard .

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 18 Figure 17

  1. On the Authorization Policies page, select Create only a TS CAP . Click Next .

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 19 Figure 18

  1. On the Connection Authorization Policy page, enter a name for CAP. In this example we will name CAP as General CAP . Click Next .

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 20 Figure 19

  1. On the Requirements page, check the Password checkbox . If you plan to use smart card authentication, then choose the Smartcard option. Now you need to configure which groups can access the Terminal Server through TS Gateway. To do so, click the Add Group button. In the Select Groups dialog box, enter the name of the group you want to allow access and click Check Names . In this example, we enter Domain Users and then click OK .

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 21 Figure 20

  1. Notice on the Requirements page that you can choose the option to create computer groups and allow access to specific computers only. We will not configure this option in this example. Click Next .

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 22 Figure 21

  1. On the Device Redirection page, select the option Enable device redirection for all client devices. Note that if you want a better security environment, consider choosing the Disable device redirection option for the following client device types then select Drives and Clipboard . For better security you can also choose Disable device redirection for all except devices for smart devices . Click Next .

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 23 Figure 22

  1. On the Summary of TS CAP Settings page , read the results of your selections, then click Finish .

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 24 Figure 23

  1. Click Close on the Confirm Policy Creation page

Create Terminal Services Gateway RAP

RAP stands for Resource Authorization Policy, which is the policy we need to create. RAP is used to control which Terminal Server can be accessed via Terminal Services Gateway.

Follow the steps below to create a RAP:

  1. Click the Resource Authorization Policies button in the left pane of the TS Gateway Manager console. In the right pane of the interface, click the arrow to the right of the Create New Policy link and then click Wizard .

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 25 Figure 24

  1. On the Authorization Policies page, select the Create only a TS RAP option.

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 26 Figure 25

  1. On the Resource Authorization Policy page, name RAP in the Enter a name box for the TS RAP . In this example we will name RAP as General RAP . Click Next .

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 27 Figure 26

  1. In the User Groups page, select the user groups RAP will apply. This will allow you to make more informed adjustments about which users have access to Terminal Servers. Some groups may be allowed to access Terminal Server A and some may want to access Terminal Server B. RAP allows you to implement this type of control. In this example, click the Add Group button and add the Domain Users group. Click Next .

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 28 Figure 27

  1. On the Computer Group page, you have an option to define which Terminal Servers can be accessed through this RAP. You also have the option of selecting a group of Active Directory defined computers, or you can create a TS Gateway management group. In this example, since there is only one Terminal Server, we choose the simplest option, Allow users to connect to any network resource (computer). This option will allow users to connect to all Terminal Servers in the network. Click Next.

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 29 Figure 28

  1. On the TS Rap summary page, confirm your settings and click Finish .

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 30 Figure 29

  1. Click Close on the Confirm Policy Creation page
  2. Click on the server name in the left pane of the console. You will then see that there are no more issues that we need to manage in the middle pane. Now TS Gateway is ready to manage new incoming connections to the Terminal Server in the network.

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 31 Figure 30

Configure RDP Client to use Terminal Services Gateway

If you're at home, Terminal Server and TS Gateway are now configured and ready to perform some other tasks. The final step here is to configure the RDP client on the Vista computer. We need to configure the Terminal Server name of the client to be connected and the name of the Terminal Services Gateway computer that will be used for the Terminal Server.

Note : We have configured the Vista client with an HOSTS file item tsg.msfirewall.org so that it will identify the Terminal Services Gateway name for the IP address of the external interface of the NAT device on the front of the network.

Follow the steps below to configure RDP client on Windows Vista:

  1. On the Vista computer, click the Start button, then click Accessories . Double-click Remote Desktop Connection .
  2. In the Remote Desktop Connection dialog box , in theGeneral tab, enter the computer name of the Terminal Server in the Computer text box . Enter the username in the username text box. If you want the client to save this important information, check the Allow me to save credentials checkbox .

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 32 Figure 31

  1. Click the Advanced tab. In Server authentication , Warn me must be selected. Click the Settings button in the Connect from anywhere Connect from anywhere section.

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 33 Figure 32

  1. In the TS Gateway Server Settings dialog box , select the Use these TS Gateway server settings option . Enter the name of the TS Gateway in the Server name box. With the Logon method , select Ask for password (NTLM) . Note that the Automatically detect TS Gateway server settings option will allow you to configure the RDP client to pull its settings through Group Policy. Click OK .

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 34 Figure 33

  1. Click on the General tab, then click Connect .

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 35 Figure 3 * 4

  1. A Windows Security dialog box will appear. Enter your password then click OK .

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 36 Figure 35

  1. The Terminal Services session will open and you can see the desktop and running applications for your account in the Terminal Services session.

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 37 Figure 36

  1. Go to the TS Gateway and click on the Monitoring button in the left pane of the Terminal Services Gateway console. Here you can see information about Terminal Services sessions going through TS Gateway.

Configuring Terminal Services Gateway of Windows Server 2008 — contextual image 38 Figure 37

Conclude

In the second part of this series, we installed and configured the TS Gateway and RDP clients. Then connect to the TS Gateway and Terminal Server via TS Gateway. We have also seen that the TS Gateway node test provides a lot of useful information about who is connecting to the Terminal Server through the TS Gateway.

FAQ

What is Configuring Terminal Services Gateway of Windows Server 2008 about?

It provides a structured overview of click, explains the main context, and highlights practical takeaways for readers.

Why does this topic matter?

Understanding the main concepts helps readers evaluate the issue, avoid common mistakes, and make better-informed decisions.

How should readers use this information?

Use the guidance as a practical starting point, confirm details that may have changed, and follow current product, safety, or security recommendations.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.