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?
VPN session duration limit
-
- Posts: 2458
- Joined: Mon Feb 24, 2014 11:03 am
Re: VPN session duration limit
How about writing a script as following?
1. Get a session information with vpncmd.
2. Check a duration time.
3. Disconnect the session.
1. Get a session information with vpncmd.
2. Check a duration time.
3. Disconnect the session.
-
- Posts: 3
- Joined: Tue Sep 04, 2018 2:12 am
Re: VPN session duration limit
Hi,
Thanks for the suggestion. However, I am not familiar with scripts. Do you have a sample script using vpncmd for some automated tasks?
Thanks for the suggestion. However, I am not familiar with scripts. Do you have a sample script using vpncmd for some automated tasks?
-
- Posts: 2458
- Joined: Mon Feb 24, 2014 11:03 am
Re: VPN session duration limit
What script language do you familiar?