kurinzo / OpenVPN-Admin

Raspberry Pi OpenVPN Server with a web interface (Users Management, Logs, Visualizations)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Raspberry Pi OpenVPN Admin using LAMP

Summary

Administer OpenVPN Server with a web interface (Users Management, Logs, Visualizations)

Previsualisation configuration Previsualisation administration

Prerequisite

  • Raspbian with Bash access or remote SSH
  • Git

Installation

  • Method 1:

    wget -O - https://raw.githubusercontent.com/arvage/OpenVPN-Admin/master/online-install.sh | bash
    
  • Method 2:

    sudo apt update
    sudo apt install -y git
    cd ~
    git clone https://github.com/arvage/OpenVPN-Admin openvpn-admin
    cd openvpn-admin
    sudo ./install.sh /var/www www-data www-data
    
  • If you are using any other web server than Apache like NGinx, you need to set it up manually to serve the web application.

  • Once the installation is finished browse to http://your_hostname_or_ip/index.php?installation to create your admin user.

Tests

Only tested on Raspberry Pi 3 with Raspbian Buster (No GUI).

Usage

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

sudo ./uninstall.sh /var/www

Use of

About

Raspberry Pi OpenVPN Server with a web interface (Users Management, Logs, Visualizations)

License:GNU Affero General Public License v3.0


Languages

Language:PHP 44.2%Language:Shell 34.5%Language:JavaScript 14.7%Language:Hack 4.7%Language:CSS 1.8%