Limit VPN access by time

How to customize and extend your OpenVPN installation.
Post Reply
OpenVpn Newbie
Posts: 1
Joined: Tue Mar 10, 2020 2:49 pm

Limit VPN access by time

Post by dofrey » Tue Mar 10, 2020 2:52 pm


I would like to setup a system where someone could login to my network over VPN. This should not be a big deal, but my problem is, that I want to have control over the access. So always if someone wants to login to my network, I want to open the access for a time limited period of time.
Does anyone has a hint on how I could solve this?


User avatar
Forum Team
Posts: 797
Joined: Wed Jul 01, 2015 8:03 am

Re: Limit VPN access by time

Post by Pippin » Tue Mar 10, 2020 3:12 pm

You would need to write a script for that.
See --client-connect cmd and --client-disconnect cmd in manual 2.4: ... n24ManPage

Post Reply