NordVPN


Recommended Posts

3 hours ago, SimpleDino said:

For anyone that wants to test the speed of the container they can run speedtest-cli:

 

Open NordVPN console and run these commands:

sudo apt update

sudo apt speedtest-cli

speedtest-cli

 

If you reboot or restart the container then you must run the commands again.

 

Hi! Thanx for posting this!

But for me it doesn't work. After sudo apt speedtest-cli it's reporting

E: Invalid operation speedtest-cli.

Link to comment
9 minutes ago, delgatto said:

 

Hi! Thanx for posting this!

But for me it doesn't work. After sudo apt speedtest-cli it's reporting

E: Invalid operation speedtest-cli.

 

Don't know why it doesn't work for you. could post your input commands and the following texts?

 

 

Link to comment
10 minutes ago, SimpleDino said:

 

Don't know why it doesn't work for you. could post your input commands and the following texts?

 

 

 

root@a9dc4d0a983b:/# sudo apt update
Get:1 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
Get:6 https://repo.nordvpn.com/deb/nordvpn/debian stable InRelease [6174 B]                           
Get:7 https://repo.nordvpn.com/deb/nordvpn/debian stable/main amd64 Packages [6280 B]                 
Get:8 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]                                                
Get:9 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [839 kB]                                  
Get:10 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1470 kB]                                    
Get:11 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [889 kB]                               
Get:12 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [30.1 kB]                              
Get:5 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]                                           
Get:13 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]                                         
Get:14 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]                                              
Get:15 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1121 kB]                                  
Get:16 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [33.7 kB]                                
Get:17 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1940 kB]                                      
Get:18 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [1003 kB]                                
Get:19 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [23.8 kB]                                
Get:20 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [50.8 kB]                                    
Fetched 9879 kB in 9min 42s (17.0 kB/s)                                                                                  
Reading package lists... Done
Building dependency tree       
Reading state information... Done
6 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@a9dc4d0a983b:/# sudo apt speedtest-cli
E: Invalid operation speedtest-cli

Link to comment
On 1/25/2022 at 2:14 PM, tiny-e said:

Not sure how to pull this off... but I'd think a script could (possibly?)-.....

 

  • Get the public ip of the server via something like ifconfig.io
  • bash into the nordvpn docker container and run some commands (nordvpn status, curl ifconfig.io, etc., )
  • See if nordvpn status reports "connected"
  • Get the external IP and compare to the public ip
  • restart nordvpn or the container, or a list of containers, etc., if needed. 

 

I'm doing something like this:  (I'm a total noob, so please excuse if it's clunky)

#!/bin/bash

echo Restarting NordVPN
docker restart nordvpn
sleep 10

for value in prowlarr headphones lidarr Overseerr radarr readarr sonarr sabnzbd transmission
do
    echo Restarting: $value 
    docker restart $value 
    sleep 1
done

 

 

Here's a health-check script that you can run via userscripts/cron.  Note:  This is mostly not my work, @CIA was kind enough to provide the main function and I added the prowl stuff for phone notifications.

 

#!/bin/bash

##############################################PROWL STUFF#########################################################

_app="Unraid Server NordVPN"
_priority="2"
_event1="VPN Connection Issue:  "
_event2="VPN Health Check:  " ## Currently unused
_description1="VPN Client reports connection is down or docker isn't running. Trying to fix that..."      
_description2="Running VPN Health Check (only notifies if debug mode enabled)" 			 
_apikey="PROWL-API-KEY-GOES-HERE"

##############################################PROWL STUFF#########################################################


_debug=true
_notifyatrun=true
_docker=nordvpn
_connected="Status: Connected"
_now=$(date +"%m_%d_%Y_%H%M")
_delay=1

#enter your docker container names (other than NordVPN) in the array below
#fires in order, you can add more -just follow the same syntax

declare -a _dependents
_dependents=( 
[1]=docker_1
[2]=docker_2
[3]=docker_3

)

if [[ "$_notifyatrun" == "true" ]]; then curl https://prowl.weks.net/publicapi/add -F apikey=$_apikey -F priority=$_priority -F application="$_app" -F event="$_event2" -F description="$_description2" > /dev/null 2>&1; fi

docker_func() {
  _cmd=$1
  for KEY in "${!_dependents[@]}"; do
    if [[ "$_debug" == "true" ]]; then echo ${_dependents[$KEY]} "Container" $_cmd; fi
    docker $_cmd ${_dependents[$KEY]}
    sleep $_delay
  done
}

if [ "$(docker ps -q -f name=$_docker)" ]; then
  _check_connection=$(docker exec $_docker nordvpn status)
  if [[ "$_debug" == "true" ]]; then echo $_check_connection; fi
  if [[ "$_check_connection" == *"$_connected"* ]]; then
	if [[ "$_debug" == "true" ]]; then echo "VPN Connected: " $_now; fi
    exit 0
  else
    docker stop $_docker
    sleep $_delay
  fi
fi

echo "VPN NOT running or Failed Connection: Restarting Services " $_now
if [[ "$_useprowl" == "true" ]]; then curl https://prowl.weks.net/publicapi/add -F apikey=$_apikey -F priority=$_priority -F application="$_app" -F event="$_event1" -F description="$_description1" > /dev/null 2>&1; fi
#Stop all dependents
docker_func stop
#Start VPN
docker start $_docker
sleep 15
#Start all dependents
docker_func start

I'm currently running it every 5 minutes via cron, all is working as expected. 

Edited by tiny-e
fixed formatting
Link to comment
3 hours ago, delgatto said:

 

root@a9dc4d0a983b:/# sudo apt update
Get:1 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
Get:6 https://repo.nordvpn.com/deb/nordvpn/debian stable InRelease [6174 B]                           
Get:7 https://repo.nordvpn.com/deb/nordvpn/debian stable/main amd64 Packages [6280 B]                 
Get:8 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]                                                
Get:9 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [839 kB]                                  
Get:10 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1470 kB]                                    
Get:11 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [889 kB]                               
Get:12 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [30.1 kB]                              
Get:5 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]                                           
Get:13 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]                                         
Get:14 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]                                              
Get:15 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1121 kB]                                  
Get:16 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [33.7 kB]                                
Get:17 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1940 kB]                                      
Get:18 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [1003 kB]                                
Get:19 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [23.8 kB]                                
Get:20 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [50.8 kB]                                    
Fetched 9879 kB in 9min 42s (17.0 kB/s)                                                                                  
Reading package lists... Done
Building dependency tree       
Reading state information... Done
6 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@a9dc4d0a983b:/# sudo apt speedtest-cli
E: Invalid operation speedtest-cli

Yeah sorry, I see others has already commented. I forgot the install part in sudo apt install speedtest-cli.

I have edited the post now also.

Edited by SimpleDino
Link to comment

Hello,

I have 2 containers runing (differents servers) and on both, I have this message that just appeared.

does the container need to be updated?

 

__ .___ ___. .______ ______ .______ .___________. ___ .__ __. .___________.
| | | \/ | | _ \ / __ \ | _ \ | | / \ | \ | | | |
| | | \ / | | |_) | | | | | | |_) | `---| |----` / ^ \ | \| | `---| |----`
| | | |\/| | | ___/ | | | | | / | | / /_\ \ | . ` | | |
| | | | | | | | | `--' | | |\ \----. | | / _____ \ | |\ | | |
|__| |__| |__| | _| \______/ | _| `._____| |__| /__/ \__\ |__| \__| |__|
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
Please migrate to the NordLynx container (https://github.com/bubuntux/nordlynx)
Here is your private Key: **********************************************
IP: 10.5.0.2/32
############################################################

Link to comment
  • 2 weeks later...

I didn't take the time to search about the migrating message and kind of forgot about it as it was working.

but since a couple of days, I noticed that almost every night, the container is working, VPN seems connected but apps that goes through just don't connect to the net.

after restarting nordvpn container, everything connects again.

in the logs, I see this :

Unstable connection detected!

Uptime: 18 hours 15 minutes 52 seconds

 

I'll check if I have something similar every day...

 

Link to comment

Hello all. I've got a few questions I'm stuck on.

  1. Is killswitch enabled by default? I think I read it is handled by iptables but I'm not clear.
  2. The container documentation says we need to use NET_ADMIN and NET_RAW. In unRAID, it auto added NET_ADMIN but not NET_RAW. Do we need to add NET_RAW?
  3. Some posts say NordLynx doesn't work, some say it does. Should we use NordLynx or OpenVPN?
  4. I was reading that NordVPN doesn't do well with torrenting (seeding) for some countries/types and that in proxy mode it will leak your IP. What are folks putting for Location/CONNECT? I read that only P2P works for torrenting but P2P doesn't hide IP. Just a tad bit confused on what I should use.
Link to comment
On 2/27/2022 at 6:08 PM, auth100488 said:

Hey guys, great work on the container. I got it to route my qbittorrent trraffic through NordVPN. However, I cannot access my web Qbittorrent console anymore. (since it doesn't have any network settings) Any idea how I could do that? Thanks a bunch!

You should expose WebUI qBittorrent port on NordVPN container

 

image.thumb.png.f07fd276c12b5e472dd595713693bd04.png

Link to comment
1 hour ago, Diego Montana said:

You should expose WebUI qBittorrent port on NordVPN container

 

image.thumb.png.f07fd276c12b5e472dd595713693bd04.png

Thanks a lot!! I"ve also checked the video link provided in the container and it also stated that. Sorry for the useless question! Cheers.

Link to comment

Nice! Thank`s a lot for that detailed howto!

It`s working for me nicely.

Only have problems to specify a certain country.

Can anyone give me a hin?

Just tried QUERY Variable with:

 

filters\[locations\]\[country\]=Austria

Link to comment

Hey guys.

 

I'm still getting wrong username/password.

Changed the password. No joy.

Disabled the MFA. No joy.

Manual setup password. No joy.

 

Have no idea what else I can do.

Anyone can give me a direction?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.