Networking

SSTP VPN RDP sessions drop exactly after 60s while web browsing over tunnel remains OK

nordicbyte
1mo ago
Environment

Environment

Windows Server 2019 RRAS acting as SSTP endpoint, remote users connect from heterogeneous home NATs and mobile carriers, clients run Windows 10/11 built-in SSTP client over TCP/443.

Symptoms

Symptoms

Interactive RDP sessions disconnect after roughly 60 seconds of activity during file copies or screen redraws. Small web requests and short SSH sessions over the same SSTP tunnel continue to work. Reconnect succeeds immediately but the same 60s window repeats.

Observations

Observations

Server RRAS event log shows session tear-down with no explicit error. Client shows 'The remote computer disconnected the session' and VPN log indicates session re-establishment without full TLS failure. No server-side CPU/memory spikes. Packet capture on client shows keepalive traffic stops before disconnect. NAT devices on path include home routers and mobile carrier CGNAT.

Already attempted

Already attempted

Increased RDP keepalive and adjusted Remote Desktop client settings; toggled TCP keepalive on server; tested different clients and networks; disabled Windows Defender firewall briefly; captured client-side pcap; increased RRAS logging. None eliminated the deterministic 60s drop.

Question

Question

What diagnostic checks will distinguish NAT/CGNAT idle-timeouts, TCP/TLS renegotiation failures, and SSTP-specific keepalive behaviour? Are there safe server-side or client-side settings to prevent the 60s disconnect without replacing RRAS?

COMMUNITY RESPONSES

Verified community troubleshooting

1 reply
0
matte_dev Answer
user
Posted 1mo ago • 0 confirmations

First reproduce with simultaneous packet captures on client and server to confirm whether the TCP mapping drops at 60s (look for missing ACKs or abrupt FIN/RST). If the mapping disappears without a FIN/RST, it's almost certainly an intermediate NAT/CGNAT idle timeout. Short-term fix: reduce TCP/SSTP keepalive interval to ~20–30s on client and server or run a tiny periodic probe (ping or keepalive) from client to keep the NAT mapping alive. Verify by running an RDP session for 5+ minutes after the change. Roll back the keepalive frequency if it affects battery life or overloads cheap routers; for hostile carrier NATs, consider moving to a UDP VPN that supports aggressive client keepalives.

Showing 1 of 1 community responses
AI DIAGNOSTICS

Incident analysis

Updated 1mo ago• Trouble ID

Most likely causes

Intermediate NAT/CGNAT enforces a 60s UDP/TCP session idle timeout and drops TCP without graceful closure. 85%
SSTP/TCP keepalive interval from RRAS or client is longer than 60s, so intermediary sees no traffic and tears down the mapping. 70%
TLS renegotiation or SSTP control packet malformed and rejected by an inline proxy or carrier middlebox after a fixed interval. 40%

Summary

A deterministic mid-session drop at ~60 seconds strongly suggests an intermediary imposing a hard idle or session timeout (NAT/CGNAT or mobile network), or an SSTP/TCP keepalive/renegotiation mismatch. Server-side RRAS may not be sending frequent enough keepalives or the relay (carrier NAT) may drop TCP connections despite seen activity. Less likely but possible causes include TLS renegotiation failures, client TCP stack power/save policies, or MTU/fragmentation interfering with keepalives.

Suggested Fixes

Diagnostic step 1
Capture packet traces on client and server simultaneously around the 60s mark (tcpdump/wireshark) and compare TCP sequence/ACK and keepalive timing.
Diagnostic step 2
Temporarily lower TCP keepalive interval on both client and server (e.g., Windows registry TcpKeepAliveTime) to 20–30s or configure SSTP keepalives if available.
Diagnostic step 3
Test with an SSH over SSTP long-running keepalive (small probe every 20s) to confirm if intermediary idle timeout is the cause.

Continue troubleshooting

Matched from the title, description and tags