Scripts and Guide for setting up OpenVPN with Most VPN,s on Enigma2

right, got it installed okay, ip checker shows me my ip address. however, when openvpn is running,
give the following error
IP address is
wget: bad address 'ipecho.net'
Execution finished
 
right, got it installed okay, ip checker shows me my ip address. however, when openvpn is running,
give the following error
IP address is
wget: bad address 'ipecho.net'
Execution finished
Run a network test in network menu. If any fail change box to Google dns. I had this problem with virgin hub 3 http://www.techkings.org/threads/using-openvpn-on-vm-hub-3.135083/

In network menu configure network from there and change dhpc to no

Sent from my SM-G955F using Tapatalk
 
Is there any way to just install the ipchecker plugin?

Kieron

Try talnet:
Code:
cd /var && cd /var/volatile && cd /var/volatile/tmp && wget -O /var/volatile/tmp/enigma2-plugin-extensions-ipchecker_001_all.ipk "https://github.com/davesayers2014/OpenVPN/blob/master/enigma2-plugin-extensions-ipchecker_001_all.ipk?raw=true" &> /dev/null 2>&1
opkg --force-reinstall --force-overwrite install enigma2-plugin-extensions-ipchecker_001_all.ipk &> /dev/null 2>&1cd
 
OpenATV 6.2 seems to have updated wget to 1.19.3 that compresses scripts and causes format errors this may also effect IPTV scripts I have updated first post with a updated script to get around this.

Im not sure if other images will update wget as its part of OE Alliance.
 
Nord VPN Script

This script downloads configs for Nord VPN and installs VPN Changer so users can change servers within the plugin

Simply copy and past this in notepad

Code:
USERNAME='uuuu'
PASSWORD='password'
###############################################################
# Standard Config
# If you change anything below this line, it probably wont
# be able to connect to your VPN.
################################################################
wget -O Nord.sh https://raw.githubusercontent.com/davesayers2014/OpenVPN/master/NordVPN/Nord.sh && sed -i "s/uuuu/$USERNAME/g" Nord.sh && sed -i "s/pppp/$PASSWORD/g" Nord.sh && chmod +x Nord.sh && ./Nord.sh

Only edit the first two lines with your username and password. Editt uuuu with your username and pppp with your password ensure you edit within the ' '

Example

USERNAME='dsayers'
PASSWORD='14dh9'

Copy all the text and past in Talnet/Putty.

When the script has finished goto plugins and choose VPN Changer and select the country you want to use.
 
For other VPN,s to use 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

Now FTP your config files to hdd/vpn

Now using Talnet/putty type

Code:
cd /hdd/vpn

This will put putty in hdd/vpn

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

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" '{}' \;




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

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

Attachments

  • enigma2-plugin-extensions-vpnchanger_1.1.0_all.zip
    11.5 KB · Views: 321
Last edited:
mine is not working. my user.txt does not look right, when I go into etc/openvpn/user.txt. do you have an example of user.txt or else virgin media are blocking this from working.
 
Nord VPN Script

This script downloads configs for Nord VPN and installs VPN Changer so users can change servers within the plugin

Simply copy and past this in notepad

Code:
USERNAME='uuuu'
PASSWORD='pppp'
###############################################################
# Standard Config
# If you change anything below this line, it probably wont
# be able to connect to your VPN.
################################################################
wget -O Nord.sh https://raw.githubusercontent.com/davesayers2014/OpenVPN/master/NordVPN/Nord.sh && sed -i "s/uuuu/$USERNAME/g" Nord.sh && sed -i "s/pppp/$PASSWORD/g" Nord.sh && chmod +x Nord.sh && ./Nord.sh

Only edit the first two lines with your username and password. Editt uuuu with your username and pppp with your password ensure you edit within the ' '

Example

USERNAME='dsayers'
PASSWORD='14dh9'

Copy all the text and past in Talnet/Putty.

When the script has finished goto plugins and choose VPN Changer and select the country you want to use.
 
I'm getting following error

login as: root
root@vusolose:~# USERNAME='xxxxxxx@gmail.com'
root@vusolose:~# PASSWORD='xxxxxxxxxxxxx
root@vusolose:~# ###############################################################
root@vusolose:~# # Standard Config
root@vusolose:~# # If you change anything below this line, it probably wont
root@vusolose:~# # be able to connect to your VPN.
root@vusolose:~# ################################################################
root@vusolose:~# wget -O Nord.sh https://raw.githubusercontent.com/davesayers2014/OpenVPN/mast
--2018-02-27 15:45:15-- https://raw.githubusercontent.com/davesayers2014/OpenVPN/mast
Resolving raw.githubusercontent.com... failed: Name or service not known.
wget: unable to resolve host address ‘raw.githubusercontent.com’
root@vusolose:~#
root@vusolose:~# login as: root
root@vusolose:~# USERNAME='xxxxxxxxx'
root@vusolose:~# PASSWORD='xxxxxxxxxxxx'
root@vusolose:~# ###############################################################
root@vusolose:~# # Standard Config
root@vusolose:~# # If you change anything below this line, it probably wont
root@vusolose:~# # be able to connect to your VPN.
root@vusolose:~# ################################################################
root@vusolose:~# wget -O Nord.sh https://raw.githubusercontent.com/davesayers2014/OpenVPN/mast
--2018-02-27 15:45:15-- https://raw.githubusercontent.com/davesayers2014/OpenVPN/mast
Resolving raw.githubusercontent.com... failed: Name or service not known.
wget: unable to resolve host address ‘raw.githubusercontent.com’
root@vusolose:~#
root@vusolose:~#
Password:
 
mine is not working. my user.txt does not look right, when I go into etc/openvpn/user.txt. do you have an example of user.txt or else virgin media are blocking this from working.
Make sure you are using a compatible text editor ie notepad ++ not not pad, also that your conf file has this line

auth-user-pass user.txt
 

Attachments

  • user.rar
    89 bytes · Views: 28
I'm getting following error

login as: root
root@vusolose:~# USERNAME='xxxxxxx@gmail.com'
root@vusolose:~# PASSWORD='xxxxxxxxxxxxx
root@vusolose:~# ###############################################################
root@vusolose:~# # Standard Config
root@vusolose:~# # If you change anything below this line, it probably wont
root@vusolose:~# # be able to connect to your VPN.
root@vusolose:~# ################################################################
root@vusolose:~# wget -O Nord.sh https://raw.githubusercontent.com/davesayers2014/OpenVPN/mast
--2018-02-27 15:45:15-- https://raw.githubusercontent.com/davesayers2014/OpenVPN/mast
Resolving raw.githubusercontent.com... failed: Name or service not known.
wget: unable to resolve host address ‘raw.githubusercontent.com’
root@vusolose:~#
root@vusolose:~# login as: root
root@vusolose:~# USERNAME='xxxxxxxxx'
root@vusolose:~# PASSWORD='xxxxxxxxxxxx'
root@vusolose:~# ###############################################################
root@vusolose:~# # Standard Config
root@vusolose:~# # If you change anything below this line, it probably wont
root@vusolose:~# # be able to connect to your VPN.
root@vusolose:~# ################################################################
root@vusolose:~# wget -O Nord.sh https://raw.githubusercontent.com/davesayers2014/OpenVPN/mast
--2018-02-27 15:45:15-- https://raw.githubusercontent.com/davesayers2014/OpenVPN/mast
Resolving raw.githubusercontent.com... failed: Name or service not known.
wget: unable to resolve host address ‘raw.githubusercontent.com’
root@vusolose:~#
root@vusolose:~#
Password:

What image are you using? tested on OpenATV 6.1 and it should work on OpenVix 5.1.019
 
Back
Top