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:
- 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.
- Click on the Credentials tab at the top, where you will find the Surfshark service credentials.
It's a good idea to keep this page open for now. You will need these credentials a bit later.
Configure the OpenVPN client
- Open the Terminal by clicking CTRL + ALT + T.
- 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.
- Navigate to the OpenVPN directory by entering the following command:
- Download the Surfshark OpenVPN Configuration files:
sudo wget https://my.surfshark.com/vpn/api/v1/server/configurations
- Extract "Surfshark_Config.zip":
sudo unzip configurations
- Remove the .zip file as we will not use it anymore.
sudo rm configurations
- To see the list of all available servers, enter:
- Choose one of the servers from the server list and connect to Surfshark by entering:
sudo openvpn [file name]
sudo openvpn us-dal.prod.surfshark.com_udp.ovpn
- 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.
- 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!
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:
- How to make sure if my connection was successful?
- How to enable 2FA on your Surfshark account?
- How to set up a VPN-protected Wi-Fi hotspot using Windows?