Both L4 and L7 virtual services are supported to Load balance traffic to connection servers. However, it is recommended to use L7 virtual services. This guide discusses using L7 virtual service to load balance traffic to connection servers.

Create Custom Health Monitor for Connection Servers

  1. From the UI, navigate to Templates > Profiles > Health Monitors.

  2. Click Create.

  3. In the New Health Monitor screen, select the Type as HTTPS.

  4. Set the Send Interval to 30 seconds and Receive Timeout to 10 seconds.

  5. Select the Response Code as 2xx.

  6. Select an appropriate SSL Profile.



  7. Click Save.

Create an SSL Profile

Create an SSL profile with session reuse deactivated. Follow the steps shown below:

To create a new SSL profile,

  1. In the UI, navigate to Templates > Security > SSL/TLS Profile > Create.

  2. Select the Type as Application Profile.

  3. In the New SSL/TLS Profile screen, ensure TLS 1.2 is selected under Accepted Versions for backward compatibility with older Horizon clients.

  4. Ensure the option Enable SSL Session Reuse is deactivated.

  5. Under Ciphers, click Select From List to select the following ciphers:

    • TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256

    • TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256

    • TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384

    • TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384



  6. Click Save.

Creating a Pool

If connection servers are configured, use Consistent Hash - Source IP address as the load balancing algorithm.

Enable SSL to backend and select the appropriate SSL profile (Connection-Server-SSL-Profile used here).

To create a pool,

  1. Navigate to Applications > Pools.

  2. Click Create Pool

  3. Enter the details as shown below:



  4. Click Next.

  5. Enter the Server IP Address and click Add Server.

  6. Click Next and enter the details as required under the Advanced tab.

  7. Click Next and Save.

Note:

Connection server pool should have persistence profile assigned. Persistence is not required if consistent hash load balancing algorithm is being used with Source IP address.

For more information, see Security Enhancements in Unified Access Gateway (UAG) version 2312 and beyond (96373).

Creating an Application Profile

Create an HTTP application profile, with the Connection Multiplex and X-Forwarded-For settings unchecked.



Creating an SSL Profile

Create an SSL profile with session reuse disabled. Follow the steps shown below:

1. In the Avi UI, navigate to Templates > Security > SSL/TLS >ProfileCreate > Application Profile

2. In the New SSL/TLS Profile screen, select the Ciphers and theTLS version.

3. Enable TLS 1.2 for backward compatibility with older Horizon clients.

4. Ensure the option Enable SSL Session Reuse is disabled.

5. Under Ciphers, click Select From List to select the following ciphers:

  • TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256

  • TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256

  • TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384

  • TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384



6. Click Save.

Creating an L7 Virtual Service

To create the L7 virtual service,

  1. Navigate to Applications > Virtual Services.

  2. Click CREATE VIRTUAL SERVICE > Advanced Setup.

  3. Select the Application Profile created for connection server.



  4. Enable SSL and choose the SSL profile that was created for the virtual service.

  5. Select the Connection Server Pool.

  6. The virtual service is as shown below:



  7. Click Next and navigate to Step 4: Advanced.

  8. Click Save.

The following are the changes in the UAG server when the load balancer is present between the UAG and connection server:



  • The connection server URL must point to the Avi Load Balancer.

  • The connection server URL thumb print:

    • For an L7 virtual service: The connection server URL thumbprint is taken from the certificate that is bound to the Avi Load Balancer.

    • For an L4 virtual service: The connection server URL thumbprint must be taken from the certificate that is present in the connection server itself.

    • For an L4 virtual service with SSL (System-SSL-Application) the connection server URL thumbprint is taken from the certificate that is bound to the Avi Load Balancer.

Note:

For connection servers, Connection Multiplex must be deactivated for the System-Secure-HTTP-VDI profile. Other settings in this profile can remain unchanged.

For information on how to deactivate Connection Multiplex, see Disable Connection Multiplexing.