Page 1 of 1

VPN session duration limit

Posted: Tue Sep 04, 2018 2:47 am
by linuspoon
Hi,

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?

Re: VPN session duration limit

Posted: Thu Sep 13, 2018 7:25 am
by thisjun
How about writing a script as following?
1. Get a session information with vpncmd.
2. Check a duration time.
3. Disconnect the session.

Re: VPN session duration limit

Posted: Tue Oct 09, 2018 6:30 am
by linuspoon
Hi,

Thanks for the suggestion. However, I am not familiar with scripts. Do you have a sample script using vpncmd for some automated tasks?

Re: VPN session duration limit

Posted: Thu Oct 18, 2018 7:19 am
by thisjun
What script language do you familiar?