This guide explains how to set up a manual OpenVPN connection on Linux. This is an alternative way to connect to Private Internet Access (PIA) VPN servers when you cannot install the PIA app or the app doesn’t work as expected.
Don't have a subscription yet? Get PIA VPN here!
Jump To:
Download the Configuration Files
Try Alternative Configuration Files
Get Your Credentials
You need your PIA VPN service credentials to connect with a manual OpenVPN connection.
You can find these credentials in the email sent to the address you used to purchase and register your PIA VPN subscription.
Install the OpenVPN Package
- Open Terminal. You can press Ctrl + Alt + T or open Terminal from your apps menu.
- Install OpenVPN for your Linux distribution.
- Debian/Ubuntu-based: sudo apt install openvpn
- SUSE/openSUSE-based: sudo zypper install openvpn
- Red Hat/Fedora-based: sudo dnf install openvpn
- Arch-based: sudo pacman -S openvpn
- Enter your computer password if prompted, then press Enter.
Download the Configuration Files
- Create the OpenVPN directory, then direct Terminal to it:
sudo mkdir -p /etc/openvpn
cd /etc/openvpn- Download the default PIA OpenVPN configuration file:
sudo wget -O openvpn.zip https://www.privateinternetaccess.com/openvpn/openvpn.zip- Extract the downloaded file:
sudo unzip -o openvpn.zipConnect to the VPN
- View the available configuration files in the cd/openvpn folder by running this command:
ls- Choose the server configuration file you want to use and connect to it with this command:
sudo openvpn --config config-filename.ovpnReplace config-filename.ovpn with the exact file name for your chosen server. You will find these filenames in the VPN configuration archive you downloaded previously.
Example:
sudo openvpn --config us_california.ovpn- Enter your PIA VPN service credentials if prompted.
If the connection succeeds, OpenVPN is configured and connected to PIA VPN.
Try Alternative Configuration Files
Some networks are more restrictive than others, which can interfere with VPN connections. If the default configuration files don't work, repeat the download and extraction steps with an alternative OpenVPN configuration file.
Try these configuration direct download links until one works:
- OpenVPN Configuration Files (Default)
- OpenVPN Configuration Files (Recommended Default windows only plus block-outside-dns)
- OpenVPN Configuration Files (IP)
- OpenVPN Configuration Files (Strong)
- OpenVPN Configuration Files (TCP)
- OpenVPN Configuration Files (STRONG-TCP)
After you download and extract a new configuration file, repeat the connection steps.
If you have any further questions, our customer success team is here to help you 24/7 over live chat or email.