Virtual Private Network aka VPN is a great tool to protect the privacy of your device and increase its security by masking your IP address so that no online source can trace your location and data. VPN prevents websites, infrastructure providers and really anyone to track your personal information and your online activities.

VPN creates a virtual network between the client and the host server and in that way it protects your computer from hackers and snoopers. All of your online activities use a virtual network that bypasses the network maintained by internet service providers (ISP).

Do I need a VPN on Linux?

The question is why VPN is important and do I need it on my device? The answer is Yes! Linux distributions are very secure but if you want to add an extra layer of security to your network, then having a VPN on your device is the best choice.

Let’s check some significant benefits of using VPN:

  • It hides your private information.
  • Protects you from being tracked by everyone and anyone since the connection is encrypted
  • It makes you anonymous.
  • It allows increase security of your wireless traffic when in public locations
  • It allows you to appear that you are in a different geographical region when using internet services which can be convient in many scenarios

All of these advantages especially privacy and security would probably compel you to install a VPN on your Linux device. Let’s check how to get it on your Linux device.

Installing SurfShark VPN on Ubuntu:

There are many VPN services are available then why SurfShark? SurfShark is the latest, secure, cheaper, reliable, and fast VPN service that is available for Ubuntu. Let’s check step by step process of installing and setting up SurfShark on Ubuntu:

Step 1:


First, visit the download page and download VPN for Linux, SurfShark VPN package:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/protect-ubuntu-linux-surfshark-vpn_1.jpg" data-lazy- height="875" src="data:image/svg xml,” width=”1386″>

SurfShark VPN package will be downloaded:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/protect-ubuntu-linux-surfshark-vpn_2.jpg" data-lazy- height="725" src="data:image/svg xml,” width=”1094″>

Step 2:


Make sure that you are in the same directory where the package is downloaded. Open terminal and type the below-mentioned command to start the install process.:

$ sudo apt-get install ./surfshark-release_1.0.0-1.1_amd64.deb

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/protect-ubuntu-linux-surfshark-vpn_3.jpg" data-lazy- height="199" src="data:image/svg xml,” width=”966″>

Step 3:


Now, update the packages list by using:

Step 4:


To complete the installation process of SurfShark VPN use the command mentioned below:

$ sudo apt-get install surfshark-vpn

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/protect-ubuntu-linux-surfshark-vpn_4.jpg" data-lazy- height="236" src="data:image/svg xml,” width=”966″>

Step 5:


Once the installation is completed, it’s time to connect SurfShark VPN. Type the following command to run SurfShark:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/protect-ubuntu-linux-surfshark-vpn_5.jpg" data-lazy- height="238" src="data:image/svg xml,” width=”966″>

Step 6:


In this step, the setup process will begin. Firstly, it will ask you for the credentials of your account. If you have not subscribed SurfShark, then make an account by visiting (https://order.surfshark.com). Once the signup process for SurfShark is finished, then put your email and password:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/protect-ubuntu-linux-surfshark-vpn_6.jpg" data-lazy- height="238" src="data:image/svg xml,” width=”966″>

Step 7:


Now you will be given a list of different regions to select. Select any country by typing the number of that country. I am putting “79” for the United Kingdom:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/protect-ubuntu-linux-surfshark-vpn_7.jpg" data-lazy- height="641" src="data:image/svg xml,” width=”966″>

Step 8:


You will be prompted for the connection type. There are two options for connection, “0” for “TCP” and “1” for “UDP” if you press “Enter” UDP connection will be applied by default:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/protect-ubuntu-linux-surfshark-vpn_8.jpg" data-lazy- height="641" src="data:image/svg xml,” width=”966″>

Now, it will take few seconds to set up the connection and show the status of the connection, see the image below:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/protect-ubuntu-linux-surfshark-vpn_9.jpg" data-lazy- height="641" src="data:image/svg xml,” width=”966″>

Now your device is on a virtual network, you can use it without compromising your data and sensitive information.

How to disconnect SurfShark VPN?

To disconnect SurfShark VPN use the below-stated command in terminal:

$ sudo surfshark-vpn down

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/protect-ubuntu-linux-surfshark-vpn_10.jpg" data-lazy- height="202" src="data:image/svg xml,” width=”966″>

Other SurfShark useful commands:

Some other useful commands for SurfShark are:

For help and viewing all SurfShark command use:

$ sudo surfshark-vpn help

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/protect-ubuntu-linux-surfshark-vpn_11.jpg" data-lazy- height="335" src="data:image/svg xml,” width=”921″>

For connection status:

$ sudo surfshark-vpn status

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/protect-ubuntu-linux-surfshark-vpn_12.jpg" data-lazy- height="203" src="data:image/svg xml,” width=”921″>

For a quick connection:

$ sudo surfshark-vpn attack

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/protect-ubuntu-linux-surfshark-vpn_13.jpg" data-lazy- height="304" src="data:image/svg xml,” width=”921″>

For Multihop connection use:

$ sudo surfshark-vpn multi

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/01/echo/protect-ubuntu-linux-surfshark-vpn_14.jpg" data-lazy- height="720" src="data:image/svg xml,” width=”1280″>

Conclusion:

VPN holds vital importance when it comes to protecting your device from trackers like websites and internet service providers. It hides your identity, protects your data on public wi-fi, and gives access to region-blocked websites. In this post, we understood how to get SurfShark VPN on Ubuntu and how to set up the connection. And then, we learned how to disconnect SurfShark VPN and then a few other useful commands.

About the author

<img alt="Avatar" data-lazy-src="https://secure.gravatar.com/avatar/cef1eaf5da5415836520c01d2857bc40?s=112&r=g" height="112" src="data:image/svg xml,” width=”112″>

Talha Saif Malik

I’m a computer scientist currently pursuing my Masters in Computer Science from COMSATS Institute of Information Technology Islamabad which is No.1 ranked IT University in Pakistan. I have done research in multiple domains and I’m well aware of WHATs and HOWs of research. My aim is to contribute in the research world as much as possible and change the world.