Menu
InformatiWeb Pro
  • Index
  • System admin
  • Virtualization

Login

Registration Password lost ?
FR
  • Windows Server
    • WMS 2012
    • WS2012 R2
    • WS2016
  • Citrix
    • Citrix NetScaler Gateway
    • Citrix XenApp / XenDesktop
    • Citrix XenServer
  • VMware
    • VMware ESXi
    • VMware vSphere
    • VMware Workstation
  • Microsoft
    • Hyper-V
  • RAID
    • Adaptec SmartRAID
  • UPS
    • APC Back-UPS Pro
  • InformatiWeb Pro
  • System admin
  • Windows Server
  • Courses
  • Learn how to deploy RDS on WS 2012 and 2012 R2
  • Implement HA for your RDS gateways
23 / 27
  • Customize the RDS web access
  • Set up HA on your RDS infrastructure

Implement high availability for your RDS gateways on Windows Server 2012 / 2012 R2 / 2016

  • Windows Server
  • 24 May 2019 at 18:02 UTC
  • InformatiWeb
  • 2/4
Previous page

6. Distribute network load with NLB

6.1. Creating the NLB cluster

In order for your users to connect to one of these servers through a single domain name, you will need to place your RDS gateway servers in a NLB cluster.
To do this, open the Network Load Balancing Manager and right-click "New Cluster".

Since creating a cluster is almost identical to creating an IIS web servers cluster, refer to our NLB tutorial for this part.

Enter the name of your 1st RD gateway server and click Connection.

Specify an IP address for this cluster.

Provide a name for your cluster.

Note : if you test this tutorial in virtual (thanks to VMware), choose Multicast because unicast is not supported by default.

If you choose Unicast and your gateway servers are virtualized using VMware Workstation :

  • you will receive this error : Adapter 'Ethernet0' may not have network connectivity. MAC address ... of adapter 'Ethernet0' is within the reserved address range or is in use by another virtual adapter on your system.
  • one of your 2 RD gateways will lose access to the network

Create the associated record on your DNS server :

  • Name : name of your cluster
  • IP address : the IP address of your cluster

Note : generally, the DNS server is on the same server as the Active Directory.

Change the default port rule to use only TCP port 443 (HTTPS) and choose the "Multiple Host" filtering mode so that the network load is distributed by NLB on your different RDS gateway servers.

At the moment, you have a cluster with a single RDS gateway server.

6.2. Add a server to the cluster

To add your 2nd RD gateway server to your cluster, just right-click "Add Host To Cluster" on your NLB cluster.

Enter the name of your 2nd RDS gateway server and click Login.
Then, click Next.

Port rules are already indicated.
Click Finish.

Once the configuration is complete, your 2 servers will be in "state : converged".

7. Certificate import on your RD Gateways

In the properties of your RD gateways :

  • go to the "SSL Certificate" tab
  • select : Import a certificate in the RD Gateway ... Certificates (Local Computer)/Personal Store
  • click on the button : Browse and Import Certificate

Choose the certificate that is valid for the public (external) domain name of your RDS gateways (in our case : rds.informatiweb-tuto.net) and that has been provided by a trusted Internet-based certification authority (such as : Symantec SSL or GeoTrust).

In our case, we used a small trick to generate a free valid Internet certificate for our RD gateways through Let's Encrypt (free certification authority) and OpenSSL (for certificate conversion from PEM to PFX).

Note : to convert the certificate obtained in PEM format (Linux format) to PFX format (Windows format), use this command with OpenSSL 1.x :

Batch

openssl pkcs12 -export -out Cert.pfx -in cert.pem -inkey privkey.pem -passin pass:my_pass -passout pass:my_pass

Explanations :

  • Cert.pfx : output file name
  • cert.pem : certificate name in PEM format provided by Let's Encrypt
  • privkey.pem : name of the file containing the private key in PEM format provided by Let's Encrypt
  • -passin pass:my_pass : indicates that the password that protects the private key in PEM format is "my_pass"
  • -passout pass:my_pass : indicates that the password that will protect the private key in PFX format will always be "my_pass"

Enter the password protecting the private key.

If the password is correct, the certificate will be imported to the gateway server.

As you can see, our certificate :

  • is issued to : rds.informatiweb-tuto.net
  • is issued by the free certification authority : Let's Encrypt Authority X3
  • is valid until 04/01/2019

Note : for the "No SSL certificate are installed" error to disappear, all you have to do is apply the changes and then reopen that window.

As expected, the error disappears and the message "The following certificate is installed on ..." appears.

Import the same certificate on the 2nd RD gateway server.

Next page

Share this tutorial

Partager
Tweet

To see also

  • WS 2012 / 2012 R2 - RDS - Set up HA on your RDS infrastructure

    Windows Server 6/7/2019

    WS 2012 / 2012 R2 - RDS - Set up HA on your RDS infrastructure

  • WS 2012 / 2012 R2 / 2016 - RDS - Access RemoteApp via a modern application

    Windows Server 3/8/2019

    WS 2012 / 2012 R2 / 2016 - RDS - Access RemoteApp via a modern application

  • WS 2012 / 2012 R2 / 2016 - RDS - Attempt to unblock the session as a user

    Windows Server 4/28/2019

    WS 2012 / 2012 R2 / 2016 - RDS - Attempt to unblock the session as a user

  • WS 2012 / 2012 R2 / 2016 - RDS - Change the properties of RemoteApps

    Windows Server 3/16/2019

    WS 2012 / 2012 R2 / 2016 - RDS - Change the properties of RemoteApps

Comments

No comment

Share your opinion

Pinned content

  • Software (System admin)
  • Linux softwares
  • Our programs
  • Terms and conditions
  • Share your opinion

Contact

  • Guest book
  • Technical support
  • Contact

® InformatiWeb-Pro.net - InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.

Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.