-
Notifications
You must be signed in to change notification settings - Fork 76
User Management
Mustafa Arıcı edited this page Oct 4, 2017
·
5 revisions
Users can be created via CLI or web interface.
$ ovpm user create -u <username> -p <password>
INFO[0000] user created: joe
See the existing users on the system.
$ ovpm user list
+---+-----------+--------------+--------------------------------+-----------+---------+
| # | USERNAME | IP | CREATED AT | VALID CRT | PUSH GW |
+---+-----------+--------------+--------------------------------+-----------+---------+
| 1 | joe | 10.9.0.2/24 | Wed Oct 4 10:21:29 +0300 2017 | true | true |
+---+-----------+--------------+--------------------------------+-----------+---------+
Update an existing user.
Change Password
# set new password
$ ovpm user update -u joe --password <new-password>
Make Admin
# make user admin
$ ovpm user update -u joe --admin
# make user normal user again
$ ovpm user update -u joe --no-admin
IP Address
# set static ip to user
$ ovpm user update -u joe --static 10.9.0.55
# set it back to dynamic ip
$ ovpm user update -u joe --no-static
Push Gateway
# push vpn server as the default gateway
$ ovpm user update -u joe --gw
# don't push vpn server as the default gateway
$ ovpm user update -u joe --no-gw