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 22 12311 ... LastLast
Results 1 to 15 of 318

Thread: OpenVPN Setup guide for most VPN,s

  1. #1
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,755
    Thanks
    472
    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,755
    Thanks
    472
    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,755
    Thanks
    472
    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
    Hi had a quick go. Looks good.loaded 1 nord file but it couldnt find the one other boxes using. Ill have another look when i have more time..
    Thanks for all your work
    Last edited by v8rick; 01-03-18 at 15:35.

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

    dsayers (01-03-18)

  11. #7

    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

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

    dsayers (04-03-18)

  13. #8

    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.

  14. #9

    Title
    Forum Supporter
    Donated Member
    Join Date
    Jan 2012
    Posts
    343
    Thanks
    73
    Thanked 76 Times in 55 Posts
    Hi ran for a couple of days on a zero and a f4 using NORD on both it works for a while then loses vpn. I went to ect/openvpn and the files the plugin created
    were auth.txt, uk144.nordvpn.com.udp.conf and openvpn .log.
    I used to use openvpn using NORD and nord said the files you use are password.conf and client.conf .This worked fine for me. Client.conf was a renamed file say the uk144.nordvpn.com.udp.conf with added bits
    (untill i treated myself to an asus 5300 )

    Hope this makes sence and is of some help.

  15. #10
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,755
    Thanks
    472
    Thanked 607 Times in 433 Posts
    Quote Originally Posted by v8rick View Post
    Hi ran for a couple of days on a zero and a f4 using NORD on both it works for a while then loses vpn. I went to ect/openvpn and the files the plugin created
    were auth.txt, uk144.nordvpn.com.udp.conf and openvpn .log.
    I used to use openvpn using NORD and nord said the files you use are password.conf and client.conf .This worked fine for me. Client.conf was a renamed file say the uk144.nordvpn.com.udp.conf with added bits
    (untill i treated myself to an asus 5300 )

    Hope this makes sence and is of some help.
    For vpn changer I use the server name .conf this works you don't need to rename Client.conf just rename the extension, I used auth.txt as a base for all vpn's and this works as long as the .conf file has been edited to suit. As you had it working means the method works then loose connection maybe just a drop In the server and changing countries might have worked.

    The script downloads all .conf files in sub folders for the country's in hdd/NordVPN then downloads auth.txt to tmp adds username and password then copies auth.txt to all sub folders in hdd/NordVPN.

    Then VPN Changer copies the contents of the country chosen to etc/openvpn.
    Last edited by dsayers; 06-03-18 at 18:03.

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

    v8rick (06-03-18)

  17. #11

    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
    For vpn changer I use the server name .conf this works you don't need to rename Client.conf just rename the extension, I used auth.txt as a base for all vpn's and this works as long as the .conf file has been edited to suit. As you had it working means the method works then loose connection maybe just a drop In the server and changing countries might have worked.

    The script downloads all .conf files in sub folders for the country's in hdd/NordVPN then downloads auth.txt to tmp adds username and password then copies auth.txt to all sub folders in hdd/NordVPN.

    Then VPN Changer copies the contents of the country chosen to etc/openvpn.
    OK thats good i dont use it anymore. Just thouht I'd try it

    I moved on to Asuswrt-merlin
    Keep up the good work

  18. #12
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,755
    Thanks
    472
    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.

  19. 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)

  20. #13

    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?

  21. #14
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,755
    Thanks
    472
    Thanked 607 Times in 433 Posts
    I can have a look if you can provide me a direct link to there config files

  22. #15

    Title
    Junior Member
    Join Date
    Aug 2011
    Posts
    2
    Thanks
    3
    Thanked 0 Times in 0 Posts
    thanks mate but it seems the only way to download the config files is to have an account with expressvpn.

Page 1 of 22 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.