Page 1 of 1

SSTP VPN connection terminated in 10 seconds while entering credentials (on Windows native client)

Posted: Wed May 12, 2021 7:40 pm
by vova
Hello!
I noticed a strange behavior while connecting to SSTP VPN using Windows 10 native client: after credentials pop-up appears, the connection is being terminated in 10 seconds with error "A connection to the remote computer could not be established, so the port used for this connection was closed".
However, if I submit credentials within 10 seconds or credentials are already saved, the connection works as expected.

Server logs (Oracle Linux Server release 7.8):

Code: Select all

2021-05-12 16:32:21.550 On the TCP Listener (Port 443), a Client (IP address 10.0.0.5, Host name "**********", Port number 65486) has connected.
2021-05-12 16:32:21.550 For the client (IP address: 10.0.0.5, host name: "**********", port number: 65486), connection "CID-7" has been created.
2021-05-12 16:32:21.682 SSL communication for connection "CID-7" has been started. The encryption algorithm name is "AES128-SHA".
2021-05-12 16:32:31.948 Connection "CID-7" terminated by the cause "Connection has been disconnected." (code 3).
2021-05-12 16:32:31.948 Connection "CID-7" has been terminated.
2021-05-12 16:32:31.948 The connection with the client (IP address 10.0.0.5, Port number 65486) has been disconnected.
Also I ran Wireshark on Windows client machine and found out that the server sends TCP RST packet that causes connection termination. So I believe that the problem is on the server side.

Is there any kind of time-out that can be configured? Thanks!

Re: SSTP VPN connection terminated in 10 seconds while entering credentials (on Windows native client)

Posted: Fri May 14, 2021 3:59 pm
by eddiewu
It's fixed in the code (PPP_PACKET_RECV_TIMEOUT). You can change it by modifying the code and rebuild yourself.