Questions about session time in AWS Client VPN

0

Hi, First of all, Thank you for reading my question. When I screen lock my laptop or When I away from my laptop about 1 hour, and come back to laptop, aws client vpn is disconnected. The session timeout setting is 12 hours, but in reality, even if I leave the seat for about 1 hour, the connection is lost. Does it automatically disconnect when there is no network traffic? If yes, How do I disable it?

42dot
已提問 1 年前檢視次數 553 次
1 個回答
1

Hello and thanks for writing in.

AWS Client VPN doesn't automatically disconnect when there is no network traffic. It tries to reconnect and repeated reconnection attempts are slowed down after 5 retries per remote by doubling the wait time after each unsuccessful attempt. You can increase this timer using "connect-retry" directives in .ovpn file.

connect-retry 300

Wait 300 seconds between connection attempts (default=5)

You can also try persist-tun and persist-key OpenVPN directives in .ovpn file. These options persist the tun device and the authentication keys across restarts (either caused by user or ping-restarts). The results may vary depending on the OS and the actual client in use.

persist-tun persist-key

Rest I would recommend to open a support case and share OVPN logs with engineers. OVPN logs would help to understand the reason behind disconnect.

To know more supported OVPN derivtais you can refer below document: https://docs.aws.amazon.com/vpn/latest/clientvpn-user/connect-aws-client-vpn-connect.html

AWS
支援工程師
Sunny_B
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南