I have noticed that when I leave my RDP session to Windows server open for a night, then in the morning session has hanged. For example I can't even type anything into password box:

enter image description here

According to ps the status of rdesktop process is following:

$ ps -o pid,ppid,state,time,command -fp 26638
26638 26637 S 00:00:01 rdesktop -E -g 1920x1100 -a 32 -r clipboard:PRIMARYCLIPBOARD -r disk:windows /home/martin/windows -z -K

However, under normal conditions, it is pretty much the same:

$ ps -o pid,ppid,state,time,command -fp 30179
30179 30178 S 00:00:02 rdesktop -E -g 1920x1100 -a 32 -r clipboard:PRIMARYCLIPBOARD -r disk:windows /home/martin/windows -z -K

At first I thought that maybe my iptables/netfilter session times out, but this does not seem to be the reason because I inserted a rule which allows all the traffic from RDP server(

Chain INPUT (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --          anywhere            

What might cause this timeout? Is it possible that this timeout comes from RDP server side?

  • Isn't your rdp server not Is NAT involved between client and server? What about power-saving settings on the Windows machine? – rudimeier Oct 10 '16 at 8:17
  • Is a VPN connection involved? If so, perhaps that one fails... – Jan Oct 10 '16 at 10:50
  • @rudimeier Thanks for pointing that out. I copied a wrong line from iptables -L output. I fixed the initial post. NAT is not involved and this Windows machine runs 24/7. However, I don't manage the RDP server so I'm not able to provide any details about that. @Jan There is no VPN. – Martin Oct 10 '16 at 11:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.