Skip to content
Share your OpenVPN server with multiple users on Debian, Ubuntu, and CentOS based on Nyr/openvpn-install
Branch: master
Clone or download
Latest commit 19f5957 Dec 24, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Sep 14, 2019 Update Dec 24, 2019

OpenVPN Install for Multiple Users


Share the same client-certificate with everyone. This script pre-enabled the duplicate-cn.

Watch video

Install OpenVPN for multiple users on Ubuntu


Run this script

wget -O && bash

OpenVPN Server

  • Start
service openvpn start
  • Status
service openvpn status
  • Stop
service openvpn stop


  • Uninstall OpenVPN
sudo apt remove openvpn
  • Remove it's dependencies
sudo rm -rfv /etc/openvpn


  • Ubuntu 16.04 is no longer supported, use a latest version of OS
  • Only works with Debian, Ubuntu or CentOS
  • Enable 'tun' device before running this script
cat /dev/net/tun
# if you receive this message, your 'tun' device is running
# cat: /dev/net/tun: File descriptor in bad state
  • This script run on 'bash', not 'sh' for Debian users
  • Run this as 'root'
sudo su
You can’t perform that action at this time.