How to Configure ForeFront TMG 2010 as Reverse Proxy for Lync Server 2010

How to Configure ForeFront TMG 2010 as Reverse Proxy for Lync Server 2010


To publish the services of Lync Server for Internet users need to configure two separate server roles, the Edge and Reverse Proxy Serve. In this article I show the steps for configuring the Forefront Threat Management Gateway 2010 as Reverse Proxy publishing Web Services Front End  
For configuration I have a Domain controller and a Lync Server Front End servers are configured with the following IP addresses:


Server Name


Domain Controller


Front End


TMG 2010


Internal Network:

External Network: 235.40

With the Reverse Proxy web publishing services Lync Server the following services are available to remote users
  • Download meeting content 
  • Expansion distribution group
  • Download Address Book Service
  • Provides Lync Web App Client
  • Conference Dial-in web page
  • Access to Location Information Service
  • Connection to the update service devices
  • Mobility Services
During the installation of Lync Server are two sites created in IIS:
  1. Lync Server Internal Web Site: configured on ports 80 and 443, responsible for providing services to internal customers
  2. Lync Server External Web: configured on ports 8080 and 4443, a site that should be published by the Reverse Proxy

TMG's role in this scenario is to direct Internet traffic from ports 80/HTTP and 443/HTTPS to 8080/HTTP and 4443/HTTPS in Lync Server Front End

URL configuration

For the publication of the Web service will use three different url's set in the Front End  
Two Url's are configured by default during installation of the Front End, addresses and To check this setting run the Topology Builder and click Lync Server 2010

The third URL must be configured in the properties of the Front End pool. Open the properties of the Front End, Web Services set the url of the External Web Services

No external DNS hosts were created by solving all of these URLs to the ip of external network interface of the TMG.


IP 235.40 235.40 235.40 (new URL for Mobility Service) 235.40 

For more information on configuring the Mobility Service to access the article  Configuring Lync Server 2010 Mobility Service

Configuring the Digital Certificate

For publication, you must configure a certificate server in TMG container, this will be associated to https port in TMG. The certificate was issued by the same certificate that was used in the certificates of the Front End

The certificate must be configured with the Common Name to FQDN configured in the External Web Services, this scenario The SAN certificate must be configured with all the URLs created in the Front End  
For the new service to external URL Mobility Service Discovery Service should be added to the SAN certificate, the URL LyncDiscover. <domain Sip> should be added. The figure below shows the configuration of the certificate: 

If you need help configuring the digital certificate access the article Create a Certificate Request using Microsoft Management Console (MMC)

Publishing Rule

With the certificate start the TMG management console, right-click on Firewall Policy, select New , and start the wizard  Web Site Publishing Rule ...

Set the name of the publishing rule

Create a rule to Allow

In the Publish Type select  Publish a single Web site or load balancer.

In the  Server Connection Security select the option  Use SSL to connect to the published Web Server or Server Farm

Configure  Internal Publishing detais  and configure the Internal site name: the FQDN of your Front End server Verify that the TMG is able to correctly resolve the FQDN and successfully ping the server Front End

In Internal Publish Details and set the Path / *

In the Public Name Details select the This domain name (type bellow), set the Public Name, which was set to the URL External Site. 

In the Web Listener create a new listener

Set a name for the new listener

In the Client Connection Security select Require SSL secured connections with clients

In the Web Listener IP Address select the network External , and then click Select IP Address

Select the URL set to ip in DNS

Configured with the IP advance.

In the Listener SSL Certificate select Use single certificate for the Web Listener and click Select Certificate ...

Select the certificate configured with the URL's Lync Server

Proceed with the configured certificate.

In Authentication Settings option set No Authentication.

In Single Sign On Settings do not change any setting and advance

Finalize the creation of the Web Listener

Go in creating the rule

In Authentication Delegation select  No delegation, but client may authenticate directly

Do not change the security settings of the rule.

Complete the setup wizard.

Return to the management console and open the rule properties

Tab To check the Forward the original host header instead of the current one

Tab  Binding set the Redirect requests to HTTP port: 8080;   Redirect requests to HTTP port: 4443

Tab Public Name add the URL's configured. Also add the URL of the Discover Service:

Test Your Configuration

To test the settings, access the URL's 
  • https://ExternalWebServices/abs, this is the folder from the Address Book Server. The page should require username and password. If you get another result of publication review your configuration

  • https://ExternalWebServices/meet, this is the meeting page, it should show code for troubleshooting 

  • https://ExternalWebServices/ GroupExpansion / service.svc, this is the folder to expand groups. On page must ask for authentication.

  •, this is the page Dialin,


Leave a Comment
  • Please add 8 and 5 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Page 1 of 1 (1 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
  • Fernando Lugão Veltem edited Revision 1. Comment: update text

  • Whats the difference when having multiple Front End servers?

  • Hi, you have to publish the port 443/80 to your reverse proxy and configurring like the article

  • Hi, why you have de reverse proxy as a domain computer?


  • DiegoNxo, It doesn't have to be a domain member in order to publish Lync web services. but sometimes other services requires TMG to be part of domain esp for AD authentication.

  • DiegoNxo, It doesn't have to be a domain member in order to publish Lync web services. but sometimes other services requires TMG to be part of domain esp for AD authentication.

  • Great article.


  • Why enable port 80? The ms article only has 443 enabled

Page 1 of 1 (8 items)