Skip to content

OpenVPN – Setting up a personal VPN server

Step-by-step installation of OpenVPN on a VPS in 5 minutes. Setting up clients, adding users and protecting the connection with encryption.

OpenVPN – Setting up a personal VPN server

OpenVPN is one of the most popular and reliable solutions in the field of creating virtual private networks (VPN). This product provides a high level of encryption and flexible configuration, which makes it an ideal choice both for individual users and for corporate networks.


System requirements

This guide uses the Ubuntu 20.04 OS. The script is also compatible with all current versions of Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS and Fedora.

INFO

Recommended technical specifications:

  • CPU: 1 vCore
  • RAM: 512 MB
  • Storage: 1 GB
  • Network speed: 100Mbps+

This information is for reference, since any available virtual server plan will do for using OpenVPN.


Installing OpenVPN

The OpenVPN installation process has been simplified as much as possible. All you need to do is run a single command in your server's console:

bash
apt-get update; rm openvpn-install.sh; wget https://mirror.spacecore.info/scripts/openvpn-install.sh && bash openvpn-install.sh

The script will automatically perform all the necessary steps to install OpenVPN and do its initial setup.

When the installation is complete, a configuration file named spacecore.ovpn will be created, located in the home directory. You need to download this file to your device using SFTP or another file transfer method.

This configuration file is universal and suitable for adding a profile on any device that supports OpenVPN.


Setting up OpenVPN clients

For Windows

  1. Download and install the official OpenVPN client for Windows from the official website
  2. After installing the program, add the configuration profile:
    • Right-click the OpenVPN icon in the system tray
    • Select "Import file"
    • Specify the path to the downloaded spacecore.ovpn file
  3. Connect to the VPN by right-clicking the OpenVPN icon and selecting "Connect"

For iOS / Android

  1. Download the official OpenVPN app:
  2. Open the app and import the spacecore.ovpn configuration file
  3. Connect to the VPN by following the instructions in the app

Adding new users

To create additional user profiles, follow these steps:

  1. Run the installation script again:
bash
bash openvpn-install.sh
  1. In the menu that appears, select option 1 (Add a new user)
  2. Enter a name for the new user (for example, "friend") and press Enter
  3. The script will automatically create a new configuration file with the specified name (for example, friend.ovpn)
  4. Give this file to the user who needs access to the VPN

The new configuration file is used in exactly the same way as the original configuration file.


Managing users

Besides adding new users, the script also lets you:

  • Remove existing users
  • Completely remove OpenVPN from the server
  • View the list of created profiles

To perform these actions, simply run the script again and select the corresponding option from the menu.


Advantages of OpenVPN

  • High level of encryption and security
  • Cross-platform support (Windows, macOS, Linux, iOS, Android)
  • Bypassing geographical restrictions
  • Data protection when connecting to public Wi-Fi

OpenVPN provides reliable protection of your data and lets you work safely on the internet from anywhere in the world.


Our resources

Telegram channel: https://t.me/
F3 Cloud: https://f3cloud.com

F3 Cloud Knowledge Base