VPN Server – How and What Guide for VPN service
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.
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 VPN.
To understand VPN Service you need to understand the following points about VPN:
- What is a VPN?
- Why you need a VPN Servers or VPN Connection.
- Building your own private VPN Server Connection.
- How to set-up a VPN client.
What is a VPN?
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, VPN helps you 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 Free VPN provider.
Even Paid VPN providers uses the same servers with other customers they may have.
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 leak of personal data.
Why you need a VPN Servers or VPN Connection?
- Securely browse the internet.
- Get a dedicated IP for your internet uses and to connect to remote servers or office computer from any location.
- Use public Free or Paid Internet ( like free airport WIFI or Free Google Station Wifi) without being in fear of being monitored by private or government body.
- Connect to the office with a secure connection via the internet.
The disadvantages of VPN Connection:
- Free VPN: I believe free VPN is the most unsure even using the internet without VPN. As FREE VPN provider can monitor your data or even sell it to the third party for making a profit.
- You may face bad connection speed if you choose to do tie up with free or cheap VPN provider.
- You may needa technical knowledge or onetime help for setting up a VPN connection.
Building your own private VPN Server Connection.
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.
Don’t worry about the Linux commands as I will walk you through for every command here in this article.
Step 1: Select your VPS Server
You can select VPS Server on bases of the location you desire for example Suppose 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 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 even more powerful VPN server which may be used by several employees of your company then you can also consider going for Dedicated Servers.
Step 2: Connect to your server
if you are using 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 our OS, to do this use the following two commands:
- Download the OpenVPN auto-installer script
- Make sure the script has the right permissions
chmod 777 openvpn-install.sh
- Run the OpenVPN installer script:
This will open up VPN Configuration screen:
The first thing the configuration will ask is 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 VPN server to use which DNS Server, I personally use google DNS.
Now, The last step is to give username for your client, over here I am using mostlytest.
How to set-up a VPN client
Once you are done with the server setup, you need to setup client which will be used by a user to connect VPN server.
Download Filezilla and open FTP connection with the server using root username / password provided.
You should see openVPN config file under root folder, with the username.ovpm in our case, it should be mostlytest.ovpn as shown in 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 traveller 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 VPN connection.
Why do you use VPN server for ? leave your answer in the comment below.