OpenVPN 3 Client Installation Guide on Linux 2025 💻
In this guide, I will walk you through step-by-step how to install the modern and powerful VPN client, OpenVPN 3 Client, on Linux distributions. By following these steps, you can start using OpenVPN 3 packages smoothly on your system.Step 1: Installing the OpenVPN 3 Repository Key
First, we need to add the repository key used by OpenVPN 3 Linux packages to the system. This ensures that the packages we download are verified and trusted. Open your terminal and run the following command:
Bash:
sudo mkdir -p /etc/apt/keyrings && curl -fsSL https://packages.openvpn.net/packages-repo.gpg | sudo tee /etc/apt/keyrings/openvpn.asc
Step 2: Get Your Distribution Codename
Now, we need to get the specific information about your Linux distribution and store it in a variable. This is important for the next step:
Bash:
lsb_release -c -s
Step 3: Add the Repository to Your System
With the distribution info ready, now let's add the OpenVPN 3 package repository to your system. This tells the apt package manager where to download the OpenVPN packages from. Run the following command:
Bash:
echo "deb [signed-by=/etc/apt/keyrings/openvpn.asc] https://packages.openvpn.net/openvpn3/debian $DISTRO main" | sudo tee /etc/apt/sources.list.d/openvpn-packages.list
sources.list.d directory.⚠️ NOTE: Replace
$DISTRO with the codename you obtained in Step 2.Step 4: Update Package Information
Since we added a new repo, we need to update our package list so that apt can recognize the new packages.
Bash:
sudo apt update
Step 5: Install the OpenVPN 3 Package
Now that everything is ready, the last step is to install the OpenVPN 3 package on your system:
Bash:
sudo apt install openvpn3
openvpn3 command.Your installation is complete! Now, you can connect to your OpenVPN servers using your
.ovpn profile files.To import your configuration file:
Bash:
openvpn3 config-import --config ${MY_CONFIGURATION_FILE}
${MY_CONFIGURATION_FILE} is the path to your configuration file. For example:
Bash:
openvpn3 config-import --config /home/ahmet/OpenVPN3-File/VPN-Ahmet.ovpn
To start the VPN session with your config file:
Bash:
openvpn3 session-start --config ${CONFIGURATION_PROFILE_NAME}
Example:
Bash:
openvpn3 session-start --config /home/ahmet/OpenVPN3-File/VPN-Ahmet.ovpn
To disconnect (stop the VPN):
Bash:
openvpn3 session-manage --disconnect --config ${CONFIGURATION_PROFILE_NAME}
Example:
Bash:
openvpn3 session-manage --disconnect --config /home/ahmet/OpenVPN3-File/VPN-Ahmet.ovpn