VPN inactivity timeout

1

Hello,

Need some assistance. I have successfully configured a VPN Client Endpoint. Everything is working as expected but is there a way to set an inactivity timeout for the vpn client? My end users will not remember to disconnect from their vpn session so I would like the session to timeout after 1 hour of inactivity. I searched all the AWS documentation but there is no mention of this anywhere. Any know if this option can be set somewhere?

asked 4 years ago1421 views
7 Answers
1

Following as I have the same question. Thanks.

dAWiS
answered 4 years ago
1

I have the same question too. Following.

answered 3 years ago
1

following. Hopefully his feature request gets priority as it is incurring added cost for many for no reason.

answered 3 years ago
1

AWS, please fix this. Not having the ability to adjust this fundamental security setting is beyond frustrating. It rules out the use of the AWS client VPN as a solution for anyone with any level of PCI compliance obligations.

jpetro
answered 3 years ago
0

Hi,

I understand you want to set inactivity timeout of Client VPN, but unfortunately this feature/option is not available in Client VPN as of now.

I can see there is already a feature request for this in our internal system, but It is important to mention that we do not have an ETA as to when this service would be available, however, the new features/services which are about to get released are announced on the public documentation. You can always keep an eye on this link [1] for new releases.

As a workaround, If you want a shorter idle timeout, you need to implement a connection timeout option on your VPN Client side. For example: OpenVPN VPN Client can use the command: "-inactive" to configure the timeout. For more information, you can refer to the third party Configuration instructions for VPN Client [2] [3]. But again, clients can change these values and bypass this.

[1] AWS new releases - https://aws.amazon.com/new/
[2] https://openvpn.net/community-resources/reference-manual-for-openvpn-2-4/
[3] https://forum.netgate.com/topic/111241/openvpn-idle-timeout/2

Second option for now can be utilising AWS API calls to terminate client sessions after lets say 4 hours ( but it wont check if it was inactive or active session, it will just terminate it after x hours)

What you can do write a python script/bash script/ Lambda that run after every lets say 10 minutes and do describe-client-vpn-connections API Call, this API Call returns Connection Establishment time and then you can call terminate-client-vpn-connections for any connection more than x hours of time.

https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-client-vpn-connections.html
https://docs.aws.amazon.com/cli/latest/reference/ec2/terminate-client-vpn-connections.html

I totally understand that these work arounds might not be a good option and add extra operational overhead, but as of now, these are two methods I can think of to achieve your goal until Client VPN product team launch any native feature to support it.

Regards,
MuhaAtAWS

AWS
answered 3 years ago
0

subscribed

Kaijp
answered 3 years ago
0

While the VPN session maximum duration setting is better than nothing, it still does not address an idle timeout setting that a robust VPN should offer. This service is on the expensive side, and would love to see AWS roll out an idle timeout setting to save cost where we can.

Matt
answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions