09 February 2008

Terminal Services Gateway and Terminal Services Web Access using Hyper-V (Part 2)

Part two of my weekend project involves a little reconfiguration of my ISA 2006 Server to allow RPC access to the Terminal Services gateway running as a virtual machine under Hyper-V beta. There’s really three rules involved in the ISA server – one to forward the RPC traffic, and two for the TS Web Access. If you followed my series of blog posts a couple of years back to get Exchange published through ISA, the process is very similar as I wanted a forms based authentication mechanism. This post focuses on the RPC traffic rule.

(Of course, my ISA server too is a Virtual Machine, but running under Virtual Server 2005 R2 SP1 rather than Hyper-V. I’ll be gradually moving all my test infrastructure across to Windows Server 2008 and Hyper-V over the next few months.)


The ISA rule is concerned with RPC over HTTP(s) traffic to make sure it gets routed from the external network (ie the Internet) through to the Terminal Server itself.

ISAConfig1


The rule is using an external listener on port 443 (HTTPS). I already had a certificate issued from my Certificate Authority for my external domain name (the machine to which users connect to externally).  The basic configuration, tab by tab as shown in the ISA rule is:

  • General:  Just a name you choose
  • Action: Allow
  • From: External
  • To: DNS name of the internal machine with requests appearing to come from the original client
  • Traffic: HTTPS
  • Listener: An external listener on port 443 using a certificate issued matching the external DNS name
  • Public Name: Requests only for the appropriate external name
  • Paths: External Path <same as internal>, Internal Path /rpc/*
  • Authentication Delegation: No delegation, but client may authenticate directly
  • Application Settings:  Defaults
  • Bridging: Redirect to SSL on port 443 (In other words, we use SSL to connect from ISA to TS)
  • Users: As required
  • Schedule: Always
  • Link Translation: None.

In other words, this rule says “Any 'https://externaldomain.com/rpc/<whatever>' requests should be forwarded to the TS gateway machine using an SSL connection between ISA and the TS gateway”.  All being well, let’s see what the user experience is now… remote desktop over the Internet.  From a client machine (Vista SP1 in my case), start "mstsc /console" and drop down the options. On the general tab, enter the internal DNS name of the target machine to connect to (the TS gateway in this example)

mstsc1


Now switch over to the Advanced tab and click on Settings under the “Connect from anywhere” box. Select “Use these TS Gateway server settings” and enter the external DNS name of your external ISA listener on the Internet. Note that I have de-selected “Use my TS Gateway credentials for the remote computer” to allow me to authenticate to the TS Gateway as myself, but authenticate to the machine I’m logging onto with a different account.

mstsc2


Now click connect. At this point, you are prompted to provide credentials to authenticate to the TS gateway. Remember in the previous post, I made sure a domain group of which I’m a member of is allowed access, so here I enter my own logon details.

mstsc3


Next you are prompted to provide credentials to logon to the remote desktop. In this example, I’m logging on to the TS gateway using the “TSAdmin” domain account I created earlier.

mstsc4


And there you have it. Here’s the desktop of the TS Gateway machine connected over the Internet running TS Gateway Manager monitoring connections. Here you can see I’m connected.

mstsc5

Cheers,
John.

 

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# My Domains » Blog Archive » Terminal Services Gateway and Terminal Services Web Access using Hyper-V (Part 2) said:

PingBack from http://www.mydomains.co.cc/terminal-services-gateway-and-terminal-services-web-access-using-hyper-v-part-2

10 February 08 at 8:56 AM
# Virtual PC Guy's WebLog said:

Sorry for the dearth of posts - I have been rather busy lately.&#160; As such I thought I would quickly

12 February 08 at 7:21 PM
# Noticias externas said:

Sorry for the dearth of posts - I have been rather busy lately.&#160; As such I thought I would quickly

12 February 08 at 7:47 PM
# Dale Unroe said:

I am curious as the TS RemoteApp website is https://externalname.com/TS why your Web Publishing rule only provides for /RPC/*.

You initially stated you created three rules for everything to work but then you only detailed the creation of one.   Could you please clarify this?  The Step-By-Step Guide for TSG only details one rule and I've not had success yet with that one rule.  Is it three? If so what are the other two?

TIA - Dale

16 April 08 at 12:08 AM
# jhoward said:

Dale - take a look at my blogcasts from a couple of years back for publishing Exchange RPC/HTTP. They have all the detail you need and are for bouncing the FBA through a seperate subnet and listener.

Thanks,

John.

16 April 08 at 2:33 AM

Leave a Comment

Comment Policy: No HTML allowed. URIs and line breaks are converted automatically. Your e–mail address will not show up on any public page.

(required) 
(optional)
(required) 
Page view tracker