Skip to content

Install and administrate OpenVPN with a web interface (logs visualisations, users managing...)

License

Notifications You must be signed in to change notification settings

norsig/OpenVPN-Admin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
Sep 6, 2016
Sep 6, 2016
Sep 11, 2016
Sep 6, 2016
Jul 9, 2015
Jul 9, 2015
Jul 9, 2015
Sep 10, 2016
Feb 12, 2014
Sep 12, 2016
Aug 25, 2016
Sep 11, 2016
Sep 12, 2016
Sep 11, 2016
Aug 25, 2016

Repository files navigation

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

About

Install and administrate OpenVPN with a web interface (logs visualisations, users managing...)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 48.9%
  • Shell 35.4%
  • JavaScript 15.3%
  • CSS 0.4%