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.

65 lines
1.9 KiB

11 years ago
# OpenVPN Admin
10 years ago
## Summary
Administrate its OpenVPN with a web interface (logs visualisations, users managing...) and a SQL database.
11 years ago
![Previsualisation configuration](https://lutim.cpy.re/fUq2rxqz)
![Previsualisation administration](https://lutim.cpy.re/hDeUoGMy)
10 years ago
## Prerequisite
10 years ago
* GNU/Linux with Bash and root access
* Fresh install of OpenVPN
* Web server (NGinx, Apache...)
* MySQL
* PHP >= 5.5 with modules:
* zip
* pdo_mysql
* bower
* unzip
* wget
* sed
10 years ago
## Tests
10 years ago
Only tested on Debian Jessie. Feel free to open issues.
11 years ago
## Installation
10 years ago
* Setup OpenVPN and the web application:
10 years ago
$ cd ~/my_coding_workspace
$ git clone https://github.com/Chocobozzz/OpenVPN-Admin openvpn-admin
$ cd openvpn-admin
# ./install.sh www_base_dir web_user web_group
11 years ago
10 years ago
* Setup the web server (Apache, NGinx...) to serve the web application.
* Create the admin of the web application by visiting `http://your-installation/index.php?installation`
10 years ago
## Usage
* Start OpenVPN on the server (for example `systemctl start openvpn@server`)
* Connect to the web application as an admin
* Create an user
* User get the configurations files via the web application (and put them in */etc/openvpn*)
* Users on GNU/Linux systems, run `chmod +x /etc/openvpn/update-resolv.sh` as root
10 years ago
* User run OpenVPN (for example `systemctl start openvpn@client`)
## Update
10 years ago
$ git pull origin master
# ./update.sh www_base_dir
## Desinstall
It will remove all installed components (OpenVPN keys and configurations, the web application, iptables rules...).
10 years ago
# ./desinstall.sh www_base_dir
10 years ago
## Use of
* [Bootstrap](https://github.com/twbs/bootstrap)
* [SlickGrid](https://github.com/mleibman/SlickGrid)
* [SlickGridEnhancementPager](https://github.com/kingleema/SlickGridEnhancementPager) ([forked](https://github.com/Chocobozzz/SlickGridEnhancementPager/))
* [js-sha1](https://github.com/emn178/js-sha1)