A web panel for controlling an OpenVPN server
Add this direcory to your path variable either in ~/.bashrc
or using
export PATH=$PATH:/this/directory
# Download OpenVPN Panel
git clone https://github.com/nathan-fiscaletti/openvpn-panel.git
cd openvpn-panel
# Modify Configuration
# Set `host` and `port` values in config/server.ini
# Set `client_storage` in config/server.ini
# All client configurations will be stored here. This needs to be
# the same location that is configured in WebConfig.php, and the
# directory needs to be created before you start the OpenVPN Panel.
# Set `client_storage` in config/WebConfig.php
# Set `title` in config/WebConfig.php
# Install Dependencies
sudo apt-update
sudo apt install php composer -y
composer install
# Set up the OpenVPN Server
./bin/openvpn-install.sh
# Running the OpenVPN installation script will
# create a client configuration in the home directory.
# You should delete this and allow the panel to manage
# the certificates.
rm ~/client.ovpn
# Add the default user for the Panel
# (Use a secure password)
sudo openvpnpanel --adduser admin 'password'
# Start the Panel
sudo ./openvpnpanel --start
openvpnpanel --start
openvpnpanel --stop
openvpnpanel --status
openvpnpanel --adduser [name] [password]
openvpnpanel --deleteuser [name]