How to set up VPN Surfshark on Raspberry Pi

In the following article, you will find a simple guide on how to secure your Raspberry Pi using VPN Surfshark. We'll use the OpenVPN client for this setup.

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

Log into the Surfshark service

First, you will need the Surfshark service login information. Go to the this website  and login.

Once you are logged in go to Devices> Manual , scroll down to the bottom of the page. You will find your service credentials there.

Picture 1 of How to set up VPN Surfshark on Raspberry Pi
You will find the service login information at the bottom of the page

How to set up VPN Surfshark on Raspberry Pi

Step 1. Open a Terminal window ( Ctrl + Alt + T ).

Step 2. Install the required packages by entering the command:

sudo apt-get install openvpn unzip

If you are asked for a password, please enter your computer's admin password.

Step 3. Navigate to the OpenVPN folder by typing:

cd /etc/openvpn

Step 4. Download the Surfshark OpenVPN configuration file:

sudo wget https://account.surfshark.com/api/v1/server/configurations

Step 5. Unzip the configurations.zip file :

sudo unzip configurations

Step 6. Delete the unused .zip file:

sudo rm configurations

Step 7. To see a list of all available servers, enter:

ls

Step 8. Select one of the servers from the list and connect to Surfshark by typing:

sudo openvpn [tên file]

For example:

sudo openvpn us-dal.prod.surfshark.com_udp.ovpn sudo openvpn /etc/openvpn/us-dal.prod.surfshark.com_udp.ovpn

Step 9. OpenVPN will ask you to provide service login information. Enter the Surfshark service login information you collected at the beginning of this tutorial.

Step 10. You have successfully connected to Surfshark if in Terminal logs you see the message " Initialization Sequence Completed ".

Step 11. To disconnect from OpenVPN, just open Terminal and press Ctrl + C .

Update 28 August 2020
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile