OpenVPN-Admin/README.md

59 lines
1.7 KiB
Markdown
Raw Normal View History

2014-02-12 10:59:56 +01:00
# OpenVPN Admin
2015-07-09 14:26:07 +02:00
## Summary
Administrate its OpenVPN with a web interface (logs visualisations, users managing...) and a SQL database.
2014-02-12 10:59:56 +01:00
2015-07-09 14:26:07 +02:00
![Previsualisation](http://lutim.cpy.re/wRzijuCg)
2014-03-19 21:53:24 +01:00
2015-07-09 14:26:07 +02:00
## Prerequisite
2014-03-21 21:47:01 +01:00
2015-07-09 14:26:07 +02:00
* GNU/Linux with Bash and root access
* Fresh install of OpenVPN
* Web server (NGinx, Apache...)
* MySQL
* PHP >= 5.5 with modules:
* zip
* pdo_mysql
2015-07-26 18:16:45 +02:00
* bower
2015-07-09 14:26:07 +02:00
## Tests
2014-03-19 21:53:24 +01:00
2015-07-09 14:26:07 +02:00
Only tested on Debian Jessie. Feel free to open issues.
2014-02-12 10:59:56 +01:00
## Installation
2014-03-21 21:47:42 +01:00
2015-07-09 14:26:07 +02:00
* Setup OpenVPN and the web application:
2014-03-21 21:47:42 +01:00
2015-07-12 10:32:43 +02:00
$ 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
2014-02-12 10:59:56 +01:00
2015-07-09 14:26:07 +02:00
* 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
## 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
* User run OpenVPN (for example `systemctl start openvpn@client`)
2015-07-12 10:29:43 +02:00
## Update
2015-07-12 10:32:43 +02:00
$ git pull origin master
# ./update.sh www_base_dir
2015-07-12 10:29:43 +02:00
## Desinstall
It will remove all installed components (OpenVPN keys and configurations, the web application, iptables rules...).
2015-07-12 10:32:43 +02:00
# ./clean.sh www_base_dir
2015-07-12 10:29:43 +02:00
2015-07-09 14:26:07 +02:00
## 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)