HTML5 Gateway connection in new browser windows/tab is blank or white and "error connecting to RDP" in guac logs in /var/log/messages

HTML5 Gateway connection in new browser windows/tab is blank or white and "error connecting to RDP" in guac logs in /var/log/messages

127
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 13:03 PM


Symptom


You have just set up the HTML5 Gateway and testing connectivity to an RDP Target.
 
When you connect to HTTPS://<html5gatewayhost>  you see the Tomcat welcome page.  So Tomcat is working.
When you try to test an RDP connection through the Gateway with the URL:
 
HTTPS://<html5gatewayhost>/guac/direct?hostname=<ip of component server>
 
1. You get a new browser tab/window which is blank / white with nothing else
2. You go into the /var/log/messages and you see an ambiguous "Error connecting to RDP Server" like so:
 
Jul 27 15:30:30 gateway guacd[82187]: Creating new client for protocol "rdp"
Jul 27 15:30:30 gateway guacd[82187]: Connection ID is "$17206acd-c452-4ca6-be3c-b8e4554bab38"
Jul 27 15:30:30 gateway guacd[82650]: Security mode: RDP
Jul 27 15:30:30 gateway guacd[82650]: Resize method: none
Jul 27 15:30:30 gateway guacd[82650]: User "@7be27e5f-577a-41b3-b0dc-1711d55bab7d" joined connection "$17206acd-c452-4ca6-be3c-b8e4554bab38" (1 users now present)
Jul 27 15:30:30 gateway guacd[82650]: Loading keymap "base"
Jul 27 15:30:30 gateway guacd[82650]: Loading keymap "en-us-qwerty"
Jul 27 15:30:30 gateway guacd[82650]: Error connecting to RDP server
Jul 27 15:30:31 gateway guacd[82650]: User "@7be27e5f-577a-41b3-b0dc-1711d55bab7d" disconnected (0 users remain)
Jul 27 15:30:31 gateway guacd[82650]: Last user of connection "$17206acd-c452-4ca6-be3c-b8e4554bab38" disconnected
Jul 27 15:30:31 gateway guacd[82187]: Connection "$17206acd-c452-4ca6-be3c-b8e4554bab38" removed.
 
3. In the registry of the RDP Target, the \HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\SecurityLayer Setting is set to 2


Environment


10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10;11.1;11;11.2;11.3;11.4;11.5;11.6 PAS

Cause


The SecurityLayer is set too high in RDP-Tcp
 
Here is some additional information on this setting.
 
\HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\SecurityLayer
  • Security Layer 0 – With a low security level, the remote desktop protocol is used by the client for authentication prior to a remote desktop connection being established. Use this setting if you are working in an isolated environment.
  • Security Layer 1 – With a medium security level, the server and client negotiate the method for authentication prior to a Remote Desktop connection being established. As this is the default value, use this setting only if all your machines are running Windows.
  • Security Layer 2- With a high security level, Transport Layer Security, better knows as TLS is used by the server and client for authentication prior to a remote desktop connection being established.


Resolution


Change the registry value of \HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\SecurityLayer to 1
 
If the system needs TLS encyption (value = 2)  you will need to generate CA Trusted computer certificates (not self-signed) for the RDP Target and the HTML5 Gateway on order for TLS to work.
 
Generally,  SecurityLayer = 1 and the HTML5 Gateway removes the risk of needing a publicly exposed an RDP port. So this is acceptable.
 
You do not need to restart the RDP Target after making this change.  It will accept the change immediately.


Additional Information


Details

 
You have just set up the HTML5 Gateway and testing connectivity to an RDP Target.
 
When you connect to HTTPS://<html5gatewayhost>  you see the Tomcat welcome page.  So Tomcat is working
 
When you try to test an RDP connection through the Gateway with the URL:
 
HTTPS://<html5gatewayhost>/guac/direct?hostname=<ip of component server>
 
1. You get a new browser tab/window which is blank / white with nothing else
 
2. You go into the /var/log/messages and you see an ambiguous "Error connecting to RDP Server" like so:
 

Jul 27 15:30:30 gateway guacd[82187]: Creating new client for protocol "rdp"

Jul 27 15:30:30 gateway guacd[82187]: Connection ID is "$17206acd-c452-4ca6-be3c-b8e4554bab38"

Jul 27 15:30:30 gateway guacd[82650]: Security mode: RDP

Jul 27 15:30:30 gateway guacd[82650]: Resize method: none

Jul 27 15:30:30 gateway guacd[82650]: User "@7be27e5f-577a-41b3-b0dc-1711d55bab7d" joined connection "$17206acd-c452-4ca6-be3c-b8e4554bab38" (1 users now present)

Jul 27 15:30:30 gateway guacd[82650]: Loading keymap "base"

Jul 27 15:30:30 gateway guacd[82650]: Loading keymap "en-us-qwerty"

Jul 27 15:30:30 gateway guacd[82650]: Error connecting to RDP server

Jul 27 15:30:31 gateway guacd[82650]: User "@7be27e5f-577a-41b3-b0dc-1711d55bab7d" disconnected (0 users remain)

Jul 27 15:30:31 gateway guacd[82650]: Last user of connection "$17206acd-c452-4ca6-be3c-b8e4554bab38" disconnected

Jul 27 15:30:31 gateway guacd[82187]: Connection "$17206acd-c452-4ca6-be3c-b8e4554bab38" removed.

 
3. In the registry of the RDP Target, the \HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\SecurityLayer Setting is set to 2
 
ISSUE:  The SecurityLayer is set too high in RDP-Tcp
 
Here is some additional information on this setting.
 

\HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\SecurityLayer

  • Security Layer 0 – With a low security level, the remote desktop protocol is used by the client for authentication prior to a remote desktop connection being established. Use this setting if you are working in an isolated environment.
  • Security Layer 1 – With a medium security level, the server and client negotiate the method for authentication prior to a Remote Desktop connection being established. As this is the default value, use this setting only if all your machines are running Windows.
  • Security Layer 2- With a high security level, Transport Layer Security, better knows as TLS is used by the server and client for authentication prior to a remote desktop connection being established.
 
 
SOLUTION:
 
Change the registry value of \HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\SecurityLayer to 1
 
If the customer needs TLS encyption (value = 2)  the customer needs to generate CA Trusted computer certificates (not self-signed) for the RDP Target and the HTML5 Gateway on order for TLS to work.
 
Generally,  SecurityLayer = 1 and the HTML5 Gateway removes the risk of needing a publicly exposed an RDP port. So this is acceptable.
 
You do not need to restart the RDP Target after making this change.  It will accept the change immediately.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000qMoCAI&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail