Auto disconnect

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
bruskie
OpenVpn Newbie
Posts: 4
Joined: Wed Mar 23, 2011 9:12 am

Auto disconnect

Post by bruskie » Mon Apr 04, 2011 7:21 am

Hi there,

Is there somewhere an option to auto disconnect a user when idle for a specific set period? I don't want users to be connected for hours on end when they forget to disconnect.

Thanks,
Christian

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Auto disconnect

Post by janjust » Mon Apr 04, 2011 9:47 am

Read The Fine Manual:

Code: Select all

--inactive n
where <n> is the number of seconds.

bruskie
OpenVpn Newbie
Posts: 4
Joined: Wed Mar 23, 2011 9:12 am

Re: Auto disconnect

Post by bruskie » Sun May 08, 2011 4:01 pm

Thanks.
So would I enter this under Advanced VPN configuration, Client Config Directives?
inactive 60 for example to disconnect after 60 seconds if inactive?

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Auto disconnect

Post by janjust » Sun May 08, 2011 9:36 pm

which GUI are you talking about? in the openvpn server config file, which is a plaintext file in most cases, simply add

Code: Select all

inactive 60

bruskie
OpenVpn Newbie
Posts: 4
Joined: Wed Mar 23, 2011 9:12 am

Re: Auto disconnect

Post by bruskie » Mon May 09, 2011 4:47 am

The admin GUI.
https://external_address_to_OpenVPN_server/admin

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Auto disconnect

Post by janjust » Mon May 09, 2011 6:12 am

that's the GUI from OpenVPN Access Server, which is the commerical version of OpenVPN. This forum does not cover that product. Please ask Access Server related questions to the OpenVPN Access Server Tech Support team.

Post Reply