VPS

Installing a VPN server (OpenVPN) on a VPS

What is a VPN?

When you connect to a VPN you "bypass" your own connection: it is the VPN's network that browses the Internet, and your communication happens only with the VPN server.

Our VPS allow you to install a VPN server, so that when you browse while connected, your outgoing IP is the VPS's IP. This technique is especially useful for:

  • People living abroad who want to access the Internet with a Spanish IP.
  • People who want a static IP: we never change your VPS's IP.
  • People who want to hide the real IP of their connection.
  • People with speed issues towards certain websites: our servers have a 10 Gbps connection, so browsing speed is excellent.
  • People who want more privacy on their Internet connection.

If you prefer a more modern, lightweight alternative, check out our WireGuard tutorial.

Installing the VPN

  1. Order a VPS; the cheapest model will do.
  2. Install it with Ubuntu (step 2 of this guide).
  3. Connect over SSH (step 6 of the same guide).
  4. Install OpenVPN Access Server with this command:
apt update && apt -y install ca-certificates wget net-tools gnupg; wget -qO - https://as-repository.openvpn.net/as-repo-public.gpg | apt-key add -; echo "deb http://as-repository.openvpn.net/as/debian bionic main">/etc/apt/sources.list.d/openvpn-as-repo.list; apt update && apt -y install openvpn-as

The repository in the example targets Ubuntu 18.04 (bionic). If you use a newer release, check the official OpenVPN Access Server documentation for the matching repository line.

  1. Set a password for the openvpn user:
passwd openvpn
  1. Open the OpenVPN management panel in your browser using your VPS's IP over HTTPS on port 943: https://1.2.3.4:943 (replace 1.2.3.4 with your VPS's IP).
    • Login: openvpn
    • Password: the one you set in the previous step.

OpenVPN Access Server panel login screen

  1. From the panel you can download the client for your operating system. Once installed, you can connect and disconnect whenever you like:

OpenVPN client connected

  1. You can also access the full administration panel at: https://1.2.3.4:943/admin