How to set up Surfshark VPN on Raspberry Pi

In this tutorial, you will learn how to install the Surfshark VPN on Raspberry Pi.

 

Please note that some configurations may vary depending on the Linux distribution you are using.

 

Don't have a subscription yet? Get Surfshark here.

 

You will learn how to:

 

Find your login details

Here is how you can get your Surfshark service credentials:

    1. Go to this page, where you will find all of the details required for a manual connection.

      You may need to log in before proceeding to this page. In that case, enter your email address and your password, then click Log in.

    2. Click on the Credentials tab at the top. You will find the Surfshark service credentials here.



      It's a good idea to keep this page open for now. You will need these credentials a bit later.

 

Configure the OpenVPN client

 

  1. Open the Terminal by clicking CTRL + ALT + T.
  2. Install the necessary OpenVPN packages by entering the following command:
    sudo apt-get install openvpn unzip

    If you are requested to enter a password, please enter your computer's admin password.
  3. Navigate to the OpenVPN directory by entering the following command: 
    cd /etc/openvpn

  4. Download the Surfshark OpenVPN Configuration files:
    sudo wget https://my.surfshark.com/vpn/api/v1/server/configurations

  5. Extract "Surfshark_Config.zip":
    sudo unzip configurations

  6. Remove the .zip file as we will not use it anymore.
    sudo rm configurations

  7. To see the list of all available servers, enter:
    ls

  8. Choose one of the servers from the server list and connect to Surfshark by entering:
    sudo openvpn [file name]

    For example: 
    sudo openvpn us-dal.prod.surfshark.com_udp.ovpn

  9. You will be asked to enter the credentials here. Enter the Surfshark service credentials that you collected in the Find your login details part of this guide.

  10. If you can see the Initialization Sequence Completed message, you have successfully connected to Surfshark.

 

Make sure your connection was successful

 

It's always recommended to check whether your connection was successful after setting up a VPN for the first time. This can be easily done by doing an IP leak test and a DNS leak test which is available on our website. Click here to find out how to make sure your connection was successful.

 

Congratulations! Now you know how to set up Surfshark VPN on your Raspberry Pi!

 


You may also be interested in:

  1. How to make sure if my connection was successful?
  2. How to enable 2FA on your Surfshark account?
  3. How to set up a VPN-protected Wi-Fi hotspot using Windows?

 

Was this article helpful?
Thank you for your feedback!