OpenVPN Setup guide for most VPN,s and scripts

There are 89 replies in this Thread which was already clicked 61,182 times. The last Post () by urie.

  • Beta Enigma2 VPN Script


    Hi Ive been playing around with VPN,s and got a basic script to configure Nord, IP Vanish and Digibit


    The following script should download the configs for your VPN to HDD/VPN name then you use VPN changer to switch servers, VPN,s added so far:


    Nord VPN

    IP Vanish

    Digibit

    Pure VPN

    PIA VPN

    Windscribe




    Simply copy this command and past in notepad and edit line one and two

    Code:

    Code
    USERNAME='UUUU'
    PASSWORD='PPPP'
    ###############################################################
    # Standard Config
    # If you change anything below this line, it probably wont # be able to connect to your VPN.
    ################################################################
    #!/bin/bash
    # Config Example
    wget -O VPN.sh https://raw.githubusercontent.com/davesayers2014/OpenVPN/master/Main%20Scripts/VPN.sh && sed -i "s/UUUU/$USERNAME/g" VPN.sh && sed -i "s/PPPP/$PASSWORD/g" VPN.sh && chmod +x VPN.sh && ./VPN.sh


    Change UUUU with your username between ' '


    Example: 'dsayers'


    Change PPPP with your password between ' '


    Example: '12ght'


    Copy and paste the script in putty and hit enter you should now have the option for what VPn you want to use:


    1) Nord VPN

    2) IP Vanish

    3) Digibit

    4) Pure VPN

    5) Quit




    Choose your option and hit Enter this should then download the configs and once finished it will say OpenVPN Configs downloaded Please Start OpenVPN.




    You will be asked to enter your choice again but you can ignore this.


    Reboot box and goto plugins, VPN Changer and choose a country.


    Please note due to compression on wget for early versions of OpenATV 6.2 this may not work . If using OpenATV 6.2 please make sure its flashed or updated after 10/03/2018 where they removed compression from wget.

    Edited 3 times, last by dsayers ().


  • OpenVPN Setup guide for most VPN,s


    Hi Ive seen a few threads reguarding OpenVPN on enigma2 so I thought I would show a tut of how I setup Digibit and Nord VPN with VPN Changer


    In the first part I will show you how to rename all .ovpn files to .conf and add auth-user-pass/auth-user-pass password.conf you can skip this part if you have already done this. T


    he second step will show you how to copy all conf files into subfolders with one command and add password.conf to each sub folder.

    Feel free to edit auth.txt to user,txt or whatever you prefer.


    On the box create a folder called vpn in hdd

    FTP your config files to hdd/vpn

    1. using Talnet/putty type

    Code:

    Code
    cd /hdd/vpn

    This will put putty in hdd/vpn

    2.Now to rename all .ovpn files to .conf

    Type in talnet/putty

    Code:

    Code
    # rename .ovpn to .conf
    for x in *.ovpn; do mv "$x" "${x%.ovpn}.conf"; done

    3. To add auth-user-pass/auth-user-pass auth.txt to each conf file in talnet/putty paste

    Code:

    Code
    # Edit all conf files to have auth-user-pass/auth-user-pass auth.txt
    find . -name "*.conf" -exec sed -i "s/auth-user-pass/auth-user-pass auth.txt/g" '{}' \;

    4. Now that is done we can move all configs into subfolders with the same name

    Ensure Talnet is still in hdd/vpn before running this command

    Copy and paste in talnet/putty

    Code:

    Code
    # Move all files into sub folders
    for file in *; do  if [[ -f "$file" ]]; then    mkdir "${file%.*}"    mv "$file" "${file%.*}"  fi
    done

    5. Now to add password.conf to each sub folder we need to add auth.txt to tmp with your username and password added.

    Now use the following command to copy auth.txt to each sub folder with this command

    Code:

    Code
    # copy auth.txt to each sub folder
    find /hdd/vpn -type d -exec cp /tmp/auth.txt {} \;

    Some VPN,s need cert files and other files simply edit the last command (.5) to suit


    VPN Changer is linked below and is pretty simple to use, only issue is with OpenVix pressing red to stop/start OpenVPN just exits the plugin this is due to Key Mapping issue so you will need to goto OpenVPN in network to stop OpenaVPN.


    If you dont want to use VPN Changer and prefer to drag configs just FTP the configs to vpn (create the vpn folder) and change command 1. to cd /vpn and jsut use commands 2. and 3. Add password.conf to etc/conf and you should just be able to drag any conf file from vpn to etc/openvpn


    Edited 2 times, last by dsayers ().

  • Guide for setting up OpenVPN with my-private-network on Enigma2


    This Guide is for setting up OpenVPN with my private network if done correctly it should download and install your openvpn configs via a simple script

    Create an account with my private network -Code:

    Code
    https://client.my-private-network.co.uk/aff.php?aff=2640

    Please take up on the Free 3-day trial to put the VPN to test


    Putty can be downloaded atCode:

    Code
    http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html


    If using a Mac there are instructions at the end of the document for an alternative to Putty


    First open Putty, and in the HostName (or IP address) box enter the enigma2 boxes IP address, and then click the Telnet radio button and click open


    Screenshot (132).png


    And then log in using the word, root


    Screenshot (133).png


    We only need to edit lines 1 to 3


    Change line 1 uuuu with your username between the " "


    Example USERNAME='davesayers19'


    Change line 2 pppp with your password between the " "


    example PASSWORD='149356d'


    On line 3 change GBR to the country you want the VPN to connect to


    Example COUNTRY='NLD'


    NLD is for Netherlands


    Do not edit anything below line 3 as it may cause errors


    You can change the country you want the VPN server you want to connect to use the 3 letters 3 Letter Code ie GBR for United Kingdom a list of countries here


    Code
    https://help.my-private-network.co.uk/support/solutions/articles/8461-which-countries-can-i-connect-to-


    Once you have edited your details copy the script and paste into putty as per example below


    Screenshot (131).png


    And hit enter




    Before starting OpenVPN we can run an IP check script this will tell you if the vpn is working and you can test it when changing servers.


    The script should have downloaded a plugin called IP Checker.


    Goto plugin and you should see IP Checker press ok on the plugin and it should run a simple IP check script


    You should get something like this I have removed part of my IP address


    22038-238673c8d21768d06c0b03582da624e1.jpg


    Now start openvpn on box


    OpenVPN.jpg


    After starting openvpn the above should stay green and say running, You can now go back to plugins and start IP Checker and see if the IP Address has changed


    If using Mac


    There is a version of Putty for Mac but is not very good.

    Open Applications ->Utilities ->


    Type the following command telnet 192.168.X.X (change the IP address to the one for the Zgemma/Enigma2 boxes)


    Enter the username root (and password if you have set one) and press enter


    Then follow the instructions above.



    Problem 1,

    When enabling OpenVPN I lose internet connection.


    Possible Solution


    Goto your network settings on box and change DHPC to no then blue button to Edit DNS


    Try Google DNS


    Nameserver 1 8.8.8.8

    Nameserver2 8.8.4.4

  • OpenVPN script generator


    If using a Mac there are instructions at the end of the document for an alternative to Putty


    First open Putty, and in the HostName (or IP address) box enter the enigma2 boxes IP address, and then click the Telnet radio button and click open




    And then log in using the word, root




    Users can now visit

    Code
    http://e2openvpn.com/OpenVPN_Generator/


    Add there username and password this will now generate a script.

    Copy and paste the script in putty and hit enter you should now have the option for what VPN you want to use:


    1) Nord VPN

    2) IP Vanish

    3) Digibit

    4) PureVPN

    5) PIA VPN

    6) Windscrape

    7) SurfShark

    8) TorGuard

    9) Quit



    Choose your option and hit Enter this should then download the configs and once finished it will say OpenVPN Configs downloaded Please Start OpenVPN.

    You will be asked to enter your choice again but you can ignore this.

    Reboot box and goto plugins, VPN Changer and choose a country.


    If using Mac


    There is a version of Putty for Mac but is not very good.

    Open Applications ->Utilities ->

    Type the following command telnet 192.168.X.X (change the IP address to the one for the Zgemma/Enigma2 boxes)

    Enter the username root (and password if you have set one) and press enter

    Then follow the instructions above.


    Problem 1,


    When enabling OpenVPN I lose internet connection.

    Possible Solution

    Goto your network settings on box and change DHPC to no then blue button to Edit DNS

    Try Google DNS

    Nameserver 1 8.8.8.8

    Nameserver2 8.8.4.4

    Edited 6 times, last by dsayers ().

  • I can't login to my ProtonVPN account.

    This is my log.

    Any ideas?

  • Here is my contribution with Surfshark VPN... Cheapest among the best!


    Cheap and good quality VPN for unlimited number of devices and it works easily in E2 with YIFY etc.


    Yes, you read it well: it's for unlimited number of devices, so no worries as to how to set it all up so your whole network actually functions well! It works well with standard settings even in Windows, with their app.


    In our STBs with E2 it works well with ovpn files (each for a different server, just to be on the safe side), edited as described in my post and copied to openvpn folder (which you must make in /etc/).


    Tested in:

    Zgemmas

    H7

    H9.2H

    H9 Combo

    i55+


    Edision OS mio 4K


    :rasta2bigsmoke0gf1:

    "Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!"


    http://www.columbia.edu/acis/ets/CCREAD/etscc/kant.html

  • Surfshark is included in script option number 7

    I can't login to my ProtonVPN account.

    This is my log.

    Any ideas?

    Have you included any other files that maybe needed ie certificate and is username and password correct

  • I haven't seen Surfshark... I think I saw 6 of them so far... But I haven't looked into the script in detail... ;)

    "Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!"


    http://www.columbia.edu/acis/ets/CCREAD/etscc/kant.html

  • Cool, D!!! :thumbup:


    The thing is, this is OpenVPN but new IKEv2 is faster, so if we could add that one... :)

    "Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!"


    http://www.columbia.edu/acis/ets/CCREAD/etscc/kant.html

  • "Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!"


    http://www.columbia.edu/acis/ets/CCREAD/etscc/kant.html

  • I wish I had access to all of those, m8... :) Sadly, only to my own... ;)


    I just mentioned it because this is a relevant thread (well done, again, for all of those things put together!), so people can see this and help themselves... :rasta2bigsmoke0gf1:

    "Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!"


    http://www.columbia.edu/acis/ets/CCREAD/etscc/kant.html

  • As usual thanks for all your hard work dsayers to make our lives easier I have one question If I wish to use your script generator with surfshark sub which user and password combination do I use to generate the script. To access surfshark site you use the username and password created at sign up. To download and use config files once logged in you have a unique randomly generated user and password to use which is different to your login details. Do I use the random generated one or my normal user and password. I have used Gorskis guide with one of the countries files which works well, however would prefer to be able to switch servers on the fly and cannot see how to acheive this using this method. Any help would be appreciated.

Your hub for IPTV & streaming support.

Get help with Android apps, Smart TV setup, m3u playlists, channel lists, and finding reliable live streaming websites. Master IPTV streaming on all devices. Find downloads, setup tutorials, and community support for apps, Smart TVs, and m3u channel lists.