Install OpenVPN in 5 minutes

OpenVPN road warrior installer for Debian, Ubuntu and CentOS.

This script will let you setup your own VPN server in no more than a minute, even if you haven’t used OpenVPN before. It has been designed to be as unobtrusive and universal as possible.

REQUIREMENT

  1. VPS Server
  2. Centos, Debian or Ubuntu Operating System
  3. Putty Software
  4. OpenVPN Software
  5. WinSCP Software
  6. A laptop
  7. A basic knowledge about command in linux
  8. A cup of tea

Step 1

Run the script and follow the assistant:

wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh

 

Step 2

Put your VPS ip ( I believe it auto detect your VPS IP ) and press enter

Step 3

Select the protocol you want. Standard protocol is UDP

Step 4

Select the OpenVPN port you want. Standard port is 1124. You can change to your like. I leave it to default value

Step 5

Select the DNS you want to use on the openVPN. I choose google DNS because google DNS is more faster !

Step 6

Insert your openVPN name and press enter. Press enter again and wait for a minute for the script downloading and generate the keys

Step 7

Remote your server using WINSCP software or any FTP Software

Step 8

Click Yes for first time login. Never click no, or you unable to remove again your VPS Server

Step 9

Navigate to  root folder, and you will see your VPN Server config files

Step 10

Download the config files, and places it on your desktop

This picture show the configuration files in your desktop

Step 11

After you install the OpenVPN Software. Navigate to C:\Program Files\OpenVPN\Config and cut your OpenVPN config files in desktop and move to the folder

Step 12

Go to your taskbar, near the clock, and files openVPN software, right click on your opeVPN config, and click connect

Step 13

Wait a few minute, your vpn is dialling your VPS Server to connect.

Step 14

Now your vpn is connected to your VPS Server

Step 15

To check whether your laptop is connected to openVPN server, go to this website, http://whatismyip.com

As you can see, my ip show the VPS ip, means its really connected to my VPN Server

Step 16

You can doing a speedtest at http://speedtest.com to check your ip or your connection speed using VPN Server.

Step 17

If you want to add new user, just run this command

bash openvpn-install.sh

Step 18

Select add new user option, no 1, for example I named it pc01

Step 19

Go to your FTP Software and download the new configuration. As you can see there are two config files.

That all a basic tutorial setup openVPN in 5 minutes. This tutorial is for lazy person who are lazy to install one by one how to configure VPN Server. This is a pre compiled scripts for easy to setup VPN Server. Good luck ! Hope this tutorial give benefit to you!.