HDX Direct

Overview

When accessing macOS VDA, HDX Direct allows client (CWA) devices to establish a secure and direct connection with the VDA (bypassing Citrix Gateway Service or NetScaler Gateway) if direct communication can be established between them. For HDX Direct, it’s available for intranet environments, hence we can help organizations achieve the following advantages:

  • Reducing bandwidth consumption by establishing a secure and direct user session traffic between VDA and Client.
  • Adding resiliency to the session when CGS (Citrix Gateway Service) goes down.
  • Improving session performance by avoiding connecting through an intermediary.

How HDX Direct works

HDX Direct

  1. The client establishes a HDX session through the Citrix Gateway Service.
  2. Upon a successful connection, the VDA sends to the client the VDA machine’s FQDN, a list of its IP addresses, and the VDA machine’s certificate via the HDX connection.
  3. The client probes the IP addresses to see if it can reach the VDA directly.
  4. If the client can reach the VDA directly with any of the IP addresses shared, the client establishes a direct connection with the VDA, secured with (D)TLS using a certificate that matches the one exchanged in step (2).
  5. Once the direct connection is successfully established, the session is transferred to the new connection, and the connection to the Gateway Service is terminated.

Configuration

HDX Direct is disabled by default. To enable this feature, you can configure the Citrix DDC policies below, please also refer to macOS VDA policy support list for details:

  • HDX Direct: enable or disable this feature.
  • HDX Direct mode: configure if HDX Direct is available for internal clients or for both internal and external clients. For HDX Direct support in this release, both modes are supported, but it’s available for internal clients only.

Validation

To check whether a HDX session is working with HDX Direct, run the /opt/Citrix/VDA/bin/ctxsession -v command in the terminal.

If HDX Direct v1 is in use, HDX Direct State shows Connected - Internal.

Troubleshooting

If Citrix DDC policies are configured, but HDX session doesn’t work with HDX Direct, check if the policies are applied to the current macOS VDA by the tool hdxmonitor:

sudo hdxmonitor network dump

The result will show if HDX Direct is applied or not.

Once confirmed, HDX Direct will work in the next new HDX connection. Go to the policy support list for more information on HDX Direct policies.

HDX Direct