OpenVPN Tutorial For Debian/Ubuntu on OpenVZ

What is OpenVPN?
OpenVPN is a reliable and well tested VPN solution that is able to run over a single port, supports compression, tunnels over NAT, and is very secure.

What does this script do?
This script will automatically install, configure, and add users to OpenVPN all in under 5 minutes, even with minimal Linux skills. The port forwarding, server configuration, and authentication setup is all taken care of for you.

Features
Automatic .ovpn file generation with inline certificates in a single file
Google DNS servers
Port 53 captive portal bypass server option

How do I install it?
1. Make sure that your VPS has its TUN module working.

Run the following command to check: cat /dev/net/tun

Your VPS TUN module is set correctly if you get this message:

cat: /dev/net/tun: No such file or directory

If you do not get this message, please enable TUN from our Virtualizor control panel located at https://vps.hostodo.com:4083/ You can find your login information in your VPS Welcome Email.

From there, select the VPS you are using, then select "VPS Configuration" and make sure the "Enable Tun/Tap" checkbox is checked. 



2. Now, to install OpenVPN simply login to your server via SSH, and enter the following:

wget https://raw.github.com/cwaffles/ezopenvpn/master/ezopenvpn.sh --no-check-certificate -O ezopenvpn.sh; chmod +x ezopenvpn.sh; ./ezopenvpn.sh
This will run an automated installer. 

Once it ends, you can run it again to add more users.

 
Feel free to open a ticket if you have any questions. 
  • 118 Users Found This Useful
Was this answer helpful?

Related Articles

How to install Tomcat6 Server on Centos6

How to install Tomcat6 Server on Centos6 Tomcat is an Opensource webserver and used for Java...

APF Firewall -Advanced Policy Firewall - Basics

APF Firewall -Advanced Policy Firewall - Basics Advanced Policy Firewall, or APF, is a...

How do I SSH into my VPS? (Windows/Putty)

This article will teach you how to access your server via SSH using the PuTTY client on Windows....

CentOS 7 KVM Template Disk Space Fix

NOTE: This ONLY applies to KVM VPS clients, not OpenVZAfter reinstalling your OS using the CentOS...

Setup Nginx PHP FPM Percona Mysql

Setup Nginx + php-fpm + Percona Mysql LEMP stack is a group of open source software to get...