This article describes how to configure VDI-in-a-Box 5.x Remote Access with NetScaler Access Gateway 10.
VDI-in-a-Box 5.x
NetScaler 10.0 build 69.4 or later (VPX, MPX, SDX)
NetScaler Gateway 10.1 or later (VPX, MPX, SDX)
NetScaler Platform License
This article provides instructions to configuring remote access to VDI-in-a-Box virtual desktops. The latest NetScaler and NetScaler Gateway versions (build 69.4 or later) now include an Access Gateway wizard to allow for quick remote access setup. Configuring the VDI-in-a-Box requires adding HDX gateway information and adding a Grid IP address.
Complete the following procedure to configure the VDI-in-a-Box Grid IP Address:
Log on to the VDI-in-a-Box web console as an administrator.
Open Admin > Advanced Properties menu.
Scroll down to the Grid section.
Enter an IP address to use in the Grid IP address:
Complete the following procedure to configure the VDI-in-a-Box HDX Gateway:
Log on to the VDI-in-a-Box web console as an administrator.
Open Admin > Advanced Properties menu.
Scroll down to the Gateways section.
In External HDX gateway addresses, for each NetScaler Gateway virtual server, type the following:
virtual server IP address, fully qualified domain name:portnumber
Separate the entries with semicolons.
For example: 192.0.2.14,www.gw2.com:443;192.0.2.1,www.gw1.com:443Note: To enable Single Sign-on, you must ensure that you enter the virtual server IP address. If you enter only the FQDN and port number, remote access without Single Sign-on is configured.
Enter the NetScaler MIP or SNIP to be used by VDI-in-a-Box in the Internal HDX Gateway field:
Complete the following procedure to configure the NetScaler appliance:
Import to support hypervisor if using the NetScaler VPX (virtual appliance).
Configure NetScaler IP Address (NSIP) through the Console and restart.
Log on to the NetScaler web console with default credentials: nsroot/nsroot
Provide a Host Name and configure the type of IP address to use for communication with the VDI-in-a-Box servers and desktops.
For more information about SNIPs and MIPs, see the following links:
Citrix Documentation - Configuring Subnet IP Addresses (SNIPs)
Citrix Documentation - Configuring Mapped IP Addresses (MIPs)
Complete the Setup Wizard using default values.
Click the Manage License link to upload a NetScaler Platform License.
Click Finish.
Save the configuration when prompted and restart the NetScaler.
Complete the following procedure to configure Access Gateway virtual server:
Log back into the NetScaler web console
Select Access Gateway feature and then Create/Monitor Access Gateway to open the Access Gateway 10 Home page.
Fill the Access Gateway Setting section.
The IP address is typically in a perimeter network or a public IP address that users connect to. Optionally, enable https redirection so the gateway will accept (and redirect) http requests to https.
Fill the LDAP Authentication section. This is required when configuring the wizard, but the authentication policy can be disabled later.
IP Address: Active Directory domain controller
Port: Usually 389 or 636
Base DN: Provide the Distinguished Name for the users in AD, such as OU=Users,OU=VDI,DC=domain,DC=com
Admin Base DN: Provide the Distinguished Name for a domain admin, such as CN=Administrator,CN=Users,DC=domain,DC=com
Logon Name: This should be SAMAccountName
Password: Provide the domain admin’s password
Select one of the options from the Certificate section.
Install Certificate: Select this option to upload the server certificate and private key that has already been generated (valid or self-signed). Certificates can be generated using the SSL feature of the NetScaler or any other certificate utility, such as OpenSSL or Java KeyTool.
Use Test Certificate: Select this option if a self-signed test certificate is required. Provide a name and FQDN for the certificate.
Important: Upon completion of this wizard, the test certificate and root certificate must be exported from the NetScaler and installed on the client devices. This is found in Configuration > SSL > Manage Certificates / Keys / CSRs section.
Select DNS and type the IP address of the DNS server to be used, as displayed in the following screen shot:
Note: For production environments, this should be an external-facing DNS server that will be used to redirect http to https requests based on the FQDN, if enabled in the Access Gateway Settings section.
Select Web Interface in the CloudGateway/Web Interface section.
The Web Interface and STA fields must use https instead of http.
Note: VDI-in-a-Box 5.1 does not support CloudGateway.
Web Interface Address: Provide the URL for the VDI-in-a-Box Grid IP Address, such as https://vdiGridIP.
Single Sign-on Domain: Provide the Active Directory domain. This will be used for SSO with PNAgent used by the Citrix Receiver.
Secure Ticket Authority: Provide the STA URL using the VDI-in-a-Box Grid IP, such as https://vdiGridIP/dt/sta.
Leave both Single Sign-on domain and ICA Proxy enabled.
Click Done.
This creates the Access Gateway virtual server using the settings and polices defined in this setup page.
Return to the NetScaler web console and click Save to ensure the running configuration is saved to disk in the event the NetScaler requires a restart.
Import to support hypervisor if using the NetScaler Gateway VPX (virtual appliance)
Configure NetScaler IP Address (NSIP) through the Console and restart.
Log on to the NetScaler Gateway web console with default credentials: nsroot/nsroot. For Deployment Type choose NetScaler Gateway.
Provide a Host Name, Subnet IP address, and one or more DNS addresses.
The Subnet IP address is the internal IP of the NetScaler Gateway.
Note: For production environments, the DNS should be an external-facing DNS server that will be used to redirect http to https requests based on the FQDN, if enabled in the NetScaler Gateway Settings section.
NetScaler Gateway administrator password might be changed from here.
Complete the Setup Wizard using default values.
Under Update Licenses, click Browse to choose and upload a NetScaler Gateway Platform License.
Click Continue then Done.
Save the configuration when prompted and restart the NetScaler Gateway.
Complete the following procedure to configure NetScaler Gateway virtual server:
Log back into the NetScaler Gateway web console.
Click Get Started to open the NetScaler Gateway Setup page.
Fill the NetScaler Gateway Settings section. The IP address is typically in a perimeter network or a public IP address that users connect to. Optionally, enable https redirection so the gateway will accept (and redirect) http requests to https. (An SSL gateway is required). Click Continue.
Select one of the options from the Certificate section.
Choose Certificate: Select this option if your SSL Certificate is already installed on the NetScaler Gateway.
Install Certificate: Select this option to upload the server certificate and private key that has already been generated (valid or self-signed). Certificates can be generated using the SSL feature of the NetScaler Gateway or any other certificate utility, such as OpenSSL or Java KeyTool.
Use Test Certificate: Select this option if a self-signed test certificate is required. Provide a name and FQDN for the certificate.
Click Continue.
Fill the LDAP Authentication section. This is required when configuring the wizard, but the authentication policy can be disabled later.
IP Address: Active Directory domain controller
Port: Usually 389 or 636
Base DN: Provide the Distinguished Name for the users in AD, such as OU=Users,OU=VDI,DC=domain,DC=com
Admin Base DN: Provide the Distinguished Name for a domain administrator, such as CN=Administrator,CN=Users,DC=domain,DC=com
Server Logon Name Attribute: This should be SAMAccountName
Password: Provide the domain administrator’s password
Click Continue.
Select XenApp / XenDesktop in the Enterprise Store Settings section. The Web Interface and STA fields must use https instead of http.
Note: VDI-in-a-Box 5.1 does not support CloudGateway.
Deployment Type: Web Interface
XenApp Site URL: Provide the URL for the VDI-in-a-Box Grid IP Address, such as https://vdiGridIP.
XenApp Services Site URL: https://vdiGridIP/dt/PNAgent/config.xml
Single Sign-on Domain: Provide the Active Directory domain. This will be used for SSO with PNAgent used by the Citrix Receiver.
STA URL (Secure Ticket Authority): Provide the STA URL using the VDI-in-a-Box Grid IP, such as https://vdiGridIP/dt/sta.
Click Done.
This creates the NetScaler Gateway virtual server using the settings and polices defined in this setup page.
Return to the NetScaler Gateway web console, click on Configuration, then click Save to ensure the running configuration is saved to disk in the event the NetScaler requires a restart.
Important: Upon completion of this wizard the test certificate and root certificate must be exported from the NetScaler and installed on client devices. This is found in Configuration > SSL > Manage Certificates / Keys / CSRs section.
Advanced Citrix Receiver Session Policy
To create advanced session policies, follow the instructions in Citrix Documentation - Creating a Session Policy and Profile for the NetScaler Gateway Plug-in.
The policy that is created using the Access Gateway wizard allows iOS and Android devices to connect to VDI-in-a-Box desktops through the web interface without any further configuration.
To allow iOS and Android devices to connect directly without going through the web interface, a separate session policy must be manually added using the following settings:
For the Web Interface Address field, use the VDI-in-a-Box Grid IP address in the following format (path is case-sensitive):
https://vdiGridIP/dt/PNAgent/config.xml
Type the AD domain into the Single Sign-On Domain field.
No additional authentication policy must be created.
Do the following to configure NetScalar to allow the users to connect to the VDI-in-a-Box directly through the Receiver:
On the session policy profile, configure the following settings:
Clientless Access: Allow
Clientless Access URL encoding: Clear
Plugin Type: Java