Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Page 1 of 21 12311 ... LastLast
Results 1 to 15 of 318

Thread: OpenVPN Setup guide for most VPN,s

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,761
    Thanks
    473
    Thanked 607 Times in 433 Posts

    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. The 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 password.conf 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:
    cd /hdd/vpn
    This will put putty in hdd/vpn

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

    Type in talnet/putty
    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 password.conf to each conf file in talnet/putty paste
    Code:
    # Edit all conf files to have auth-user-pass/auth-user-pass password.conf
    find . -name "*.conf" -exec sed -i "s/auth-user-pass/auth-user-pass password.conf/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:
    # 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 password.conf to tmp with your username and password added.

    Now use the following command to copy password.conf to each sub folder with this command

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


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

    VPN Changer attached 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
    Attached Files Attached Files

  2. The Following 14 Users Say Thank You to dsayers For This Useful Post:

    + Show/Hide list of the thanked

    Ashley69 (24-02-18),bodger (15-06-18),cwebb66 (24-02-18),duoduo (24-02-18),dynamicsarai (13-11-20),gaz31 (02-03-18),huggybear (20-10-20),imish (04-08-19),john doe (24-02-18),Mr. Mister (24-02-18),Sicilian (24-02-18),tricky_dicky (03-11-18),Valiant (28-02-18),Willo3092 (24-02-18)

  3. #2
    duoduo's Avatar
    Title
    Forum Supporter
    Donated Member
    Join Date
    Feb 2013
    Location
    North West Seaside
    Posts
    2,006
    Thanks
    645
    Thanked 389 Times in 309 Posts
    Needs to become a sticky this, well done buddy...
    Vix image (usually latest) - VU Solo 4K- WD 1TB INTERNAL HDD - DVB-T Freeview, trialling IPTV options

    If my response has helped you, don't forget to hit the thanks button below. I appreciate you appreciate me

  4. The Following User Says Thank You to duoduo For This Useful Post:

    dsayers (24-02-18)

  5. #3
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,761
    Thanks
    473
    Thanked 607 Times in 433 Posts
    Quote Originally Posted by duoduo View Post
    Needs to become a sticky this, well done buddy...
    Thanks, Just could do with somebody changing the VPN Changer plugin.py from German to English. Ive seen a modded .py but it crashes when trying to change server if configs are wrong

  6. #4
    duoduo's Avatar
    Title
    Forum Supporter
    Donated Member
    Join Date
    Feb 2013
    Location
    North West Seaside
    Posts
    2,006
    Thanks
    645
    Thanked 389 Times in 309 Posts
    Just a heads up that xtream editor have added the option to implement a vpn with their services, with noting of using a vpn so you can watch via iptv
    Vix image (usually latest) - VU Solo 4K- WD 1TB INTERNAL HDD - DVB-T Freeview, trialling IPTV options

    If my response has helped you, don't forget to hit the thanks button below. I appreciate you appreciate me

  7. #5
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,761
    Thanks
    473
    Thanked 607 Times in 433 Posts
    Anyone fancy testing a new VPN script?

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

    Nord VPN
    IP Vanish
    Digibit

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

    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) Quit

    Screenshot (30).jpg

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

    Screenshot (31).jpg

    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.
    Last edited by dsayers; 28-02-18 at 10:42.

  8. The Following 8 Users Say Thank You to dsayers For This Useful Post:

    Andy_Hazza (28-02-18),bassethound (04-03-18),deyanc (01-11-18),djusteve (11-04-19),duoduo (01-03-18),Shedwoods (05-03-18),v8rick (01-03-18),Valiant (28-02-18)

  9. #6

    Title
    Forum Supporter
    Donated Member
    Join Date
    Jan 2012
    Posts
    343
    Thanks
    73
    Thanked 76 Times in 55 Posts
    Quote Originally Posted by dsayers View Post
    Anyone fancy testing a new VPN script?
    set this on friends F4 working great so far

    cheers

  10. The Following User Says Thank You to v8rick For This Useful Post:

    dsayers (04-03-18)

  11. #7

    Title
    Junior Member
    Join Date
    Dec 2017
    Posts
    1
    Thanks
    1
    Thanked 0 Times in 0 Posts
    ...MANY MANY thanks ....this has solved wasted hours of trying to get this configured correctly.

  12. #8
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,761
    Thanks
    473
    Thanked 607 Times in 433 Posts
    A little update on this I have managed to create a OpenVPN Script generator

    Users can now visit
    Code:
    http://e2openvpn2.dx.am/OpenVPN/
    Enter Username and password this will 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) Quit

    Screenshot (77).png

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

    Screenshot (78).jpg

    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.
    Last edited by dsayers; 07-08-18 at 19:34.

  13. The Following 4 Users Say Thank You to dsayers For This Useful Post:

    21alpha (17-08-18),colheath (20-09-20),duoduo (08-08-18),khan888 (08-08-18)

  14. #9

    Title
    Junior Member
    Join Date
    Aug 2011
    Posts
    2
    Thanks
    3
    Thanked 0 Times in 0 Posts
    great work on the script. Will you be adding ExpressVPN to the list at all?

  15. #10

    Title
    Forum Supporter
    Donated Member
    Join Date
    Feb 2011
    Posts
    1
    Thanks
    9
    Thanked 0 Times in 0 Posts
    Anyone know how to add automatically the line "block-outside-dns" in to all .conf files with every change of the server?

  16. #11

    Title
    Forum Supporter
    Donated Member
    Join Date
    Mar 2014
    Posts
    102
    Thanks
    31
    Thanked 7 Times in 6 Posts
    Hi, trying to set this up on xtrend et8000 with a digibit account. Script runs but can't get the VPN to work. The only files in each server folder is the auth.txt and the xxx_server_xxx.config files, should there not be more?

    Any help appreciated

  17. #12
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,761
    Thanks
    473
    Thanked 607 Times in 433 Posts
    Quote Originally Posted by sticky7 View Post
    Hi, trying to set this up on xtrend et8000 with a digibit account. Script runs but can't get the VPN to work. The only files in each server folder is the auth.txt and the xxx_server_xxx.config files, should there not be more?

    Any help appreciated
    No that should be it. Check username and password in auth.txt to see if there correct.

  18. #13
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,761
    Thanks
    473
    Thanked 607 Times in 433 Posts
    Quote Originally Posted by deyanc View Post
    Anyone know how to add automatically the line "block-outside-dns" in to all .conf files with every change of the server?
    Probably by modifying step 3 Google add new line in script. Try adding to 1 file then modify command in step 3

  19. The Following User Says Thank You to dsayers For This Useful Post:

    deyanc (09-11-18)

  20. #14

    Title
    Member
    Join Date
    Nov 2011
    Posts
    31
    Thanks
    7
    Thanked 2 Times in 2 Posts
    hi mate when i paste my details into putty i get this error message
    line 15 syntax error unexpected "("
    any ideas

    thanks

  21. #15
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,761
    Thanks
    473
    Thanked 607 Times in 433 Posts
    Quote Originally Posted by djusteve View Post
    hi mate when i paste my details into putty i get this error message
    line 15 syntax error unexpected "("
    any ideas

    thanks
    Is that after choosing a number or straight after pasting the script?

Page 1 of 21 12311 ... LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.