RDM 2021.2.15.0 - 2021.2.21.0 hang when closing RDP session with SSH port forwarding.
I've recognized this today a lot when using RDP sessions with 2021.2.15.0, updated to 2021.2.21.0 and the problems keeps happening. My RDP sessions are tunneled through SSH by creating some SSH port forwarding, which is configured at the VPN-parts of the RDP connection. I manually open the port forwarding and afterwards do the same with whatever RDP session I need. At some point I'm closing some RDP session because I'm done with those, but keep the port forwarding alive, because I need different RDP sessions using the same tunnel.
I'm somewhat sure that with older versions of RDM than ".15" closing those RDP sessions worked, but they currently don't. Instead, if I close the RDP session, the UI simply freezes and never comes back. I need to kill the process using the Task Manager.
During researching about the problem I've found some thread with a setup called SSH Secure Gateway. I switched some of my RDP sessions to use that and those sessions can easily be closed without freezing the UI. The following screenshot shows the enabled port forwarding and the RDP session "lohmar-srv" has just been closed. One can see in the tabs that the entry for RDP session is still there, while the main content has already been removed. The tabs are for the SSH port forwarding, the proxy connection to SSH and the RDP session itself.
Not sure how I can debug this further or provide any logs. But would be great if you could have a look. Thanks!
Clipboard01.png
Hello,
Thank you for contacting us on that matter!
Since the "Secure Gateway" feature works for you, would you be interested in opting for this feature? More details on this feature can be found here: https://kb.devolutions.net/rdm_how_configure_secure_gateway.html, are you already familiar with this topic?
If you prefer to use your current method, please provide us screenshots f your current configuration via private message.
Best regards,
James Lafleur
The secure gateway looks good and I already migrated most of my connections to use that. Though, would be great of course to know where my problem is, at I might need to use forwarded ports at some point in the future again. I've debugged further and what makes the RDP session hangs seems to be the setting on the VPN connection for closing some intermediate connection. My understanding is forwarded SSH connection as some kind of jump host -> VPN connection tunneling through that and the concrete RDP session at last. It seems like when closing the intermediate connection RDM simply hangs. Depending on the VPN setting, if that session should be closed automatically as part of closing the RDP session, RDM hangs instantly. If the VPN setting is to close the intermediate session manually instead, the RDP session itself can be closed and RDM hangs when closing the intermediate session manually.

Clipboard02.png
Clipboard01.png
Hello,
Thank you for providing me with your current configuration via private message.
Unfortunately, I am currently unable to reproduce this issue. Would it be possible for you to record this behavior and send it to me via private message? In this video, I would like to have a quick overview of the configuration of your entries just to make sure that my test environment is valid.
Best regards,
James Lafleur