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.
 
 
 
 
 
SansPseudoFix 51bf65da33 Refacto and highlighting 9 years ago
css Redesign admin navbar 9 years ago
include Redesign admin navbar 9 years ago
installation SECURITY: Avoid simple sql injection when login in openvpn 9 years ago
js Redesign admin navbar 9 years ago
sql Big refresh 10 years ago
.bowerrc Big refresh 10 years ago
.gitignore Big refresh 10 years ago
CHANGELOG.md Add changelog 9 years ago
LICENSE.md Create LICENSE.md 11 years ago
README.md Update screenshots 9 years ago
bower.json Update tables : use bootstrap tables, x-editable, bootstrap 9 years ago
desinstall.sh Refacto and highlighting 9 years ago
index.php Make a subdirectory inside the zip archive 9 years ago
install.sh Refacto and highlighting 9 years ago
update.sh Update tables : use bootstrap tables, x-editable, bootstrap 9 years ago

README.md

OpenVPN Admin

Summary

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

Previsualisation configuration Previsualisation administration

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)
  • Users on GNU/Linux systems, run chmod +x /etc/openvpn/update-resolv.sh as root
  • 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...).

# ./desinstall.sh www_base_dir

Use of