Set up OpenVPN on Arch Linux Using the Terminal Command Line

This tutorial explains how to set up OpenVPN on Arch Linux using the Command line/ Terminal CLI. Follow step-by-step to set up and install VPN for Arch Linux.

  • We used the FastestVPN for this tutorial. While you can use any VPN service which offers the OpenVPN protocol.

Step 1: Download the OpenVPN configuration files (ovpn files) which will be provided by your VPN service provider. Unzip those files if required.

vpn for arch linux

Step 2: Open the terminal and enter the following commands:

  • Enter: su root
  • Enter: pacman -S openvpn

openvpn arch linux

Step 3: Now access the folder/ directory where you saved the ovpn files in Step 1. For this:

  • Type in: cd Downloads
  • Type in: cd ovpn (replace "ovpn" with the folder name where your config files are saved)

openvpn arch linux

Step 4: Now list the folder items by entering ls so you can view all the available VPN server files if there are multiple.

arch ovpn

Step 5: Run the OpenVPN command now and then select your desired VPN server to which you want to connect.

For that, type in: openvpn --­config (your desired VPN server name)
For example, I entered openvpn --config UK-TCP.ovpn. Here you'll replace "UK-TCP.ovpn" with your OpenVPN config file name.

openvpn server arch linux

Step 6: It will require your VPN username and password respectively. Enter the username and then password provided by your VPN service provider

arch vpn networkmanager

Step 7: Once the "Initialization Sequence Completed" appears, that means your OpenVPN on Arch Linux using the terminal command line/ CLI has been connected.

cisco anyconnect arch

When you need to disconnect VPN on Arch Linux, press Ctrl+C in the terminal.

More Free VPN Tutorials

By following the steps given above, you can set up a VPN for Arch Linux using the OpenVPN protocol. Besides, if you're looking for additional support or have any questions to install Open VPN on Arch Linux, or other Linux operating systems, please Contact us for your questions, queries, feedback, suggestions.

Add a comment


Please enter your comment!
Please enter your name here

Related posts