Skip to content

How Do I Setup My Own VPN Server? – Step By Step Guide

Data Privacy is the biggest topic in the era of Digital India.  But, do you know like good health is our own hand similarly Data privacy is also in our hand.
Reading Time: 6 minutes
vpn

One of the best ways to get some security in terms of data privacy is by using a tool called VPN. In this article, I will explain everything you want to know about setting up a VPN server in India or any location.

Table of Contents

What is a VPN server?

VPN stands for Virtual Private Network and as the name suggests, it is a private tunnel (network) between two computers.

Like in real life, you would not give any personal information to any person, similarly, one of the major benefits of a VPN is to secure your online data.

VPN or Virtual Private Network is today a fairly established technology in the field of the Internet.

Today we have a lot of vendors who claim to provide you Free VPN Service but remember we are setting up VPN for security then how can we depend on a Free provider.

This video will give you a fair idea of what is a VPN?

Our Mission : CONNECTING YOUR WORLD SECURELY

Get access to Enterprise VPN India Server and unlimited high-speed bandwidth in India!

Is VPN legal in India?

The short answer is, Yes!
VPN is totally legal in India, and in fact, many Banks and Government bodies even use VPN Server India to transfer data securely over the internet. 

Why you need a VPN Servers or VPN Connection?

Here are some bullet points, which will give you a quick overview of all the reasons you may need a VPN server for. 

Above are some points due to which you may need a VPN server. 
But, as you are reading this article you may already have a solid reason to have a VPS Server. 
Now the big question will be which type of VPN server do you want?  

Free VPN Vs Paid VPN

There are several VPN providers out there but you are the user and you are the one who needs to decide on the type of VPN server. 

If data security is your concern then a Free VPN service provider should be out of your list. 

Even most of the paid VPN services provider, share your server with other clients, 
Making your data unsecured.

What is the Solution?

The answer is having your own Private VPN Server or VPN tunnel, on which you have full control.

In the past, VPN was used mostly in companies and in businesses where employers wanted to have secure data transport and interconnection, regardless of whether they worked in the office or at home.

But, now even end-users like you and me can use VPN to securely use the internet without being fear of hack attempt or leaks of personal data.

In the Private VPN Server Plan you own the server on which VPN is setup. 

You can either use our ready-to-use VPN Server below powered by the OpenVPN client.

The VPN Server listed on VPN Server Plan which is built upon our Linux VPS Server

We also provide VPN servers at 30 different locations, feel free to get in touch with us, if you want the VPN server at any location. 

However, if you want to set up your own VPN server, follow the instruction below.

How Do I Setup My Own VPN Server?

By now you must have had a fair amount of idea for the importance of VPN servers.

Now let’s build our own VPN server.

The easiest way to have your VPN server is to have it order from the above plans. In case, if you need full control of your server with your VPN Network. 

For building your own VPN server you need a Linux VPS server, basic knowledge of Linux commandsPuTTY SSH ClientFileZilla Client, and Pritunl OpenVPN Client

Don’t worry about the Linux commands as I will walk you through every command here in this article.

The Most Powerful VPS Hosting In India

With the option of a fully managed VPS Solution In India, Netspace (India) provide full flexibility and power to end-users.

Step 1: Select your VPS Server

You can select a VPS Server on basis of the location you desire, for instance, if you want to use Facebook and you are based in China then you can select VPS Server in India (Facebook is banned in China) or if you are based in Mumbai and you want your VPN to be near you then you can select and VPS based in our datacenter in Mumbai.

If you want an even more powerful VPN server that may be used by several employees of your company then you can also consider going for Dedicated Servers.

Once you have decided on the right server and you have ordered it, you will get your server details with the root password.

Step 2: Connect to Your Server

If you are using a windows machine the first step is to connect with your new Linux server.
Once you download Putty enter the server IP address in the server connection area and use the root username and password which must have been emailed to your registered id.

Step 3: The Linux Commands for VPN Server setup

The first thing we need to do is update OS, to do this use the following two commands:

yum update

yum upgrade

Next, download the OpenVPN auto-installer script

wget https://raw.githubusercontent.com/Nyr/openvpn-install/master/openvpn-install.sh

Make sure the script has the right permissions

chmod 777 openvpn-install.sh

Run the OpenVPN installer script:

bash openvpn-install.sh

This will open up VPN Configuration screen:

Initially, the configuration will ask for the VPN IP address, this should be your VPS / Dedicated Server IP. 

This should be shown automatically if not then enter the correct one as per your activation email.

After which you need to tell the VPN server which protocol to use, select UDP.

leave the default port as displayed (note it down).

The important step is to tell the VPN server to use which DNS Server, I personally use google DNS.

Now, the last step is to give a username for your client, over here I am using mostly test.

How to set up a VPN client?

Once you are done with the server setup, you need to set up a client which will be used by a user to connect a VPN server.

Download Filezilla and open the FTP connection with the server using the root username/password provided.

You should see the OpenVPN config file under the root folder, with the username.ovpm in our case, it should be mostlytest.ovpn as shown in the screenshot.

Next, you need to download and open pritunl open VPN client, click on import profile and import the OpenVPN configuration file you just downloaded.

Now, Just click on connect and it should connect to your new VPN server and in no time you should be connected to your own private VPN.

Why I use VPN?

Well, I have a traveler inside me hidden deep inside me, and sometimes when I need to travel for office work or just for fun I need to be in touch with my office and clients this where I use a VPN connection. 

Why do you use a VPN server for? leave your answer in the comment below.

 
Facebook
Twitter
LinkedIn
Digg
Picture of Shashi kant Pandidhar

Shashi kant Pandidhar

I’ve been helping businesses to be online for over 15 years. Today my team and I, focus on helping real businesses to overcome real-life challenges and analyse data in a way that can help businesses grow in the right direction of this digital age.

Leave a Comment

Get the latest news and deals

Sign up for email updates covering blogs, offers, and lots more.

Current Deals at Netspace

Subscribe: Trusted By 1M+ Readers

Get the weekly Tech Update straight to your inbox.

//
Our customer sales team is here to answer your questions. Ask us anything!
👋 Hi, how can I help?

Schedule Appointment

Fill out the form below, and we will be in touch shortly.
Contact Information
Additional Information
Preferred Date and Time Selection

Free .Online Domain

Every Active Netspace (India) Customer is eligible for a free 1-year non-premium .ONLINE / per account
The campaign runs until December 31 of 2024!

100% off

on your first Year