Publishing the RD Gateway behind the Web Application Proxy

Complete the following steps to publish the RD Gateway behind the Web Application Proxy:
  1. Install the hot fix for Web Application Proxy from the following location: https://support.microsoft.com/en-gb/kb/3000850.
  2. Connect to your WAP server and switch to the Remote Access Management console.
  3. In the left pane, make sure that
    Web Application Proxy
    is selected, and then in the right pane, click
    Publish
    . The Publish New Application wizard is displayed.
  4. In the wizard, edit the following fields:
    • Click
      Next
      .
    • For the pre-authentication, select
      Active Directory Federation Services (AD FS)
      , and click
      Next
      .
    • Select the Relying Party Trust that you created in Creating a Relying Party Trust in AD FS and click
      Next
      .
    • Enter a name for this published application. This name is for internal use only.
    • Enter the external URL that users use to access your RD Gateway/RD Web Access installations. Then, select the certificate that your RD Gateway uses.
    • Make sure that the back-end server URL is the same as the external URL, and click
      Next
      .
    • In the confirmation window, click
      Publish
      .
    • In the
      Results
      window, click
      Close
      to complete the settings in the wizard.
  5. Using PowerShell, customize the following settings for the published web proxy using the commands that are listed in the following table.
    Setting
    Command
    DisableHttpOnlyCookieProtection
    Get-WebApplicationProxyApplication -Name rdg | Set-WebApplicationProxyApplication -DisableHttpOnlyCookieProtection
    InactiveTransactionsTimeoutSec
    Get-WebApplicationProxyApplication -Name rdg | Set-WebApplicationProxyApplication -InactiveTransactionsTimeoutSec 28800