How to set up your Zgemma STB with Enigma2

In this tutorial, you will learn how to configure the Surfshark VPN tunnel on your Zgemma STB or Enigma2.

You will learn how to:


To proceed, you need to have an Enigma2 or a Zgemma STB and an active Surfshark subscription, which you can purchase on our pricing page.



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:

  1. 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.

  2. Click on the Credentials tab at the top. You will find the Surfshark service credentials here.

    It's a good idea to keep this page open for now. You will need these credentials a bit later.



Choose a Surfshark server

Every server (location) has a configuration file that you will need to connect to the VPN. You can download all of the configuration files from our website.

  1. Go to this page. It’s the same page where the Surfshark service credentials are stored.

  2. Select the Locations tab, where you will see all of the Surfshark servers. 

  3. You will need an OpenVPN configuration file for the location of your choice. For example, if you wish to connect to Germany, download Germany - Berlin or Germany - Nuernberg server by clicking on the location and then on UDP to download the configuration file. 



Configure the OpenVPN client


  1. Open the downloaded .ovpn configuration file with your preferred text editor. We recommend using WordPad, which is a built-in Windows text editor, or NotePad++ (a third-party text editor).

  2. Add login.txt string next to the auth-user-pass line and save the configuration file as client.conf:


  3. Create a new text file. Name it login.txt and paste the Surfshark service credentials you collected in the Find your login details part of this guide. Enter the generated username into the first line of the text file and the password into the second line.


  4. Connect to your device through Telnet and enter the following command:
    opkg install openvpn

    When the setup is complete, reboot the device.

  5. Connect to your device through FTP or SSH, and create a new folder named openvpn in the /etc/ path. After that, upload the client.conf and login.txt files to the /etc/openvpn folder.

  6. Start OpenVPN by going to Menu >Setup >System >Network >OpenVPN Setup >Press Green To Start OpenVPN.


Congratulations - you have successfully installed and configured Surfshark VPN on your Zgemma STB or Enigma2! As long as you’re connected, your location is private, and your sensitive data is secure.


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. How to set up a VPN-protected Wi-Fi hotspot using Windows?
Was this article helpful?
Thank you for your feedback!