How to Set Up a Secure VPN for Your OMC Cloud Server - Quick & Easy Guide
Published: Updated:
Guides
Short version: a VPN creates an encrypted connection between your computer and your cloud server and blocks unauthorised access. The fast way: in the OMC console, create a new server from the OpenVPN template and your VPN server is ready in under 60 seconds (1 core, 2GB RAM and 30GB storage are plenty). For experienced users: install it by hand with the openvpn-install script, copy the .ovpn file to your computer and connect with OpenVPN Connect, Tunnelblick or NetworkManager.
A cloud server is usually reachable over the internet, which exposes it to break-in attempts. A VPN (Virtual Private Network) lets you:
There are several common VPN types: OpenVPN (open source, highly secure and easy to install), WireGuard (modern, fast and lightweight) and IPsec/L2TP (older, but still common and secure). This guide focuses on OpenVPN, one of the most widely used and reliable.
In the OMC cloud console you can launch a VPN server from a ready-made OpenVPN template (image) in under 60 seconds, with no manual installation and no advanced knowledge.
When the server is ready you get the OpenVPN login details straight away and can start using it.
For those who want full control over the installation:
Connect to the server over SSH and update the operating system:
ssh username@server-ip-address
sudo apt update && sudo apt upgrade -y
Use the popular angristan/openvpn-install script:
curl -O https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh
chmod +x openvpn-install.sh
sudo ./openvpn-install.sh
The script walks you through the setup:
The installation takes a minute or two.
The install creates a configuration file called username.ovpn. Copy it to your computer:
scp username@server-ip-address:/home/username/username.ovpn ~/Desktop/
Install an OpenVPN client, load the .ovpn file into it and connect:
Very little: 1 CPU, 2GB RAM and 30GB storage are enough for most uses.
Both are secure. OpenVPN is widely used and supported almost everywhere; WireGuard is faster and lighter. The ready-made template on OMC is OpenVPN.
UDP on port 1194 by default. Use TCP only if the network you connect from blocks UDP.
With the manual install, run the script again and choose to add a user. Each user gets their own .ovpn file.
A VPN is one of the most important tools for securing access to a cloud server. On OMC you can choose between a template VPN server that is ready in a minute and a manual install with full control. Need help with the setup or advice? OMC's support experts are available for any question.
Join the tens of thousands of customers who rely on OMC every day
By signing up you agree to the terms of service
Get a personalized quote within the next half hour
By signing up you agree to the terms of service