How to set up OpenVPN on Debian

The following are required for OpenVPN to work on Debian 10:

  • A working installation of Debian 10 running the GNOME Desktop Environment;
  • A secure FastVPN connection (Don’t have one? Sign up here!);
  • Access to you FastVPN account panel in order to get your network credentials.
Follow the steps below to configure OpenVPN in Debian 10:

1. 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 from the FastVPN account panel or directly at 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.

4. Choose Activities at the top of the screen and type Terminal in the search box. Click the Terminal icon to launch a Terminal window in Linux Debian:

A screenshot outlines how to open the Terminal window in Debian

5. Enter the following command to switch to the root user to allow installing the needed OpenVPN packages:

su root

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

A screenshot of the password screen within Debian OpenVPN setup

6. Use the following command to install the needed OpenVPN packages for Linux Debian:

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 are installed, 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 choose Restart:





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



9. Select Network from the left menu and then click the + button 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 for our config files is NCVPN-COUNTRY-City.ovpn). In 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:

  • Name: enter your desired description of theVPN connection
  • Type: should be set to Password
  • User name:  your FastVPN account name from the he FastVPN Account Panel
  • Password: your FastVPN account password from the he FastVPN Account Panel

Once done, click the Add button:



13. Move the toggle switch to the right of your newly created VPN connection:




14. Once the FastVPN connection is established, you will see the padlock icon in the top right of your screen and the toggle switch for your VPN connection will turn blue to indicate that it is active and connected:



To confirm that your IP address has changed to an anonymous private FastVPN, open your favorite web browser and go to https://www.namecheap.com/vpn/what-is-my-ip/

15. To disconnect from FastVPN, click the padlock or the 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. To proceed, choose Turn Off. After the VPN is disconnected 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 need any further assistance, please contact our Support Team.
Updated
Viewed
353 times

Need help? We're always here for you.