Note: This article is based on RDS 2008 (R2) and might not apply to RDS 2012 (R2)
Remote Desktop Gateway (RD Gateway), formerly Terminal Services Gateway (TS Gateway), is a role service in the Remote Desktop Services server role included with Windows Server® 2008 R2 that enables authorized remote users to connect to resources on an internal corporate or private network, from any Internet-connected device that can run the Remote Desktop Connection (RDC) client. The network resources can be Remote Desktop Session Host (RD Session Host) servers, RD Session Host servers running RemoteApp programs, or computers and virtual desktops with Remote Desktop enabled. RD Gateway uses the Remote Desktop Protocol (RDP) over HTTPS to establish a secure, encrypted connection between remote users on the Internet and internal network resources. The following changes are available in Windows Server 2008 R2:
Configurable idle and session timeouts
Background session authentication and authorization
System and logon messages
Device redirection enforcement
Network Access Protection (NAP) remediation
Pluggable authentication and authorization
Reference Links -: This step-by-step guide walks you through the process of setting up a working Remote Desktop Session Host (RD Session Host) server accessible by using Remote Desktop Gateway (RD Gateway) in a test environment.
Carsten Siemens edited Revision 8. Comment: Fixed misspellings
Danny van Dam edited Revision 9. Comment: added note about that this might not apply to RDS 2012 (R2)
Freek Berson edited Revision 3. Comment: Reference links were not accessible, corrected it.