LogoAirnode Hosting
Linux VPSSet up a VPN

OpenVPN Installation

How to install and set up OpenVPN on your VPS.

Update First

Make sure your VPS has the latest packages. Run this command:

sudo apt update && sudo apt upgrade
  • Download the script from GitHub:
curl -O https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh
  • Run:
chmod +x openvpn-install.sh
  • Run:
./openvpn-install.sh
  • Follow the prompts. For most options, you can just press Enter, or use the suggested values. OpenVPN install script running
  • After setup, you need to download the OpenVPN config file to your PC.
  • Connect to your VPS using SFTP.

Need help with SFTP?

  • Download the .ovpn config file to your computer.

OpenVPN for Windows

Download the latest OpenVPN version: OpenVPN Community Downloads

  • Move the config file to your OpenVPN config folder (usually C:\Program Files\OpenVPN\config).
  • Open OpenVPN, right-click the icon in the system tray, and connect.
  • Check your new IP at https://www.whatsmyip.org/

Done!

You have installed OpenVPN on your VPS and connected from your PC or laptop.