Setup Your Own VPN Server on Debian, Ubuntu or CentOS Server
Virtual Private Network (VPN) is a popular way to stay safe online. In this article, I’m going to share how to create your own VPN server in no more than a minute.
We’ll use OpenVPN. OpenVPN is an open-source commercial software that implements virtual private network techniques to create secure point-to-point or site-to-site connections in routed or bridged configurations and remote access facilities. Let’s get started:
Table of Contents
Login to your server using SSH command. We’ll use OpenVPN road warrior installer for Debian, Ubuntu and CentOS.
Run the script and follow the assistant:
sudo wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh
Once the installation is done, it will export a .ovpn file in the /root/ folder. This file contains login info for your VPN. Download this file to your mobile.
Connect to the VPN
You’ll find many OpenVPN clients for Android on Google Play Store. But I like OpenVPN for Android. Download this app on your mobile.
After downloading it from the Play Store, tap the import button in the top-right corner (it looks like a box) and select your .ovpn file.
For Windows/Mac/iOS, VPNGate has an excellent guide here.
You can create many config files (profile). Just run the installer again and you’ll see the option to add/remove profile like this:
What do you want to do? 1) Add a new user 2) Revoke an existing user 3) Remove OpenVPN 4) Exit Select an option:
That’s it. Now enjoy and thanks for reading. ?
Preview may take a few seconds to load.
Below you will find some common used markdown syntax. For a deeper dive in Markdown check out this Cheat Sheet
Bold & Italic
Bold **double asterisks**
Three back ticks and then enter your code blocks here.
# This is a Heading 1
## This is a Heading 2
### This is a Heading 3
> type a greater than sign and start typing your quote.
You can add links by adding text inside of  and the link inside of (), like so:
To add a numbered list you can simply start with a number and a ., like so:
1. The first item in my list
For an unordered list, you can add a dash -, like so:
- The start of my list
You can add images by selecting the image icon, which will upload and add an image to the editor, or you can manually add the image by adding an exclamation !, followed by the alt text inside of , and the image URL inside of (), like so:
To add a divider you can add three dashes or three asterisks:
--- or ***