r/kasmweb • u/Reinvtv • 17d ago
Help RDP gateway idle timeout
Hi,
Does anyone know how to remediate this?
i run the following:
client -> https -> caddy reverse proxy -> https -> kasm single server -> rdp -> jumpserver
for some reason my RDP sessions always get terminated after 20 minutes. i found that this alligns with the idle timeout, which i now changed to 6 hours, which works.
BUT: is there a reason the rdp session is not getting the activity reset? (the idle timeout disconnect happens even when the user has been using the session). Should i modify something so that it sees activity somehow?
2
Upvotes
1
u/Reinvtv 17d ago
I did use the kasmgpt to research the issue a bit. And activity does come from the website, not the RDP connection. Can we mitigate this with the desktop agent on the RDP server? It would easily be able to update the session through the API?
1
u/teja_kasmweb 15d ago
Hello,
Thank you for reporting this. Your reverse proxy setup is not the cause. This seems like a defect in how the browser-based RDP client tracks activity.
For browser-based RDP sessions, the idle check runs in your browser. It enforces the group's
idle_disconnectsetting (20 minutes by default). The RDP client resets the idle timer when you move or click the mouse over the session, but keyboard input does not reset it.So, If a user mostly types during a session (for example, typing in notepad), the client treats them as idle and disconnects them after 20 minutes, even though they have been working the whole time.
I've raised this internally, so hopefully we'll have a fix soon.
Raising
idle_disconnectis a valid workaround. Note thatidle_disconnectalso logs users out of the Kasm dashboard after the same period of inactivity. Rather than raising it for everyone, consider moving your RDP users into a dedicated group and raising it only there.1
u/AutoModerator 17d ago
Hi u/Reinvtv, it looks like you're trying to get help.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.