Cookies and privacy

Necessary cookies support the portal. External analytics and ad measurement start only with your consent. You can accept, reject optional tools or choose categories.

Tools: Google Analytics 4, Google Ads.

Privacy policy
Skip to content
Theme
Choose a plan
Guide

OpenVPN on Raspberry Pi - setup guide

Updated 3 November 2026 · Applies to: Raspberry Pi · OpenVPN

How to set up OpenVPN on Raspberry Pi: required credentials, client settings and checking your VPNonline connection.

Before you start

  • An active service and access to your customer account.
  • The VPN username and connection password from your account - these may differ from your website sign-in.
  • The current server, profile and any PSK from the matching protocol section in your account. Do not copy example passwords or hosts from screenshots.

Open connection settings

OpenVPN on Raspberry Pi OS

These steps apply to Raspberry Pi OS or a system with apt and systemd. The old OpenELEC article does not describe current Raspberry Pi OS.

  1. Step 1: Install the client

    Use a local terminal or SSH. Update the package list and install OpenVPN.

Raspberry Pi OS
sudo apt update
sudo apt install openvpn
  1. Step 2: Download a profile

    Download the .ovpn file from your account. Transfer it to the Pi using SFTP/SCP. Include any external certificates referenced by the profile, keeping their relative paths.

  2. Step 3: Start a foreground connection

    Open the directory containing the profile and replace profile.ovpn with the real filename. Enter your VPN username and password. Ctrl+C stops the connection. Configure a systemd service only after this test, using the instructions for your distribution.

OpenVPN
sudo openvpn --config ./profile.ovpn

Check the connection

After the client connects, open the IP checker and compare the address and country with the selected server. Also test Internet access and DNS. A Connected status alone does not prove that all application traffic uses the tunnel.

If the connection fails

Authentication failed

Check the separate VPN username, connection password and service status in your account. Never include the password in a support request.

No Internet access or a certificate error

Download a fresh profile and check the device clock, DNS and routing. Keep certificate verification enabled. Include the device model, OS version and error message in a support request, with secrets removed.

Did this help?

We only store the answer, nothing about you.

Still not working?

Write to us. We will include this article's name, so we know what you already checked.

Write to us