VPN session duration limit

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

VPN session duration limit

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

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?

thisjun
Posts: 2458
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.

linuspoon
Posts: 3
Joined: Tue Sep 04, 2018 2:12 am

Re: VPN session duration limit

Post by linuspoon » Tue Oct 09, 2018 6:30 am

Hi,

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

thisjun
Posts: 2458
Joined: Mon Feb 24, 2014 11:03 am

Re: VPN session duration limit

Post by thisjun » Thu Oct 18, 2018 7:19 am

What script language do you familiar?

Post Reply