[E² Plugin] NordVPN-Connector

WaRp

(∩`-´)⊃━☆゚.*・。゚
Staff member
Administrator
Messages
29,652
[Plugin] NordVPN-Connector v 0.1 for DreamOS and OE2.0

Um meinen VPN-Provider NordVPN auf meinen E2-Boxen komfortabler verwalten zu können, hab ich mir mal ein Plugin gebastelt.
Damit ich es nicht alleine nutzen muss, stelle ich es auch denen zur Verfügung, die ebenfalls NordVPN als VPN-Provider verwenden und solche ein Plugin brauchen können.

Die Verbindungs-Listen können im Plugin Online heruntergeladen werden, somit ist ein manuelles zuführen der Listen nicht notwendig.
Mit Auswahl der entsprechenden Verbindung und Druck auf die OK-Taste wird entsprechende Verbindung initiiert.
Die Verbindungen sind nach Ländern sortiert, Links in der Tabelle befinden sich zur Auswahl die Länder,
Rechts dazu werden dann die jeweiligen Verbindungsmöglichkeiten aufgelistet.

Das Plugin selber sollte soweit selbsterklärend sein.

image.jpg


Mit "Beenden" (Rot) wird das Plugin verlassen.
Mit "Einstellungen" (Grün) kommt man in die unten beschriebenen Einstellungen.
Mit "OpenVPN de/aktivieren" (Gelb) kann man temporär die VPN-Verbindung aktivieren bzw. deaktivieren.
Mit "Springe zu Verbindung" (Blau) wird in der Liste zur aktuell verwendeten VPN-Verbindung gesprungen, dies dient nur zur Orientierung.
Mit "Auswahl Verbinden" (OK) wird die gewählte Verbindung aus der rechten Liste initiiert.

image.jpg


Unter Einstellungen werden dann die persönlichen Angaben zum NordVPN-Benutzeraccount gemacht, wie Username und Passwort,
desweiteren kann ausgewählt werden, ob OpenVPN beim Boot schon aktiviert werden soll.
Als StandardDNS wird dann schon der vorausgewählte DNS aus den Netzwerkeinstellungen dort eingetragen,
hier braucht eigentlich nur geändert werden, wenn ein abweichender DNS eingetragen werden soll, wenn OpenVPN wieder deaktiviert wird.
Bei Aktivierung der VPN-Verbindung wird als DNS auch der DNS des VPN-Providers verwendet, um den DNS-Leak zu umgehen,
wenn die VPN-Verbindung wieder deaktiviert wird, wird entsprechender StandardDNS wieder zurückgeschrieben.
Mit "Speichern" (Grün) werden die eingegebenen/eingestellten Daten gespeichert, mit "Abbrechen" (Rot) kann der Vorgang abgebrochen werden.
Mit "Lade neue Konfigdateien" (Gelb) werden die Konfigdateien von NordVPN heruntergeladen und aufbereitet.
Mit "Lösche Konfigdateien" (Blau) wird man diese Konfigdateien wieder los und werden von der Box gelöscht.

Zum Thema DNS-Leak:
Die beste VPN-Verbindung nützt nichts, wenn man trotz Aktivierung der VPN-Verbindung eine direkte DNS-Anfrage an den DNS des I-Net Providers oder gar Google macht.
Hier mal ein kleiner Erklärungsversuch von NordVPN:

DNS erklärt:

Das Domain Name System (DNS) ist verantwortlich dafür die Domain-Namen wie „nordvpn.com“ in tatsächliche IP-Adressen aufzulösen, mit denen man verbunden werden kann.
Im Grunde übersetzt es die langen, komplexen und schwer zu merkenden nummerischen Namen von Webservern in menschliche Sprache und umgekehrt.
Wann immer Ihr Computer also Zugang zu einer bestimmten Website benötigt, z.B. bei der Eingabe von „google.com“ in Ihren Browser,
kontaktiert er zuerst einen DNS-Server und fragt nach der eindeutigen IP-Adresse der Website.

Was ist ein DNS-Leck?:

Wenn Sie versuchen, Ihre Online-Aktivitäten mit einem VPN-Dienst sicher und privat zu halten, ist es äußerst wichtig,
dass der gesamte Datenverkehr von Ihrem Computer über das VPN-Netzwerk geroutet wird.
Dazu gehören die vorstehend genannten DNS-Anfragen,
diese sollten durch den VPN-Tunnel an den DNS-Server Ihres VPN-Provider gehen anstatt an den Server Ihres Internetanbieters.

DNS-Leaks kann man z.B. unter "dnsleaktest.com" testen, hier ein kleines Beispiel dazu:

Verbindung ohne VPN:

image.jpg


Verbindung mit VPN:

image.jpg


hier ist schön zu sehen, das bei aktiver VPN-Verbindung auch die DNS Anfrage über die VPN-Verbindung geht,
ansonsten würde, wie im Beispiel, der deutsche Provider dort aufgeführt werden.
Wenn im rechten Bild, wie im Beispiel, der deutsche Provider erscheinen sollte, liegt ein DNS-Leak vor.


Wenn dieses Plugin auf ein frisch geflashtes Image installiert werden soll, dann am besten bei OE2.0 vorher über Telnet noch ein:

Code:
opkg update

und bei DreamOS ein:
Code:
apt-get update

ausführen, damit die Package-List aktualisiert wird, ansonsten kann es schon mal zu Problemen mit den nötigen Abhängigkeiten kommen,
dass diese nicht gefunden werden.

Getestet wurde dieses Plugin für OE2.5 unter dem Original Drembox-Image und unter Merlin, alle anderen OE2.5 Images sollten demnach ebenfalls funktionieren.
Images auf Basis OE2.0 wurden OpenNFR, OpenATV und OpenPli getestet.

Thanks @Lizard
 

WaRp

(∩`-´)⊃━☆゚.*・。゚
Staff member
Administrator
Messages
29,652
NordVPN-Connector v 0.2

Function extension "Kill Switch":

To ensure that if the OpenVPN connection is interrupted, no further request can be made from or to the Internet,
I have used iptables, which only allows requests for the currently used VPN-IP address and its DNS,
For this, under Settings also "Kill Switch" must be activated.
So if no OpenVPN connection is active when the kill switch is activated, no request to the internet is possible.

Additionally fixed some bugs.

image.jpg

image.jpg



Thanks @Lizard
 

WaRp

(∩`-´)⊃━☆゚.*・。゚
Staff member
Administrator
Messages
29,652
NordVPN-Connector v 0.3

Function extension:
Representation of the respective server load
Optional presentation of the plugin in the menu
Optional presentation of the server load in the menu
Display if Killswitch is active
Display of the currently used public IP address on the Internet
Page-by-page scrolling with Page buttons now possible

Various fixes regarding killswitch
Other fixes

Under Settings, additional options have been added:

image.jpg


Show plugin in the menu:
This will display the plugin "NordVPN Connector" in the menu area for quicker selection,
For this setting to take effect, a GUI restart is necessary.

Show server usage in the menu:
With this setting you can display the current utilization of the currently used server in the menu item.
This point is currently marked as "Experimental", since the current load of the server is determined at the menu call,
there may be a momentary delay in the display of the menu, but this also depends on which VPN server (country) is currently being used,
the delays have different effects.
This point is to be regarded as "Nice to have", who has problems with it or who it bothers, can / should disable this setting.

List sorted by server load:
This will sort the server selection list in ascending order of server load, to help make selecting a suitable server faster.

Screenshot of the menu:

image.jpg


Screenshot of server selection (sorted):

image.jpg


In the open server selection above, the view of the server loads is updated every 60 seconds and sorted accordingly when sorting.

Thanks @Lizard
 

WaRp

(∩`-´)⊃━☆゚.*・。゚
Staff member
Administrator
Messages
29,652
NordVPN-Connector v 0.3-r3

Fix:
- Missing service files for OpenVPN at NN2 are added by the plugin.
- Fixed MessageBox problem with VTi
- Problem when entering username / password fixed.
 

WaRp

(∩`-´)⊃━☆゚.*・。゚
Staff member
Administrator
Messages
29,652
NordVPN-Connector v 0.3-r3(Fix)
Update 20.04.2019

- Fix DNS-Problem

Thanks @Lizard
 

WaRp

(∩`-´)⊃━☆゚.*・。゚
Staff member
Administrator
Messages
29,652
NordVPN-Connector v 0.3-r4
Update 27.04.2019

-Zugangsdaten (Username/Passwort) per USB-Stick/HDD übertragbar.

Lizard wrote:
In der Version v0.3-r4, ich noch eine Funktion eingebaut,
die die Zugangsdaten aus einer Datei auf dem USB-Stick/HDD ausliesst und beim Aufruf der "Einstellungen" ausliest und einträgt,
zur Vorbeugung von Vertippern beim Ausfüllen der Zugangsdaten.
Die Datei muss "nordvpnauth" heissen, genau in dieser Schreibweise ohne Anführungszeichen und sollte im Grundverzeichnis des Mediums liegen.

Der Inhalt der Datei muss wie folgt aussehen:
hierderusername
hierdaspasswort
also 1. Zeile der Benutzername und in der 2. Zeile das Passwort.

Wenn das Medium (USB-Stick/HDD) vorhanden ist und die Datei "nordvpnauth" existiert, wird diese jedesmal nach Aufruf der Einstellungen ausgelesen.
Nach einmaligen Auslesen kann also der USB-Stick entfernt oder die Datei "nordvpnauth" vom Medium gelöscht werden, damit sie nicht jedesmal wieder eingelesen wird,
es ist für die User interessant, die ihre HDD im Sparmodus/Sleepmodus betreiben, damit die HDD dann nicht immer geweckt wird.

Thanks @Lizard
 

WaRp

(∩`-´)⊃━☆゚.*・。゚
Staff member
Administrator
Messages
29,652
NordVPN-Connector Update Version 0.4 r1

Fix:
Access problem Oscam Webif, DCC, etc.
Smaller optimizations
Basic setting is now "iptables" and no longer "route"
Acceleration Download server status list at boot time

There is no .ipk or .deb installation package available, the installation is done via a Telnet command:

For DreamOS (.deb)
Code:
wget http://nordvpnconnector.dd-dns.de/nvpnc-installer_dreamos.sh -O - | /bin/sh

For (.ipk) in the OE1.6 / OE2.0 boxes
Code:
wget http://nordvpnconnector.dd-dns.de/nvpnc-installer_ipk.sh -O - | /bin/sh

Thanks Lizard
 

WaRp

(∩`-´)⊃━☆゚.*・。゚
Staff member
Administrator
Messages
29,652
NorthVPN connector update version 0.4-r2

Add (only for OE1.6 / 2.0 version, in the DreamOS version it already existed):
added iptables for killswitch (only for models that support it)

Add (for all versions):
Changeover for "route" and "iptables" as Killswitch function added in the settings, there it can now comfortably change,
after conversion, a reboot of the box is necessary.
Default setting for DreamOS is "iptables"
Default setting for OE1.6 / OE2.0 is "route"

Fix:
Some minor fixes, tweaks and adjustments.

Note:
If you have already installed the version from v0.4, you only have to do a software update in the device
Install all the others as described in the previous post

Thanks Lizard
 

WaRp

(∩`-´)⊃━☆゚.*・。゚
Staff member
Administrator
Messages
29,652
NordVPN-Connector Update Version 0.4 r3

- Fix color buttons for VTI (thx @murxer for this)
- keymap extended for keyboard (thx @pclin for this)
- more small fixes.

There is no .ipk or .deb installation package available, the installation is done via a Telnet command:

For DreamOS (.deb)
Code:
wget http://nordvpnconnector.dd-dns.de/nvpnc-installer_dreamos.sh -O - | /bin/sh

For (.ipk) in the OE1.6 / OE2.0 boxes
Code:
wget http://nordvpnconnector.dd-dns.de/nvpnc-installer_ipk.sh -O - | /bin/sh

Note:
If you have already installed the version from v0.4, you only have to do a software update in the device

Thanks Lizard
 

WaRp

(∩`-´)⊃━☆゚.*・。゚
Staff member
Administrator
Messages
29,652
NordVPN-Connector Update Version 0.4 r4

Fix - only IPK version OE1.6 / OE2.0

- fix netmask issue with iptables with 6.4 images
Effect on active killswitch (iptables), no access to WebIf and other accesses to Box.

Update only necessary if version 6.4 images such as. OpenATV 6.4 and only if iptables for Killswitch is used in the context
otherwise you can stay with version 0.4-r3.

There is no .ipk or .deb installation package available, the installation is done via a Telnet command:

For DreamOS (.deb)
Code:
wget http://nordvpnconnector.dd-dns.de/nvpnc-installer_dreamos.sh -O - | /bin/sh

For (.ipk) in the OE1.6 / OE2.0 boxes
Code:
wget http://nordvpnconnector.dd-dns.de/nvpnc-installer_ipk.sh -O - | /bin/sh

Thanks Lizard
 

WaRp

(∩`-´)⊃━☆゚.*・。゚
Staff member
Administrator
Messages
29,652
NordVPN-Connector Update Version 0.4 r5

- Fix: calculation uptime
et al Impact on automatic update of the server lists.

There is no .ipk or .deb installation package available, the installation is done via a Telnet command:

For DreamOS (.deb)
Code:
wget http://nordvpnconnector.dd-dns.de/nvpnc-installer_dreamos.sh -O - | /bin/sh

For (.ipk) in the OE1.6 / OE2.0 boxes
Code:
wget http://nordvpnconnector.dd-dns.de/nvpnc-installer_ipk.sh -O - | /bin/sh

Thanks Lizard
 

WaRp

(∩`-´)⊃━☆゚.*・。゚
Staff member
Administrator
Messages
29,652
NordVPN-Connector Update Version 0.4 r6 (Fix - only DreamOS)

Fix:

- Timeout for download server status raised, aborted too early.
- "/ proc / progress" is missing from Dream One, plugins that use this have their problems,
in this version it is ignored if it is not available, but can cause problems in the background process when booting, but need not.
- Keyboard fix "KEY_ESC", thx @ pclin

There is no .ipk or .deb installation package available, the installation is done via a Telnet command:

For DreamOS (.deb)
Code:
wget http://nordvpnconnector.dd-dns.de/nvpnc-installer_dreamos.sh -O - | /bin/sh

For (.ipk) in the OE1.6 / OE2.0 boxes
Code:
wget http://nordvpnconnector.dd-dns.de/nvpnc-installer_ipk.sh -O - | /bin/sh

Thanks Lizard
 

WaRp

(∩`-´)⊃━☆゚.*・。゚
Staff member
Administrator
Messages
29,652
NordVPN-Connector Update Version 0.4 r6 (Fix for OE1.6 / OE2.0)

Fix:
- Timeout for download server status raised, aborted too early.
- Keyboard fix "KEY_ESC", thx @ pclin

There is no .ipk or .deb installation package available, the installation is done via a Telnet command:

For DreamOS (.deb)
Code:
wget http://nordvpnconnector.dd-dns.de/nvpnc-installer_dreamos.sh -O - | /bin/sh

For (.ipk) in the OE1.6 / OE2.0 boxes
Code:
wget http://nordvpnconnector.dd-dns.de/nvpnc-installer_ipk.sh -O - | /bin/sh

Thanks Lizard
 

WaRp

(∩`-´)⊃━☆゚.*・。゚
Staff member
Administrator
Messages
29,652
NordVPN-Connector Update Version 0.4 r7 (Fix )

Fix:
- gs if old ip unknown

There is no .ipk or .deb installation package available, the installation is done via a Telnet command:

For DreamOS (.deb)
Code:
wget http://nordvpnconnector.dd-dns.de/nvpnc-installer_dreamos.sh -O - | /bin/sh

For (.ipk) in the OE1.6 / OE2.0 boxes
Code:
wget http://nordvpnconnector.dd-dns.de/nvpnc-installer_ipk.sh -O - | /bin/sh

Thanks Lizard
 

WaRp

(∩`-´)⊃━☆゚.*・。゚
Staff member
Administrator
Messages
29,652
NordVPN-Connector Update Version 0.4 r8 (Fix )

Fix:
- add alternative api url
Previous API url for querying the server status does not currently provide any data, hence "N / A" everywhere.
An alternative API url has been added if the url used so far is faulty.
The disadvantage of the alternative url is that much more data is delivered and thus the download runs longer and more traffic is generated.
When the box is booted, it can take a little longer for data on the server load and thus "N / A" to be displayed at the beginning.

There is no .ipk or .deb installation package available, the installation is done via a Telnet command:

For DreamOS (.deb)
Code:
wget http://nordvpnconnector.dd-dns.de/nvpnc-installer_dreamos.sh -O - | /bin/sh

For (.ipk) in the OE1.6 / OE2.0 boxes
Code:
wget http://nordvpnconnector.dd-dns.de/nvpnc-installer_ipk.sh -O - | /bin/sh

Thanks Lizard
 

WaRp

(∩`-´)⊃━☆゚.*・。゚
Staff member
Administrator
Messages
29,652
NordVPN-Connector Update Version 0.4 r9

- add Virtual KeyBoard

A "Virtual KeyBoard" was implemented to make the input options a little more comfortable under the settings, especially with regard to missing special characters.

Problem reporting

The "Virtual Keyboard" can be called up with the menu key, if "Virtual Keyboard = Menu" is also shown above,
this is the case with input fields such as "Username", "Password" and "Path of the config files".

vk-1.png

vk-2.png


There is no .ipk or .deb installation package available, the installation is done via a Telnet command:

For DreamOS (.deb)
Code:
wget http://nordvpnconnector.dd-dns.de/nvpnc-installer_dreamos.sh -O - | /bin/sh

For (.ipk) in the OE1.6 / OE2.0 boxes
Code:
wget http://nordvpnconnector.dd-dns.de/nvpnc-installer_ipk.sh -O - | /bin/sh

Thanks Lizard​
 

WaRp

(∩`-´)⊃━☆゚.*・。゚
Staff member
Administrator
Messages
29,652
NordVPN-Connector Update Version 0.4 r10

Fix:
- remove primary download source for openvpn-configs
Since NordVPN has switched off the URL that I primarily used as the download source for the OpenVPN configs,
has been removed from the plugin, only the alternative download source is used.
- Fix "start openvpn at boot" function
Despite the deactivated function "Activate OpenVPN at boot", OpenVPN was started at boot, this has now been fixed.


There is no .ipk or .deb installation package available, the installation is done via a Telnet command:

For DreamOS (.deb)
Code:
wget http://nordvpnconnector.dd-dns.de/nvpnc-installer_dreamos.sh -O - | /bin/sh

For (.ipk) in the OE1.6 / OE2.0 boxes
Code:
wget http://nordvpnconnector.dd-dns.de/nvpnc-installer_ipk.sh -O - | /bin/sh

Thanks Lizard
 

WaRp

(∩`-´)⊃━☆゚.*・。゚
Staff member
Administrator
Messages
29,652
NordVPN-Connector Update Version 0.4 r11

Fix:
- fix automatic download


There is no .ipk or .deb installation package available, the installation is done via a Telnet command:

For DreamOS (.deb)
Code:
wget http://nordvpnconnector.dd-dns.de/nvpnc-installer_dreamos.sh -O - | /bin/sh

For (.ipk) in the OE1.6 / OE2.0 boxes
Code:
wget http://nordvpnconnector.dd-dns.de/nvpnc-installer_ipk.sh -O - | /bin/sh

or
if it is already installed execute the software update in the image.

Thanks Lizard
 

WaRp

(∩`-´)⊃━☆゚.*・。゚
Staff member
Administrator
Messages
29,652
23/04/2033

NordVPN Connector update to version 0.4-r12 (deb) / 0.4-r13 (ipk) - (Fix)

- Fix ping

Install plugin via wget as usual, or if already installed, run the software update in the image.

For DreamOS (.deb) - <since 11/27/2019 also Dreambox One> - the telnet command is :
wget http://nordvpnconnector.boxpirates.to/nvpnc-installer_dreamos.sh -O - | /bin/sh

For the rest (.ipk) on OE1.6/OE2.0 boxes, the telnet command is:
wget http://nordvpnconnector.boxpirates.to/nvpnc-installer_ipk.sh -O - | /bin/sh

After installation via wget-Installer the plugin is also updateable and can then also be updated via the software update.
Afterwards it can be updated also over the console then the update.

For DreamOS:
apt-get update && apt-get install --only-upgrade enigma2-plugin-extensions-nordvpnconnector

For OE1.6 / OE2.0
opkg update && opkg upgrade enigma2-plugin-extensions-nordvpnconnector
 

WaRp

(∩`-´)⊃━☆゚.*・。゚
Staff member
Administrator
Messages
29,652
NordVPN-Connector Update auf Version 0.4-r8.3 für VTI - (Fix)

- Fix ping

Install plugin via wget as usual, or if already installed, run the software update in the image.
wget commands can be found in the previous post
 
Top