Awesome Open Source
Awesome Open Source


Bash script for easy and fast OpenVPN server deploy

For CentOS 7.x and Ubuntu Server 17.x only. (Ubuntu Server 16.x is supported, but it have OpenVPN 2.3.x) Use only on fresh installed machine. It will rewrite your iptables and OpenVPN configuration.


  • Setup new server with one command in a couple of minutes;
  • Creates client config in unified format;
  • Choose of port and protocol;
  • Choose of cipher;
  • IPv6 support.

Usage: ./

Before enabling IPv6 support ensure that your machine have IPv6 address. Note: iptables rule allow port 22 tcp (ssh) by default, if you have sshd on another port modify script before execution.

After script is complete you can create client config files in unified format with /etc/openvpn/ script. Usage: ./ clientname Config file will be saved to /etc/openvpn/bundles/clientname.ovpn and it ready to use (even on mobile device).

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
shell (10,197
vpn (250
bash-script (105
openvpn (76
vps (32