Tuesday, July 8, 2025
  • About us
  • Economic Calendar
  • Price Predictions
  • Coins Alerts
  • Crypto Portfolio Tracker
  • Exclusively from Our Partners
Cryptheory
  • Cryptocurrency List
  • Cryptocurrency
    • Cryptocurrency Exchanges
      • Top exchanges for trading Bitcoin derivatives
      • How to buy bitcoin without KYC
      • How to Trade Bitcoin – best platforms
      • Best platforms to buy Bitcoin by debit or credit card
      • Platforms for Grid Trading
      • BYDFi: Review and Guide
      • BingX: Review and Guide
      • Kraken: Review and Guide
      • Bybit: Review and Guide
      • Bitpanda: Review and Guide
      • Phemex: Review and Guide
      • Huobi: Quick Guide
      • Binance: Review and Guide
        • Binance Futures Guide
    • Bitcoin
    • Tether
    • XRP
    • Dogecoin
    • Avalanche
    • Stellar
    • The Open Network
  • crypto news
  • Crypto Exchanges Info
  • Analysis
  • Attractions
No Result
View All Result
  • Cryptocurrency List
  • Cryptocurrency
    • Cryptocurrency Exchanges
      • Top exchanges for trading Bitcoin derivatives
      • How to buy bitcoin without KYC
      • How to Trade Bitcoin – best platforms
      • Best platforms to buy Bitcoin by debit or credit card
      • Platforms for Grid Trading
      • BYDFi: Review and Guide
      • BingX: Review and Guide
      • Kraken: Review and Guide
      • Bybit: Review and Guide
      • Bitpanda: Review and Guide
      • Phemex: Review and Guide
      • Huobi: Quick Guide
      • Binance: Review and Guide
        • Binance Futures Guide
    • Bitcoin
    • Tether
    • XRP
    • Dogecoin
    • Avalanche
    • Stellar
    • The Open Network
  • crypto news
  • Crypto Exchanges Info
  • Analysis
  • Attractions
No Result
View All Result
Cryptheory
No Result
View All Result

How to Make & Setup A VPN Server – 2020 DIY Guide

by cryptheory
February 5, 2023
in Guides
Reading Time: 19 mins read

Table of Contents

  • Reasons to Setup Your Own VPN
  • Reasons Not to Setup Your Own VPN
  • VPN Basics
  • Three Ways to Setup a VPN Server of Your Own
    • Setting Up a VPN Server on Your Router
    • Setting Up a VPN Server on Your Own Computer
    • Setting Up a VPN Server on a Cloud Service
  • How to Set Up a Personal VPN Server on DigitalOcean
  • Conclusion

In this step-by-step guide, we show you three ways you can make your own VPN server. We also list the pros and cons of doing so versus using a commercial VPN.

How to Make & Setup A VPN Server – 2020 DIY Guide

The Internet is no longer a safe place. Sometimes it seems that the Internet was designed to make it easy for governments, businesses, and snoops of all sorts to spy on regular people. So it is no surprise that vast numbers of people are using VPNs to protect themselves.

But even the best commercial VPN services have their weaknesses. That’s why more and more people are looking to create their own VPN.

It is also 2020 and with everything that is happening in the world you may be tight on money, looking to pass the time in lockdown etc.

In this article, we’ll look at the various reasons to set up your own VPN as well as reasons not to do so. We’ll also talk about three ways to get the job done and look at one of them in more detail.

By the end of this article, you should have a good sense of whether or not setting up your own VPN makes sense for you, and which approach you would like to take.

Reasons to Setup Your Own VPN

There are lots of reasons to use a VPN in today’s world. But since you are here, we assume you already know why you need a VPN. We further assume that you are trying to decide between using a commercial VPN Service like ExpressVPN or NordVPN or creating your own VPN.

To help you make that decision, here are some good reasons to setup your own VPN instead of subscribing to a commercial service:

  • You want the benefits of a VPN Service without the monthly payments.
  • You don’t want to take the chance that your online activities will be logged by a VPN Service. (Although, services like ExpressVPN have proven themselves to be zero log time and time again in various legal battles)
  • You want access to your home network from anywhere in the world.
  • You want access to local resources (your home Netflix account, for example) when you are in a different geographic location.
  • You want to give other people access to resources on your home network.

Reasons Not to Setup Your Own VPN

While there are some good reasons to set up your own VPN, there are also a lot of reasons not to do so. These include:

  • You don’t have a fast Internet connection – You need both fast upload and download speeds wherever your VPN Server is located or it will slow down everything connected to your personal VPN.
  • You need a VPN to connect to resources in other geographic locations – VPN Services with multiple servers let you make it appear you are located in any of dozens, even hundreds of locations around the world. Since your VPN would have only one server you can only appear to be located in one place.
  • You want to hide your IP Address – If you build your VPN Server on your own hardware, it will have an IP Address associated with your home network.
  • You don’t want to handle the maintenance – It falls on you to maintain and update the VPN Server as well as the hardware and software it runs on.
  • You have to have the technical ability to set up the VPN Server and clients.
  • You want to hide your payment and identity information fully. The VPN you setup yourself might be safe from logging, but if you purchased the server you tunnel through, with your real name and payment details you are much more vulnerable than using a VPN service.

VPN Basics

If you are considering setting up your own VPN, you’ve probably got all the basics down already, but just in case, we’re going to start at the beginning. If you are clear on this stuff already, go ahead and skip ahead to, “Three Ways to Setup a VPN of Your Own.”

When you connect your device to an Internet resource without a VPN, the contents of the messages going back and forth are potentially visible to snoops. In addition, for the Internet to know where to send the messages, each message must expose a header that contains your IP Address as well as the IP address of the Internet resource you are connected to.

How to Make & Setup A VPN Server – 2020 DIY Guide
Your IP Address Can Be Seen If You’re Not Using a VPN

So everything is visible to snoops with the right tool.

Many Internet resources try to stop snoops with HTTPS. This is an Internet protocol that automatically encrypts the contents of messages. This can definitely help since it prevents snoops from seeing the contents of the messages going back and forth.

But HTTPS doesn’t do anything to prevent snoops from seeing that you (a device at your IP Address to be more precise) are communicating with that particular Internet resource. Using a VPN eliminates this problem. Here’s why:

A VPN addresses this problem by putting a VPN Server in the middle of the conversation. The VPN Server sits between your device and an Internet resource. Your device only connects to the VPN Server. The Internet resource only connects to the VPN Server. The VPN Server passes messages back and forth between your device and the resource.

This helps because the VPN Server uses its own IP Address when communicating with the resource on behalf of your device. Anyone spying on the connection between the server and the resource would only see the IP Addresses of the VPN Server and the Internet resource. Your privacy is protected on this part of the connection because no one looking at this connection can see your IP Address.

server working
VPN Diagram

But that still leaves the connection between the VPN Client and the VPN Server. To address this part of the problem, the client and server encapsulate messages passing between them. That is, they encrypt the entirety of the messages between the device and the resource. Then they include the encrypted messages inside another message. This second message is what goes back and forth between the client and the server.

eye spy

The advantage of doing this is that only the second message’s header information needs to be visible to the world. And all that message’s header can reveal is that your device and a VPN Server are communicating with each other. Snoops can’t see anything of the original message because the whole message, including the header, is encrypted in the body of the outer message.

At the VPN Server, messages coming from your device are extracted from the body of the outer message and decrypted. Then, in the header of your device’s message, the IP Address of your device is replaced by the IP Address of the VPN Server. This modified message is what gets sent to the Internet resource.

Messages coming from the Internet resource arrive at the VPN Server. There, the IP Address of the VPN Server gets replaced by the IP Address of your device. This modified message then travels down the tunnel to the VPN Client in your device, where it is extracted, decrypted, and passed along to your device as if the VPN wasn’t in the middle of everything.

As we’ve just seen, the VPN Server is the core of a functional VPN. In the rest of this article, we will look at ways to set up your own VPN Server and ignore the VPN Client. There are two reasons for this.

  • The VPN Server you set up will dictate how you need to set up your VPN Clients.
  • There are way too many devices you can connect to your VPN. If we tried to talk about the VPN Clients for each we would never finish writing this article.

As it turns out, setting up your own VPN Server is plenty complicated enough for one article. We’ll start exploring this topic by looking at the three ways to set up a VPN server of your own.

Three Ways to Setup a VPN Server of Your Own

There are three ways to setup your own VPN Server. The way you go will depend on what you plan to do with the VPN and what hardware you will be using. You can set up the VPN Server:

  • On your router – If you are using a router with built-in VPN capabilities, or your router supports custom firmware like DD-WRT or OpenWrt, you can set up the VPN Server on your router.
  • On your own computer – If installing the VPN Server on your router isn’t an option, you can set up a VPN Server on a spare computer, even something tiny and low-powered like a Raspberry Pi. This is relatively easy to do, particularly if you use a computer running Microsoft Windows, which has built-in VPN capabilities. Of course, if you go this route, you will need to keep the computer that hosts your VPN Server running whenever you want to use the VPN.
  • On a cloud service – This approach doesn’t require you to have any additional hardware. However, if you host your VPN Server on a cloud service, you need to keep in mind that the cloud service will be able to see whatever you do with the VPN.

Let’s look at each of these options in more detail.

Setting Up a VPN Server on Your Router

Some home and business routers have a VPN Server built right into them. To use it, you simply need to log into the router, then turn on and configure the VPN Server. If your router has this capability, the manual that came with it should give you instructions on how to activate it. If not, a search formatted something like this should lead you to those instructions:

Router name VPN configuration

A more common situation is where your router doesn’t have a built-in VPN Server but “supports” one. This typically means that you can install third-party firmware on the router and that when the right firmware is installed, the router will be able to function as a VPN Server.

Three types of third-party router firmware are the most popular. These are:

  • DD-WRT
  • Tomato
  • OpenWrt

Not all routers support these firmware packages. To find out if yours does, you’ll either need to dig through your router’s documentation or check the site of the firmware you want to use.

  • DD-WRT has a Router Database where you can search for your router to see if it is supported.
  • The main Tomato page linked above lists the routers that are known to work with this firmware.
  • OpenWrt has a Supported Devices page with the information you need.

Even if your router does support one of these firmware packages, installing new firmware on a router is not a job for a computer beginner. While the sites provide detailed instructions for installing their firmware, there is a lot more involved than running an install program.

And one possible result of making a mistake is turning your router into a useless piece of junk that you can only throw away.

Here’s a high-level view of the DD-WRT installation process:

DD-WRT installation process
DD-WRT installation process

Setting Up a VPN Server on Your Own Computer

If your router doesn’t support third-party firmware, or you don’t want to take the chance of wrecking it, you can install a VPN Server on one of your own computers. Doing this will allow you to have access to files on the computer that hosts the VPN Server, as well as resources on your network that are accessible from the computer.

The easiest route is to use a Windows or Mac desktop that you are willing to leave running 24 hours a day. After all, a VPN Server does you no good if the computer it runs on is turned off when you need it.

Turning a Single-Board Computer into a Dedicated VPN Server

A slightly geekier approach is to take a small device like a Raspberry Pi and turn it into a dedicated VPN Server. This approach has the advantage of not tying up a larger, more expensive, more power-hungry computer for this single task.

‘How to Set up a VPN Raspberry Pi
Raspberry Pi – Photo courtesy Ruth Salinas Correa

Even a Raspberry Pi is potent enough for a basic VPN Server.

While this is a cool way to go and appeals to the geek side of your author, there are a few disadvantages to this approach:

  • You need a Raspberry Pi to dedicate to the task.
  • It adds an additional level of learning to the project if you aren’t already familiar with these devices.
  • The performance of the VPN could suffer. Encrypting, encapsulating, and decrypting messages takes a lot of computing power and small devices like this will do the job slower than full-sized machines.

If this approach appeals to you, we suggest you visit the PiVPN site. It shows you how to set up OpenVPN on a Raspberry Pi with a minimum of fuss and bother. Or watch this video:

Setting Up a VPN Server on a Cloud Service

Setting up a VPN Server on a cloud service eliminates the need for your own hardware. You don’t need to hack your router or dedicate a computer to playing the role of VPN Server. This can be a convenient way to go.

But there are drawbacks to this approach as well. When you set up a VPN Server on a cloud service, you do so by installing software on a virtual machine running on the cloud services servers. This means that your VPN Server will be slow since it will be running on distant, simulated hardware.

How to Make & Setup A VPN Server – 2020 DIY Guide

It also means that you need to trust the cloud service completely. Everything you do will happen on their hardware, using their virtual machines. This leaves you with the same problem as using a commercial VPN Service: you need to trust a third-party.

The difference here is that commercial VPN Services sell themselves on their commitment to protecting your privacy. Services like ExpressVPN and NordVPN base themselves in jurisdictions where your privacy rights are protected. They cannot easily be forced to log your activities and share that information with the NSA, MI6, or whoever else is out there trying to spy on you.

Cloud services have a very different business model and are often based in places like the USA, where your privacy is not well protected. In our opinion, the chances that a cloud service would log your activities on their own, or be pressured into it by their local government, are much higher than with a top-notch commercial VPN Service.

How to Set Up a Personal VPN Server on DigitalOcean

One of the triggers for writing this article was seeing some online claims that it is quick and easy to set up a VPN Server on a cloud service. With people claiming you could have a VPN Server up and running in 10 minutes for only a few dollars a month (or even free for the first year), we thought we should investigate.

What we found was not encouraging.

The approaches we found a FOSS VPN Server called Algo. Algo seems to be a great software and works as advertised. It provides encrypted communications between your devices, and the Algo VPN Server running on Amazon EC2, DigitalOcean, Microsoft Azure, and other similar services.

Algo VPN
Algo VPN

But it doesn’t give you anonymity, and it doesn’t support the commonly-used OpenVPN protocol.

The problems come in with fast and easy claims. Unless you are a computer tech with Linux experience, setting up Algo isn’t easy or fast. It takes around 20 steps, many of which are done on the Linux command line. We had an experienced engineer set up Algo on DigitalOcean, and it took about 45 minutes.

To give you an idea of what you will need to deal with if you decide to install Algo on a cloud service, here are selected screenshots of the process.

First, you need to set up an account at the service (DigitalOcean in this example):

How to set up VPN DigitalOcean
DigitalOcean Dashboard

Clicking the Get Started with a Droplet (the DigitalOcean version of a virtual machine) gave us the options shown in the next screenshot. We created a Droplet running Ubuntu 18.04 by clicking the relevant button and selecting the plan we wanted:

DigitalOcean
Create Droplets – DigitalOcean

After a few minutes of waiting while DigitalOcean created the Droplet for us, we had a virtual machine running Ubuntu 18.04 ready to roll:

VPN DigitalOcean
Virtual Machine running Ubuntu 18.04

We logged into the Droplet and followed the instructions in the Algo Github repository to download and extract the Algo files, install Algo core and remaining dependencies. Then we opened the Algo Config.cfg file and edited it to include the list of users who would be able to log into the VPN:

VPN
Algo Config File

With all that out of the way we launched the Algo installer, and selected the DigitalOcean option:

Algo
Algo Installer

The Algo installer uses the DigitalOcean API to do most of the configuration work, so we sat back and waited about 15 minutes for the installation to finish.

As mentioned in the following screen capture, there are several values you must copy from the console once the installer finishes its work. Without these, you will not be able to add new users later:

Algo VPN
Algo Installer – Last Step

With that, the Algo VPN Server is installed in a DigitalOcean Droplet.

Now all you have to do is manually configure every client device that will connect to the server. Depending on the device, setting up the client could be pretty easy, or not so easy. As with setting up the server, the Algo Github page has links to the details of setting up clients on various popular types of devices.

When you finish that task you will have a fully functioning VPN Service of your own. It will be a slow VPN. You will need to trust that DigitalOcean won’t snoop on you as we discussed earlier. And because it has only a single server, it will be of limited use compared to commercial VPN Services, but it will be yours.

Despite the articles talking about the benefits of doing so, we really can’t see much reason to create your own VPN using a cloud service other than as an exercise for hardcore techies.

Conclusion

There are some privacy and security advantages of setting up your own VPN. These are most pronounced when you set up a VPN Server on your own hardware. In this article, we looked at three ways to get the job done, two of which involve setting up the server on your own hardware.

This table summarizes the pros and cons of each of the three approaches, as well as those of using a commercial VPN Service.

Pros and Cons for Setting Up Your Own VPN

VPN Server on Your Own RouterVPN Server on Your Own ComputerVPN Server on Cloud ServiceUsing a Commercial VPN Service
ProtectsEntire NetworkSpecific DevicesSpecific DevicesSpecific Devices or entire network depending on service selected
PrivacyNo need to trust third-partiesNo need to trust third-partiesCloud Service could log activitiesVPN Service could log activities
SecurityGoodGoodLowBest
SpeedMediumSlowSlowestFastest
Ease of SetupMediumLowLowHigh
Ease of MaintenanceMediumLowLowHigh

As we’ve seen, while setting up a VPN Server for your own use is doable, it can be a lot of work and requires much more technical expertise than simply subscribing to a commercial VPN Service.

If you do decide to go this route, remember that you’ll also need to set up VPN Clients for each device you want to connect to your server. If the VPN Server documentation doesn’t have instructions you need, you should be able to find them with a quick web search.

  • Author
  • Recent Posts
cryptheory
cryptheory
Core team behind Cryptheory Labs and website Cryptheory.org.
cryptheory
Latest posts by cryptheory (see all)
  • Why Online Advertisers Should Request Website Traffic Data from Google Analytics Instead of Using SEO Tools Like MOZ or Ahrefs? - March 24, 2025
  • North Carolina’s Bold Move: State Bill Proposes Investing 10% of Public Funds in Bitcoin - March 22, 2025
  • Justin Sun Stakes $100 Million in Ethereum on Lido – What Does It Mean for the Market? - March 19, 2025
Tags: guideVPN
Previous Post

The famous music video director Joseph Kahn has a new favorite hobby – crypto trading.

Next Post

Bitcoin remains closely correlated with gold, says CoinMetrics

Related Posts

What is Altcoin: Unveiling the World of Alternative Cryptocurrencies in 2025
Guides

What is Altcoin: Unveiling the World of Alternative Cryptocurrencies in 2025

June 18, 2025
How to Trade Meme Coins in 2025: A No-BS Guide for Degens and Smart Investors Alike
Guides

How to Trade Meme Coins in 2025: A No-BS Guide for Degens and Smart Investors Alike

June 9, 2025
Top P2E Erotic Games Where You Don’t Just Play… You Earn (and Maybe Break a Sweat Too)
Gaming

Top P2E Erotic Games Where You Don’t Just Play… You Earn (and Maybe Break a Sweat Too)

May 12, 2025
How to Start Trading Crypto Without Screwing Yourself Over: A Beginner’s Guide
Guides

How to Start Trading Crypto Without Screwing Yourself Over: A Beginner’s Guide

May 1, 2025
Where Can You Pay With Crypto? Best Vacation Destinations for 2025
Guides

Where Can You Pay With Crypto? Best Vacation Destinations for 2025

April 28, 2025
How to Store and Use Crypto During the Apocalypse: The Ultimate Survival Guide for the Digital Age
Guides

How to Store and Use Crypto During the Apocalypse: The Ultimate Survival Guide for the Digital Age

April 22, 2025
What is Ethereum Virtual Machine (EVM): Heart of Ethereum
Attractions

What is Ethereum Virtual Machine (EVM): Heart of Ethereum

April 15, 2025
What Is the Chaikin Money Flow (CMF) Indicator and Why Should You Watch It
Guides

What Is the Chaikin Money Flow (CMF) Indicator and Why Should You Watch It

April 7, 2025
How to Spot the First Signs of a Recession: A Guide for Every Investor
Attractions

How to Spot the First Signs of a Recession: A Guide for Every Investor

April 4, 2025
Please login to join discussion
Track all markets on TradingView
Score: 0
Game Over

Popular

Analysis & Trading Tips June 10, 2025: Dogecoin Is Barking Again

Analysis & Trading Tips June 10, 2025: Dogecoin Is Barking Again

June 10, 2025
Ethereum’s Not Dead Yet: On-Chain Data Screams Rebound & Trading Tips

Ethereum’s Not Dead Yet: On-Chain Data Screams Rebound & Trading Tips

June 27, 2025
Bitcoin’s Ready to Blow… Upwards?

Bitcoin’s Ready to Blow… Upwards?

July 3, 2025
BTC Analysis & Trading Tips: Bitcoin’s Banging on Resistance – Is It Time to Moon or Nuke?

BTC Analysis & Trading Tips: Bitcoin’s Banging on Resistance – Is It Time to Moon or Nuke?

June 25, 2025
Bitcoin Price Analysis & Trading Tips – June 9, 2025

Bitcoin Price Analysis & Trading Tips – June 9, 2025

June 9, 2025
Altseason Is Coming: Time to Saddle Up, Degens

Altseason Is Coming: Time to Saddle Up, Degens

June 20, 2025
Ethereum's $5K Dream: Breakout or Breakdown?

Ethereum’s $5K Dream: Breakout or Breakdown?

July 2, 2025
Solana On-Chain Frenzy: New Addresses, Spikes, and Degens Running Wild

Solana On-Chain Frenzy: New Addresses, Spikes, and Degens Running Wild

June 12, 2025
Bitcoin at $104K: Spoofers, Liquidations & Degens – Welcome to the Danger Zone

Bitcoin at $104K: Spoofers, Liquidations & Degens – Welcome to the Danger Zone

June 20, 2025
SOL's Big F***ing Breakout: Why Solana's About to Send You to the Moon

SOL’s Big F***ing Breakout: Why Solana’s About to Send You to the Moon

June 10, 2025

💥 What's Your Crypto Trading Spirit Animal?

1. Your reaction to a red 15% candle?

2. How do you read charts?

3. What’s your biggest trading sin?

4. Favorite indicator?

5. How do you set your stop-loss?

6. What's your ideal trading environment?

7. How do you handle losing trades?

8. What’s your position sizing like?

9. What's your backup plan if you get liquidated?

10. Your crypto endgame?

Crypto News

Bitcoin

Ethereum

Altcoins

Cryptocurrency

Platforms for Copy Trading

Platforms for Grid Trading

Glossary of trading and crypto terms

Crypto Portfolio Tracker

 

Cryptheory Labs Projects

Guest Post for Free

On our website, you can share your opinions and insights. This feature is reserved for non-promotional articles. We are already working on a system for donations and rewarding every author.

This website is here for those of you who want to be at the forefront of innovation and new technologies like Bitcoin. But first, we need to tackle the challenges and survive in the unforgiving world of crypto assets. THIS IS CRYPTHEORY!

Follow Us

  • Terms Of Use
  • Privacy Policy
  • About us
  • Contact us

© 2024 Cryptheory - F**k the forex, we want gains!

Shiba Inu loading
No Result
View All Result
  • Cryptocurrency List
  • Cryptocurrency
    • Cryptocurrency Exchanges
      • Top exchanges for trading Bitcoin derivatives
      • How to buy bitcoin without KYC
      • How to Trade Bitcoin – best platforms
      • Best platforms to buy Bitcoin by debit or credit card
      • Platforms for Grid Trading
      • BYDFi: Review and Guide
      • BingX: Review and Guide
      • Kraken: Review and Guide
      • Bybit: Review and Guide
      • Bitpanda: Review and Guide
      • Phemex: Review and Guide
      • Huobi: Quick Guide
      • Binance: Review and Guide
    • Bitcoin
    • Tether
    • XRP
    • Dogecoin
    • Avalanche
    • Stellar
    • The Open Network
  • crypto news
  • Crypto Exchanges Info
  • Analysis
  • Attractions

© 2024 Cryptheory - F**k the forex, we want gains!

This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.