VPN session duration limit

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
Posts: 2
Joined: Tue Sep 04, 2018 2:12 am

VPN session duration limit

Post by linuspoon » Tue Sep 04, 2018 2:47 am


Is there a way to set a session duration limit for L2TP VPN client(eg. disconnect the VPN session after 4 hours)? I know there is a "VPN Client Automatic Disconnect" setting inside the Security Policy but this only works for SoftEther VPN client but not for other L2TP VPN clients (Windows/Mac/Linux/Android and iOS).

Please advise how I can make the session disconnect to work for L2TP clients or is there a workaround to get this to work?

Posts: 2090
Joined: Mon Feb 24, 2014 11:03 am

Re: VPN session duration limit

Post by thisjun » Thu Sep 13, 2018 7:25 am

How about writing a script as following?
1. Get a session information with vpncmd.
2. Check a duration time.
3. Disconnect the session.

Post Reply