< Back

How to set up Surfshark VPN on Raspberry Pi

In this tutorial, you will learn how to install the Surfshark VPN client on your Raspberry Pi. This client is the only thing you will need to protect your data, bypass censorship, and enjoy streaming content on your device. Please note that some configurations may vary depending on the Linux distribution you are using.

 

You will need a Raspberry Pi device and an active Surfshark subscription. If you don’t have a subscription yet, you can get one here.

 

Let's get started!

 

You will learn how to:

 

Find your login details

Surfshark service credentials are different from your Surfshark account credentials, namely your email address and your password. You’ll need Surfshark service credentials to connect to the VPN using the manual OpenVPN configuration method explained below.

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, where you will find the Surfshark service credentials.

    gl3x1.png

    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.

 

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

 

If you have any further questions, our customer success team is here to help you 24/7 over live chat or email.

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?