Simple tool to manage users
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Ilya Sosnovsky ae0cb58ad9 bump go-release-action version 4 months ago
.github/workflows bump go-release-action version 4 months ago
.dockerignore Initial commit 2 years ago
.gitignore Initial commit 2 years ago
Dockerfile small fixes 2 years ago
LICENSE Initial commit 2 years ago
README.md add force flag to delete user command 4 months ago
auth.sh some fixes and additional features 2 years ago
build.sh Initial commit 2 years ago
build_arm.sh fixes 11 months ago
go.mod Initial commit 2 years ago
go.sum Initial commit 2 years ago
install-deps.sh binaries for arm 11 months ago
install-deps_arm.sh Update install-deps_arm.sh 11 months ago
openvpn-user.go add force flag to delete user command 4 months ago

README.md

openvpn-user

Disclaimer

- Not tested in production environments! 

Use it on your own risk =)

Description

A simple tool to use with openvpn when you need to use –auth-user-pass-verify or wherever you want

Example

make sure openvpn-user binary available through PATH variable and you have auth.sh script with +x rights available to openvpn server

i.e. put binary to /usr/local/sbin/ and auth script to /etc/openvpn/scripts/ dir

part of openvpn server config

script-security 2
auth-user-pass-verify /etc/openvpn/scripts/auth.sh via-file

Usage

usage: openvpn-user [<flags>] <command> [<args> ...]

Flags:
  --help                         Show context-sensitive help (also try --help-long and --help-man).
  --db.path="./openvpn-user.db"  path do openvpn-user db

Commands:
  help [<command>...]
    Show help.

  db-init
    Init db.

  db-migrate
    STUB: Migrate db.

  create --user=USER --password=PASSWORD
    Create user.

  delete --user=USER [<flags>]
    Delete user.
    
    flags:
        --force  Delete from db

  revoke --user=USER
    Revoke user.

  restore --user=USER
    Restore user.

  list [<flags>]
    List active users.
    
    flags:
      --all  Show all users include revoked and delete

  auth --user=USER --password=PASSWORD
    Auth user.

  change-password --user=USER --password=PASSWORD
    Change password.