Quick Start

https://hub.docker.com/r/hyr326/openvpn-manager

OpenVPN Manager

fork from https://github.com/Chocobozzz/OpenVPN-Admin

Summary

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

Prerequisite

GNU/Linux with Bash and root access Fresh install of OpenVPN Web server (NGinx, Apache...) sqlite PHP >= 5.5 with modules: zip bower unzip wget sed curl

Debian 8 Jessie

# apt-get install openvpn apache2 php5 nodejs unzip git wget sed npm curl sqlite sqlite-devel # npm install -g bower # ln -s /usr/bin/nodejs /usr/bin/node

Debian 9 Stretch

# apt-get install openvpn apache2 php-zip php nodejs unzip git wget sed npm curl sqlite sqlite-devel # npm install -g bower # ln -s /usr/bin/nodejs /usr/bin/node

CentOS 7

# yum install epel-release # yum install openvpn httpd sqlite sqlite-devel nodejs unzip git wget sed npm # rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm # yum install php56w php56w-pdo # npm install -g bower

Installation

Setup OpenVPN and the web application:

$ cd ~/my_coding_workspace $ git clone https://github.com/hryGithub/openvpn-manager.git $ cd openvpn-manager # ./install.sh /var/www www-data www-data

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

add boot start command

$ echo "cd /etc/openvpn && /usr/sbin/openvpn --config /etc/openvpn/server.conf --d" >> /etc/rc.local

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 /var/www

Desinstall

It will remove all installed components (OpenVPN keys and configurations, the web application, iptables rules...).

# ./desinstall.sh /var/www

Use of

Bootstrap Bootstrap Table Bootstrap Datepicker JQuery X-editable

版权声明:

1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。
2、网站不提供资料下载,如需下载请到原作者页面进行下载。
3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考学习用!
4、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。