Page 1 of 1

User Control

Posted: Mon Sep 20, 2021 2:27 am
by usrrobertoruiz
Dear, currently a client/user can be controlled to have access or permission at certain times.

For example, activating or deactivating the user when necessary.

Thank you

Robert

Re: User Control

Posted: Mon Sep 20, 2021 6:42 am
by openvpn_inc
Hello Robert,

No. But if you wanted to do this, you could easily script it with the command line tools. You could do something like:
/usr/local/openvpn_as/scripts/sacli --user "theuser" --key "prop_deny" --value "true" UserPropPut
/usr/local/openvpn_as/scripts/sacli --user "theuser" --client_reason "Curfew going into effect!" DisconnectUser

And then the lift the restriction:
/usr/local/openvpn_as/scripts/sacli --user "theuser" --key "prop_deny" --value "false" UserPropPut

And put those in a cronjob.

Kind regards,
Johan