How to configure OpenVPN in Linux Debian

The following are required for OpenVPN to work on Debian 10:
  • A working installation of Debian 10 running the GNOME Desktop Environment
  • A device with internet access
  • A secure Namecheap VPN connection (Don’t have one? Sign up here!)
Follow the steps below to configure Namecheap OpenVPN in Debian 10:

Download the Namecheap OpenVPN configuration files

1. To complete the configuration, upload a config file that defines the settings or preferences for the OpenVPN connection.

You can download all of the config files for all of our servers directly from https://vpn.ncapi.io/groupedServerList.zip


A screenshot indicates that a user should download Open VPN files for Debian

2. Click the Extract button in the Archive Manager window that appears.

3. Select Documents on the left and click Extract to extract the OpenVPN config files into your Documents folder as shown below:

Install the needed OpenVPN packages

4. Click Activities at the top of the screen and type Terminal in the search box and then click the Terminal icon to launch a Terminal window.


A screenshot outlines how to open the Terminal window in Debian

5. Type the following command to switch to the root user to allow us to install the needed OpenVPN packages:

su root

For security, you will be prompted to enter the password for root:

A screenshot of the password screen within Debian OpenVPN setup
6. Type the following command to install the needed OpenVPN packages:

apt-get install -y openvpn network-manager-openvpn network-manager-openvpn-gnome


An example of output created while setting up OpenVPN on Linux Debian
After the packages finish installing, you should see the output similar to what is shown below.

Please report any errors to our support team so we can help you troubleshoot any issues.


Arrows indicate that Linux Debian must be restarted to finish installing OpenVPN

7. Close the Terminal window and click on the power button icon at the top of the screen in the upper right, click the Power button in the menu that appears and then click the Restart button to start your system again.




Create our Namecheap OpenVPN connection and import our connection settings

8. Click on the network connections icon at the top of your screen and then click the Settings gear button in the menu that appears as shown below:




9. Select Network on the menu on the left and then click the + button as shown below in the Network window to add a new connection.




10. Choose Import from file... in the Add VPN window that appears.




 11. Select the config file (Saved earlier in our Documents folder) that matches your desired VPN server location and click the Open button (The naming convention for our config files is NCVPN-COUNTRY-City.ovpn) - For our example, we are using the NCVPN-CA-Toronto.ovpn config file.





12. In the Add VPN window that appears, Enter the details as given below in the Identity tab:

  • Name: Enter your desired description of your VPN connection
  • Type: Should be set to Password
  • User name:  Enter your Namecheap VPN username
  • Password: Enter your Namecheap VPN password
  • Click the Add button.

 Namecheap VPN client username and password are available from the Namecheap VPN dashboard (more details can be found here).



Time to connect to Namecheap VPN with our new OpenVPN connection

13. Click the toggle switch to the right of your newly created VPN connection (The name of your VPN connection will match the name you gave it in step 8). This will start your new VPN connection.




14. After you have successfully connected to Namecheap, you will see a padlock icon in the top right of your screen and you will see the toggle switch for your VPN connection turn blue to indicate that it is active and connected.



To confirm that your IP address has changed to an anonymous private Namecheap VPN, open your favorite web browser and go to http://whatismyip.com.

Disconnecting Namecheap VPN

15. To disconnect from Namecheap VPN, click the padlock or network connection icon in the top right of your screen and then click on the name of your VPN connection in the menu that appears and then click Turn Off. After the VPN disconnects, the padlock icon will disappear, letting you know you have successfully disconnected.

A screenshot with the dropdown that gives users the option to disconnect OpenVPN on Linux Debian


If you have issues setting up your VPN, contact our support team for further assistance.

Updated
3/21/2020

Viewed
2421 times

Comments

We welcome your comments, questions, corrections and additional information relating to this article. Your comments may take some time to appear. Please be aware that off-topic comments will be deleted.

If you need specific help with your account, feel free to contact our Support Team. Thank you.

Need help? We're always here for you.

× Close