Aucune description

Mustafa Arici 33969d4f3d Merge branch 'release-v0.1.2' into dev il y a 8 ans
api 02113803fd fix(rpc): use correct method il y a 8 ans
bindata 90fae7a65e release: v0.1.2 il y a 8 ans
cmd b6e48777d0 feat(vpn): ensure nat is enabled when starting vpn il y a 8 ans
pb 333665db60 commit 8360e6265d3b4ad6f1cbf0f176a47aaf40322ff0 il y a 8 ans
pki b04d51d49d refactor(pki): ensure consistent cert validation date/times, ensure validation date/times in UTC il y a 8 ans
supervisor b6e48777d0 feat(vpn): ensure nat is enabled when starting vpn il y a 8 ans
template 64c285906e feat: use remote-cert-tls server openvpn client config il y a 8 ans
.gitignore 33a3d57151 init: add gitignore il y a 8 ans
.travis.yml 13f15c6f08 chore(travis): fix travis config il y a 8 ans
CHANGELOG.md 0e7a676e89 release: v0.1.1 il y a 8 ans
README.md 3f2837ec37 chore(readme): add GoDoc badge il y a 8 ans
const.go 90fae7a65e release: v0.1.2 il y a 8 ans
db.go 87c8f6faa1 refactor: improve api semantics and configurability il y a 8 ans
db_test.go 7756c0cc60 test(db): write test cases for db il y a 8 ans
net.go b6e48777d0 feat(vpn): ensure nat is enabled when starting vpn il y a 8 ans
user.go cb1b32f0de refactor: improve api il y a 8 ans
user_test.go 3c5c4af01f test(user): write test cases for user operations il y a 8 ans
vpn.go 5896229a5a fix: ensure base dir is initialized il y a 8 ans
vpn_test.go 316cff113c test(vpn): write test cases for vpn operations il y a 8 ans

README.md

OVPM - OpenVPn Manager

Build Status codecov GoDoc

OVPM allows you to manage an OpenVPN server from command line easily. With OVPM you can create and run an OpenVPN server, add/remove vpn users, generate client .ovpn files for your users etc.

Usage

Install OVPM:

$ go get -u github.com/cad/ovpm/...

And verify the installation by running ovpmd:

$ ovpmd --version

ovpmd version 0.1.0

And also make sure openvpn is also installed on the host:

$ openvpn --version

OpenVPN 2.4.3 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO]
...

Now you can actually run the ovpmd server:

# Since ovpmd launches and supervises openvpn binary it needs root privileges.
$ sudo ovpmd

INFO[0000] OVPM is running :9090 ...                    

In another terminal you can use ovpm via the command line tool, ovpm:

$ ovpm 

NAME:
   ovpm - OpenVPN Manager

USAGE:
   main [global options] command [command options] [arguments...]

VERSION:
   0.1.0

COMMANDS:
     user     User Operations
     vpn      VPN Operations
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --verbose            verbose output
   --daemon-port value  port number for OVPM daemon to call
   --help, -h           show help
   --version, -v        print the version