Connect to Surfshark VPN using Ubuntu Network Manager

In this article, you will learn how to connect to Surfshark VPN using Ubuntu Network Manager. Ubuntu Network Manager can help you connect to Surfshark VPN servers without using the Surfshark application, and it's pretty convenient to set up and use.

To proceed, you need to have a Linux Ubuntu device and an active Surfshark subscription, which you can purchase on Surfshark's pricing page.

 

You will learn how to:

  1. Get your credentials
  2. Download configuration files
  3. Configure the Network Manager
  4. Ensure your connection is successful

 

Get your credentials

 

NOTE: These are not your regular credentials, such as your email and password.

  1. Enter the Surfshark login page and log in. Then, click on VPN > Manual Setup > Desktop or mobile > OpenVPN to generate your credentials.


  2. Once there, make sure that you are in the Credentials tab and click on Generate credentials.

    NOTE: Keep this tab open as we'll need it later.

 

Download configuration files

  1. Open the same page on another browser tab, go to the Locations tab, and locate the server that you wish to connect to.

  2. Download configuration files by clicking on the arrow pointing downwards next to your chosen location.
    mceclip2.png

  3. Choose which file to download: UDP or TCP.

    These are 2 different VPN protocols. We recommend the
    UDP protocol because it tends to be faster, but feel free to find out more about Surfshark protocols and decide for yourself.
    mceclip3.png

  4. We recommend saving the file on your desktop so that you could easily find it during the setup process.networkmngr4.png

 

Configure the Network Manager

 

  1. Launch the terminal. You can do that by pressing CTRL+ALT+T on your keyboard.
    Alternatively, you can launch the terminal from the list of your apps.
    networkmngr5.png

  2. Install the VPN manager if it's not on your device yet. To do that, use this command: 
    sudo apt-get install network-manager-openvpn-gnome

  3. Copy and paste this command to the terminal and hit enter.
    networkmngr6.png

  4. This might create a prompt asking for your PC password. Enter your password and authorize to continue.

    NOTE: If the Network Manager is on your system, you will be notified that the Network Manager is already there. In that case, go to step 5. If the Network manager is not on your system, proceed with the installation process.

  5. Click the white arrow or the Wi-Fi/Ethernet icon at the top-right corner of your desktop. It will open a system tray.
    networkmngr7.png

  6. Click Settings.
    networkmngr8.png

  7. Open the Network settings tab in the Settings screen.
    networkmngr9.png

  8. Click [+] to add a new VPN profile.
    networkmngr10.png

  9. A window will pop up asking how you would like to add a new profile. Choose Import from file, then navigate to the configuration file on your desktop (refer to Download configuration files section in this article). Select to import it.
    networkmngr11.png

  10. Once the file finishes uploading, enter the Username and Password (refer to Get your credentials section in this article). Then, click Add.
    networkmngr12.png

  11. Now, you will see a new VPN profile. Move the switch from OFF to ON to enable a VPN connection.
    networkmngr13.png

  12. To check if the VPN is on, you can open the system tray and you should see the VPN profile there.
    networkmngr14.png

 

Ensure the connection is successful

 

We always recommend checking if Surfshark VPN is working after setting it up for the first time. You can easily do it by performing Surfshark IP leak test and a DNS leak test. For your convenience, both are available on our website.




You may also be interested in:

Was this article helpful?
Thank you for your feedback!