User Control

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
usrrobertoruiz
OpenVpn Newbie
Posts: 2
Joined: Sat Sep 18, 2021 2:42 pm

User Control

Post by usrrobertoruiz » Mon Sep 20, 2021 2:27 am

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

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1332
Joined: Tue Feb 16, 2021 10:41 am

Re: User Control

Post by openvpn_inc » Mon Sep 20, 2021 6:42 am

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
Image OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support

Post Reply