Açıklama Yok

Mustafa Arici d9b2c0ea1b test(user): write test cases for ip allocator 8 yıl önce
api ae162139cc feat(vpn): allocate client ip addresses dynamically and statically 8 yıl önce
bindata b306ddebf9 feat(user): implement update user feature 8 yıl önce
cmd ae162139cc feat(vpn): allocate client ip addresses dynamically and statically 8 yıl önce
pb ae162139cc feat(vpn): allocate client ip addresses dynamically and statically 8 yıl önce
pki 2fe160c0c9 refactor(pki): generate certificates valid for _CrtExpireYears long 8 yıl önce
supervisor b6e48777d0 feat(vpn): ensure nat is enabled when starting vpn 8 yıl önce
template bf2a9b940e feat(user,vpn): implement no-gw capability 8 yıl önce
.gitignore 33a3d57151 init: add gitignore 8 yıl önce
.travis.yml 13f15c6f08 chore(travis): fix travis config 8 yıl önce
CHANGELOG.md 0e7a676e89 release: v0.1.1 8 yıl önce
README.md 487431dccd chore(readme): add version badge 8 yıl önce
const.go 90fae7a65e release: v0.1.2 8 yıl önce
db.go 87c8f6faa1 refactor: improve api semantics and configurability 8 yıl önce
db_test.go 7756c0cc60 test(db): write test cases for db 8 yıl önce
net.go ae162139cc feat(vpn): allocate client ip addresses dynamically and statically 8 yıl önce
user.go ae162139cc feat(vpn): allocate client ip addresses dynamically and statically 8 yıl önce
user_test.go d9b2c0ea1b test(user): write test cases for ip allocator 8 yıl önce
vpn.go 174cd47329 refactor(vpn): prevent sandbox violation when testing 8 yıl önce
vpn_test.go d9b2c0ea1b test(user): write test cases for ip allocator 8 yıl önce

README.md

OVPM - OpenVPn Manager

Build Status GitHub version 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