2015-07-09 21:19:54 +02:00
2015-07-09 21:19:54 +02:00
2015-07-09 21:19:54 +02:00
2015-07-09 21:19:54 +02:00
2015-07-09 21:19:54 +02:00
2015-07-09 21:19:54 +02:00
2015-08-07 19:20:17 +02:00
2015-07-09 21:19:54 +02:00
2015-08-07 19:20:31 +02:00
2014-02-12 10:55:21 +01:00
2015-07-29 15:10:58 +02:00
2015-07-12 10:29:43 +02:00

OpenVPN Admin

Summary

Administrate its OpenVPN with a web interface (logs visualisations, users managing...) and a SQL database.

Previsualisation

Prerequisite

  • 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

Tests

Only tested on Debian Jessie. Feel free to open issues.

Installation

  • Setup OpenVPN and the web application:

    $ 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
    
  • 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 (and put them in /etc/openvpn)
  • User run OpenVPN (for example systemctl start openvpn@client)

Update

$ 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...).

# ./clean.sh www_base_dir

Use of

S
Description
No description provided
Readme
3.2 MiB
Languages
PHP 47.7%
Shell 26.3%
JavaScript 15.1%
Hack 5.2%
TSQL 3.7%
Other 2%