Tuesday, November 29, 2022
HomeKnowledge ZoneHow to create your own VPN server in 5 minutes?

How to create your own VPN server in 5 minutes?

Hey Friends, Welcome back, today we are going to discuss about VPN. We are going to see what is VPN? some overview of how VPN Network Works ? and yes How we can create or set up our own VPN Server?

So without any delay, let’s dive into it.

What is VPN?

VPN stands for” Virtual Private Network” β€” a service that helps you stay private in the online world. A VPN establishes a secure, encrypted connection between your computer/device and the internet, delivering a private tunnel for your data and communications while you use public networks.

By using VPN Network you are secure from the outer world, third-party attackers, and hackers. While using VPN you are not trackable by your Internet Service Provider (ISP), government, advertisers or any corporate, and also you are safe from hackers and third-party attackers.

How VPN Works - RKR Knwoledge - Create own vpn server
How does VPN work?

How Does VPN Work?

When you are using a VPN for browsing the internet world. at that time your VPN Client App (that is installed on your device) encrypts your traffic or you can say your browsing request, and then it can send it to it’s VPN Server. By encrypting your communication with the public world it creates a tunnel. and cause of this tunnel is created means your data is encrypted now no one can access or see your communication with the internet, and no one can interfere/change your request. And yes even your ISP can’t read your data.

VPN Network Working Process - RKR Knowledge
VPN Network Working Process – RKR Knowledge

After your encrypted request is transferred to VPN Server from VPN Client App. now VPN Server will decrypt your request and send it to the destination. in this whole process, the destination has no idea about your details, destination site/app only knows the details about your VPN Server IP address. so the destination will give a response to VPN Server, and again now VPN Server will encrypt this data and send it to your device, at there VPN Client App now, will decrypt this data and will show the response to you.

This is how VPN Network works. In this whole process, no one can interfere in your browsing traffics and no one sees your internet traffic. and this is how you safely browse the internet by using VPN.

But… but… but …, This is the internet world, and when you are using the internet in any way or from any source. There is no 100% guarantee that you are safe or not traceable in this digital world. There is a somehow chance that your VPN service provider is storing your logs. and they can use this for any purpose like for improving their services or can sell this data to third-party or even the government can ask them for this data. and this is not good for us.

So yes, we know that we can not eliminate all the reasons. but still, we can try for that. so in this article, we are going to create our own VPN Server on the cloud. You can also create it on your home devices if you afford it. but in this post, we are going to host this VPN Server on the cloud.

How VPN Works? How to Create your own Secure VPN without coding in Hindi | Video Tutorial

Creating Our Own VPN Server

When performing security research or connecting over untrusted networks, it’s often useful to tunnel connections through a VPN in a public cloud. One way to accomplish this is to set up your own VPN server, as an alternative to relying on a commercial VPN service.

For this purpose, we are going to use OpenVPN. OpenVPN provides 2 parallel VPN connections in the free version. i think it is enough for the general use case. If you need more connections then you get the pro version of it or you can also use Algo VPN for this purpose (Algo VPN is an open-source software bundle designed for self-hosted VPN services). and DigitalOcean as a cloud server. I like using DigitalOcean for this purpose because it offers virtual machines( VMs) for as low as $5 per month; also, I find it easier to use than other cloud services.

So let’s start by creating a DigitalOcean droplet(Linux-based virtual machines (VMs) that run on top of virtualized hardware.).

Creating a DigitalOcean VM

To gain an Internet-accessible system where we will install openVPN server software. we can create a “droplet” on DigitalOcean running Ubuntu in a few clicks.

After successful login, or if you not created your digitalocean account yet then signup through my referral link, and you will get 100$ as a signup bonus. so now here, in digitalocean dashboard, in side menu you will see Marketplace link click on it. then you will be redirected to digitalocean Marketplace. At there do search “openVPN Access Server” in search box.

openVPN Access Server

After searching you will get result like in image above. click on it and you will be redirected to it’s detail page about openVPN, you can read it for more information..

For creating openVPN Access server click on “Create OpenVPN Access Server droplet” button. and you will be redirected to create droplets page as shown below.

Creating DigitalOcean droplet for openVPN Access Server - RKR Knowledge
Creating DigitalOcean droplet for openVPN Access Server

Accepting default options for the droplet should be OK in most cases. However, selecting the least expensive size will probably serve, If you are not planning to tunnel a lot of traffic through the system. Pick the geographic region where the VM will run based on your requirements. Assign a hostname that appeals to you and fill basic information that needed, then click on create droplet.

Once the new droplet is active, make a note of the public IP address that DigitalOcean assigns to it and click on Get Started Link for quick guide for further process. or you can follow below points in this article.

Getting started after deploying OpenVPN Access Server on DigitalOcean

Here, we successfully created a droplet with OpenVPN Access Server now we have to do some setup for OpenVPN.

Deployment steps

  1. Log on via SSH to start the setup procedure, you will be asked a number of questions that need to be answered.
  2. Once that is complete, enter the command “passwd openvpn” to set a password for your Access Server.
  3. Now open the address of your server in a web browser, for example: https://123.45.67.89:943/admin/
  4. If you see any SSL certificate warnings, that is normal, please override them.
  5. Now log on with username ‘openvpn’ and the password you set in step 2. You can now start using your OpenVPN Access Server by adding users in the User Permissions table, and by checking and adjusting settings as needed on the VPN Settings page. By visiting the Access Server address without the /admin in the URL in your web browser, you can then log in as a user and obtain the required software and settings to get connected.
create own vpn server - RKR Knowledge
Creating User in openVPN Access Server

Configuring VPN Clients

Once you’ve set up the openVPN Access Server and created a user.

Now, we have to set up the client version of OpenVPN for that we have to log in on the client section of OpenVPN, for that open the address of your client-server in a web browser, for example, https://123.45.67.89/ and do login with user credentials (that user we created in OpenVPN Access Server).

own vpn server - RKR Knowledge

After login, you will be redirected to the page as shown above. Here you need to download a client app of OpenVPN. So download and install it based on your device requirements and do necessary profile setup if needed.

And that’s it, now you are ready to go use your own VPN Network.

Be Sure To Confirm About VPN

Before depending on a VPN to shield your interactions with malicious infrastructure, be sure to confirm that it’s hiding the necessary aspects of your origin. However, the remote host should see the IP address of your VPN servers, rather of the IP address of your VPN client, If it’s working properly. Also, your DNS traffic should be getting directed through the VPN tunnel, hiding your client’s locally-configured DNS server. One way to validate this is to use whoer.net, comparing what information the site reveals before and after you activate your VPN connection. Also, confirm that you are not leaking your origin over IPv6; one way to do that’s by connecting to ipv6leak.com.

So, this is how you create or setup your own VPN server. and yes you can turn off your VM when you don’t need it, that’s save your moneyπŸ’Έ. it’s a good idea to periodically destroy this DigitalOcean droplet and create a new one from scratch that can change your VPN Server IP address time to time and it’s good for us and also save us from being a blacklist member of some sites. 

As I said earlier in the digital world there is no 100% guarantee that you are not traceable, there is also a chance, but still setting up our own VPN Server is a better option than using other ‘s VPN servers, cause there is have our full control on our data. and this is much cheapest than paid VPN services.

So, Ya that’s it for today friends. if you like this article then please like, share this with your circle, and show some ❀️.

Thank You!😊 Keep supporting us.

Read More:

Rahul K Rajhttps://rkrknowledge.com/
Hi πŸ‘‹, I'm Rahul Raj Kushwaha also known as Rahul K Raj. A passionate full-Stack developer from India. You can call me: Entrepreneur | Youtuber | Blogger | Coder | Developer | UI Designer | Hacker | Music Composer. I like to share my knowledge on such great platforms like RKR Knowledge. I try to learn something new every day.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -

Stay Connected

29FansLike
41FollowersFollow
502SubscribersSubscribe

Most Popular

Recent Comments