Page 1 of 1

Limit VPN access by time

Posted: Tue Mar 10, 2020 2:52 pm
by dofrey
Hi

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?

Thanks!

Re: Limit VPN access by time

Posted: Tue Mar 10, 2020 3:12 pm
by Pippin
You would need to write a script for that.
See --client-connect cmd and --client-disconnect cmd in manual 2.4:
https://community.openvpn.net/openvpn/w ... n24ManPage