In this tutorial, you will learn how to install the Surfshark VPN on Raspberry Pi.
You will need Raspberry Pi and an active Surfshark subscription to follow this tutorial. Don't have a subscription yet? You can get it on Surfshark pricing page.
NOTE: Some configurations may vary depending on the Linux distribution you are using.
You will learn how to:
Get your credentials
NOTE: These are not your regular credentials, such as your email address and password.
- Enter the Surfshark login page and log in. Then, click on VPN > Manual Setup. This is the page where all the details required for manual connection are stored.
-
Click Desktop or Mobile > OpenVPN. Proceed to the Credentials tab. Click on the Credentials tab at the top.
NOTE: 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:
cd /etc/openvpn
-
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:
ls
-
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
- Enter the Surfshark service credentials (refer to Get your credentials section in this article).
- If you can see the Initialization Sequence Completed message, you have successfully connected to Surfshark.
Ensure your connection is successful
Let’s see if your connection is successful after setting up a VPN. You can do it by performing an IP leak test and a DNS leak test on our website.
You may also be interested in:
- How to make sure if Surfshark VPN is working
- How to set up a router with Surfshark
- How to set up a VPN-protected Wi-Fi hotspot using Windows