Setting Up Opensource VPN (OpenVPN)
Last updated: March 25th 2025
Introduction
Want to get your own super secure internet connection going? Setting up your own OpenVPN might sound like a big deal, but it's totally doable, and we're here to show you how! Think of it like building your own secret tunnel for your internet stuff. This guide will take you through the very first steps to get you started, so you can browse with a little extra peace of mind. Let's jump in and see how it's done!
Prerequisites
- A fresh Webdock cloud Ubuntu instance.
- Make a note of your Webdock server IPv4 address
- You have shell (SSH) access to your VPS.
Your initial step in setting up your OpenVPN connection is to visit the official OpenVPN website at http://openvpn.com/. Here, you will need to sign in to your existing OpenVPN account. If you don't have an account yet, you'll need to register first. Signing in grants you access to your account dashboard where you can manage your subscription and find necessary resources for the VPN setup process.
Select the option to "Install Access Server" within the portal. The OpenVPN Access Server is the software you'll use to create your VPN server. Upon choosing this, you will be presented with an installation command specific to your server's operating system. Make sure to carefully copy this entire command, as you will need it in the next step to install the Access Server software on your chosen server. This command is essential for setting up the core of your VPN.
Access your server's command line. To gain administrative rights needed for installation, type "sudo su" and press Enter. You will then be prompted to enter your server's administrative password. This will give you the necessary permissions to proceed with installing the OpenVPN Access Server.
Now, go back to your server's command line and paste the installation command you copied earlier. Press Enter to run the command. This will begin the installation of the OpenVPN Access Server. Allow the process to complete, which may take a few minutes depending on your server's speed.
Once the installation finishes, carefully scroll back through the text displayed in the terminal window. Look for a section within the installation logs that contains your administrative username and password for the OpenVPN Access Server. These credentials are often displayed with clear labels like "Admin Username:" and "Admin Password:". Make sure to note these down securely as you will need them to access the server's web interface.
Alright, now open your web browser and head to your admin dashboard. You'll usually find it at your server's IP address followed by port 943 (like https://your_server_ip:943). Your browser might give you a security warning – you can probably just ignore that and proceed. Then, log in using the username and password you grabbed from the installation logs. Easy peasy.
Creating the config file
After successfully logging in to the admin dashboard, please navigate to this URL:
https://as-portal.openvpn.com/billing/activation-keys/subscriptions
Once there, locate and promptly copy the specific activation code for further processing or configuration.
Copy the key to your dashboard, paste it into the activation field, and then click the activate button to proceed.
Next, access the administration panel, and navigate to the 'User Management' section; then click on 'User Profiles' to view and manage user account details. Click New Profile > Create profile
A .ovpn file will be downloaded. Import that to your OpenVPN client (https://openvpn.net/client) and connect.
Conclusion
In this article, we’ve successfully set up our own private VPN on a Webdock Ubuntu server. If you want to learn more about OpenVPN, you can read the official documentation here.
Related articles
-
How to install OpenLiteSpeed on Webdock
In this article we show you how you can install the OpenLiteSpeed web server on Ubuntu Jammy.
Last updated: March 29th 2023
-
How to Deploy your First Node.js Application on your Ubuntu Web Server
Deploy a Node.js application on your Ubuntu server and how to issue SSL certificates for your Node application.
Last updated: July 19th 2023
-
How to set up WireGuard on your Webdock Server
This article details how you can quickly and easily install WireGuard on your Webdock Server.
Last updated: February 17th 2025
-
How to set up OpenVPN on your Webdock Server
This article details how you can quickly and easily set up a VPN on your Webdock server.
Last updated: February 17th 2025
-
How to Install and configure aaPanel on Ubuntu
Install aaPanel on Ubuntu as well as building a LEMP stack, pointing your domain to your server and setting SSL certificates with Let's Encrypt.
Last updated: February 24th 2025
-
How to install azuracast on Webdock
This guide shows you how to work around certain issues when installing azuracast on Webdock.
Last updated: February 19th 2025
-
How to set up Runcloud on Webdock
This article details the steps you need to go through in order to install Runcloud on a Webdock server.
Last updated: July 29th 2024
-
How to set up cPanel on Webdock
This article details the steps you need to go through in order to install cPanel on a Webdock server.
Last updated: February 25th 2025
-
How to set up Gridpane on Webdock
This article details the steps you need to go through in order to install Gridpane on a Webdock server.
Last updated: February 25th 2025
-
How to set up Ploi on Webdock
This article details the steps you need to go through in order to install Ploi on a Webdock server.
Last updated: February 25th 2025
-
How to set up Laravel Forge on Webdock
This article details the steps you need to go through in order to install Laravel Forge on a Webdock server.
Last updated: February 25th 2025
-
How to set up Plesk on Webdock
This article details the steps you need to go through in order to install Plesk on a Webdock server.
Last updated: February 26th 2025
-
How to set up Cyberpanel on Webdock
This article details the steps you need to go through in order to install Cyberpanel on a Webdock server.
Last updated: February 22nd 2025
-
How to set up SpinupWP on Webdock
This article details the steps you need to go through in order to installSpinupWP on a Webdock server.
Last updated: March 8th 2025
-
How to set up DirectAdmin on Webdock
This article details the steps you need to go through in order to install DirectAdmin on a Webdock server.
Last updated: February 19th 2025
-
How to set up Hestia on Webdock
This article details the steps you need to go through in order to install Hestia on a Webdock server.
Last updated: February 25th 2025
-
How to set up Virtualmin on Webdock
This article details the steps you need to go through in order to install Virtualmin on a Webdock server.
Last updated: February 25th 2025
-
How to install and create pipelines in Jenkins
This guide describes the step-by-step procedure of installing Jenkins and creating pipelines in Jenkins.
Last updated: February 20th 2025
-
Basic WordPress site setup with aaPanel
In this guide, we will install and setup a basic WordPress site with aaPanel.
Last updated: January 23rd 2023
-
How to use Nginx as reverse proxy and secure connections with SSL certificates
Using Nginx to proxy pass your site with SSL security.
Last updated: February 19th 2025
-
Setting up monitoring with Netdata on your Webdock server
Setting up monitoring on your server to receive alerts and to know real-time resource consumption on your server.
Last updated: February 21st 2025
-
How to Setup Python Web Application With Flask Gunicorn and Nginx
A simple Python Flask web app hosting with Gunicorn and Nginx
Last updated: July 19th 2023
-
How to Daemonize an Application with Systemd
Using systemd to autostart your application on system startup.
Last updated: July 19th 2023
-
Set-up New Relic Monitoring on Your Webdock Server
This guide provides step-by-step instructions to install New Relic to monitor your VPS.
Last updated: February 21st 2025
-
Getting Started with Ruby on Rails on Webdock
In this guide, we will show you how to get started with Ruby on Rails on your Webdock server
Last updated: February 21st 2025
-
How to Install VaultWarden on Your Webdock Server
This guide provided step-by-step instructions to Vaultwarden, an open-source Password Manager on your Webdock Server.
Last updated: July 19th 2023
-
How to Install the Latest Version of HTOP on Ubuntu Server
Instructions to install latest htop package on your Ubuntu server
Last updated: July 29th 2024
-
How to Install ImageMagick 7 on Ubuntu LEMP/LAMP stacks
Simple instructions to install ImageMagick 7 along with the PHP extension
Last updated: November 1st 2023
-
A Quick Guide to Installing Rust on Ubuntu
Instructions to install Rust
Last updated: December 18th 2023
-
How To Install Proxmox on Your Webdock Server
This article provides instructions on how to install Proxmox on your Webdock server
Last updated: July 29th 2024
-
How To Run Nextcloud on Your Webdock Ubuntu Server
Instructions to Install Nextcloud on your server with Docker
Last updated: February 13th 2024
-
The Ultimate Guide to Setting Up Mastodon server
A detailed guide with instructions to set up Mastodon on your Webdock server
Last updated: February 12th 2025
-
A Guide To Setting Up Mindustry Game Server on Ubuntu
Step-by-step instructions to set up your own Mindustry server
Last updated: February 12th 2025
-
A Guide to Installing ERPNext on Your Webdock Server
Step-by-step instructions to install ERPNext - a resource planning software - on your server
Last updated: February 21st 2025
-
A Beginner's Guide to Installing Apache Kafka on Ubuntu
Detailed instructions to get Kakfa running on Ubuntu!
Last updated: February 25th 2025
-
A Quick Guide To Installing Rocket Chat on Ubuntu
Instructions to install Rocket Chat on your Ubuntu server
Last updated: February 12th 2025
-
How to Install Ghost CMS on a Webdock Server
Easily install Ghost CMS on your Webdock server with these instructions!
Last updated: February 24th 2025
-
How to Install cPanel on a Webdock Ubuntu Server
Instructions for setting up cPanel on an Ubuntu server
Last updated: September 23rd 2024
-
How to Install VSCode Server on Your Webdock VPS
A short article on how to install vscode server on your Webdock server to do development right from the browser!
Last updated: January 9th 2025
-
How to Install and Configure Litespeed Cache on WordPress
This guide shows how to configure LightSpeed Cache on your Wordpress site
Last updated: January 13th 2025
-
How to Create a Child Nameserver in WHM
This guides outlines how you can create a child nameserver in WHM
Last updated: January 22nd 2025
-
Upgrading or Downgrading NodeJS Versions with NVM
A short article with instructions to change NodeJS version with Node Version Manager (NVM)
Last updated: February 26th 2025
-
How to Host Pocketbase on Your Webdock Server
A mini guide on hosting Pocketbase to help backend developers with their serverless needs.
Last updated: January 29th 2025
-
How to Install Java on Your Webdock Ubuntu Server
Short article with instructions to install Java on your Ubuntu server
Last updated: February 23rd 2025
-
How To Install Uptime Kuma on Your Webdock Server
Instructions to install UptimeKuma - a fancy selfhosted monitoring tool
Last updated: February 27th 2025