< Back

How to connect to Surfshark in countries with internet restrictions on Linux?

In this tutorial, you will learn how to set up the OpenVPN app on your Linux device. This method is a proven way to easily connect to the VPN from countries with internet restrictions like China, UAE, Russia, etc.


You will learn how to:

You will need a device running Linux operating system and an active Surfshark subscription. If you don’t have the subscription yet, you can get it here.

 


Get your credentials

 

  1. Please visit surfshark.com and log in to your account.  You can find the direct link here.

    In case this link doesn't work, please try this page instead.

  2. Go to the VPN -> Manual setup -> Manual -> Credentials section and copy the Username and the Password.

    credentials_manual.png

Install the OpenVPN package

 

  1. Open the terminal window.

    You can do that by pressing Ctrl+Alt+T keys or navigating to it in your apps menu.

    1.png

  2. Enter this command to install all the necessary packages:

    sudo apt-get install openvpn unzip

    You may need to enter your computer password to confirm this process. In such a case, enter the password and press Enter.


    2.png

 

Download configuration files

 

  1. Navigate to the OpenVPN directory. You can do that by entering this command:

    cd /etc/openvpn

    3.png

  2. Download Surfshark OpenVPN configuration files:

    sudo wget https://surfshark.zendesk.com/hc/article_attachments/360018527519/configurations.zip

    4.png

  3. Extract configurations.zip with this command:

    sudo unzip configurations

    5.png


  4. To see the list of all the available servers, enter:

    ls


    6.png

 

 

Connect to the VPN

 

  1. Choose one server from the list that you want to connect to and copy the hostname (URL) representing this server's hostname.

    7.png

  2. Connect to this server by entering this command:

    sudo openvpn paste the server name here

    For example, if you'd like to connect to the US_udp server, this will be the command:

    sudo openvpn US_udp.ovpn

    8.png

  3. Before connecting to the server, you should enter Surfshark service credentials.

    Enter the credentials that you have collected in the 'Get your credentials' part, and press enter.

    9.png

  4. You have successfully connected to Surfshark if you can see the 'Initialization Sequence Completed' line in your terminal. 

    91.png

  5. To disconnect from the OpenVPN connection, open the terminal and press Ctrl + C.

    92.png

 

Congratulations - you have successfully installed and configured the OpenVPN connection on your Linux device! As long as you’re connected, your location is private, and your sensitive data is secure.

 

 


If you have any further questions, our customer success team is here to help you 24/7 over a 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. What speed can I expect with your VPN? Are there any bandwidth limitations?
Was this article helpful?