Terminate VPN connections after timeframe.

This forum is for admins who are looking to build or expand their OpenVPN setup.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
microbit
OpenVpn Newbie
Posts: 1
Joined: Tue Aug 09, 2022 5:50 pm

Terminate VPN connections after timeframe.

Post by microbit » Tue Aug 09, 2022 6:19 pm

My company has issued a new security policy regarding VPN connections. One of them is to terminate client vpn connections after 12 hours regardless of activity. Also part of that policy is to disconnect vpn clients after 30 minutes of inactivity too. Now I have successfully set the 30 minute inactivity in the client config file. However I am having trouble figuring out a way to disconnect the client VPN connection after 12 hours. Anyone have any ideas on how to configure this part?

TinCanTech
OpenVPN Protagonist
Posts: 11147
Joined: Fri Jun 03, 2016 1:17 pm

Re: Terminate VPN connections after timeframe.

Post by TinCanTech » Tue Aug 09, 2022 7:15 pm

microbit wrote:
Tue Aug 09, 2022 6:19 pm
I am having trouble figuring out a way to disconnect the client VPN connection after 12 hours. Anyone have any ideas on how to configure this part?
OpenVPN does not have such an option to configure.

Post Reply