Skip to content

Commit 23642c9

Browse files
authored
Add DEBUG option and update NordVPN to 3.17.0 (#13)
* Add DEBUG; Bump to NordVPN 3.17.0 * Add quotes to avoid string errors
1 parent 1298ab9 commit 23642c9

File tree

7 files changed

+17
-4
lines changed

7 files changed

+17
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM ghcr.io/linuxserver/baseimage-ubuntu:focal
22
LABEL maintainer="Matts Bos - MattsTechInfo"
33

44
# Configure the NordVPN client version to install at build
5-
ARG NORDVPN_CLIENT_VERSION=3.16.5
5+
ARG NORDVPN_CLIENT_VERSION=3.17.0
66

77
# Avoid interactions during build process
88
ARG DEBIAN_FRONTEND=noninteractive

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ A `.env` file is supplied with the `docker-compose.yml` file for configuration p
3838
#### General config
3939
- `NORDVPN_TOKEN` - Supply your `Access token` to be able to login. If you want to use a file or secret instead, please leave this ENV blank or comment it out.
4040
- `NORDVPN_TOKENFILE` - Load the `Access token` from a file mounted in the container. Make sure nothing else but the token is inside. Please leave this blank if you are using `NORDVPN_TOKEN` or comment it out.
41+
- `NORDVPN_MESHNET_DEBUG` - Enable debug mode, anything non-empty will ENABLE. Use this if you need more verbose error logging for troubleshooting.
4142
- `NORDVPN_HEALTHCHECK_INTERVAL` - Set the interval to verify connectivity to the set URL, defaults to 300 (seconds).
4243
- `NORDVPN_HEALTHCHECK_URL` - An address to verify if connectivity is available. Choose something depending on what connectivity you want to verify, defaults to www.google.com. Please keep in mind, if the healthcheck fails the container will be killed.
4344

@@ -76,5 +77,8 @@ Make sure you have the `meshnet-env.yaml` file configured and run `kubectl apply
7677
## ARM64
7778
Next to the default AMD64 platform this container is also built for ARM64. This will allow for easy deployment on Ampere based K8s nodes or VM's in, for example, the Free-Tier Oracle Cloud Infrastructure. At this moment, specific OKE images seem to miss some iptables modules, running `sudo modprobe iptable_filter` on your worker nodes will fix this.
7879

80+
## Synology
81+
A few users have had some problems with certain Synology devices as these do not come with the correct iptables modules, a manual will be added to the documentation when I have time to do this. For now, please join the Discord as the solution is posted to the support channel there.
82+
7983
## Credits
8084
Starting this image has been based on the excellent work of https://github.com/bubuntux/nordvpn with their NordVPN client implementation in Docker.

docker-compose/.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
NORDVPN_TOKEN=abcdefgh12345678
66
# Load token from file (path to mount location), comment to use token ENV.
77
NORDVPN_TOKENFILE=/path/to/tokenfile
8+
# Enable debug mode, anything non-empty will ENABLE. Use this if you need more verbose error logging.
9+
NORDVPN_MESHNET_DEBUG=
810
# Healthcheck interval in seconds, default is 300.
911
NORDVPN_HEALTHCHECK_INTERVAL=300
1012
# Healthcheck URL to verify if connectivity is up. Replace this with something on your Meshnet (if available), defaults to Google.

docker-compose/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: "3"
22
services:
33
meshnet:
4-
image: ghcr.io/mattstechinfo/meshnet:v3.16.5
4+
image: ghcr.io/mattstechinfo/meshnet:v3.17.0
55
restart: unless-stopped
66
cap_add:
77
- NET_ADMIN

fs/etc/services.d/nordvpn/run

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@ if [[ ! -d /run/nordvpn ]]; then
44
mkdir -m 0770 /run/nordvpn
55
fi
66

7-
exec s6-notifyoncheck -n 60 -d /usr/sbin/nordvpnd > /dev/null
7+
if [[ -n ${NORDVPN_MESHNET_DEBUG} ]]; then
8+
exec 2>&1
9+
exec s6-notifyoncheck -n 60 -d /usr/sbin/nordvpnd
10+
else
11+
exec s6-notifyoncheck -n 60 -d /usr/sbin/nordvpnd > /dev/null
12+
fi

kubernetes/meshnet-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
hostname: meshnet
1818
containers:
1919
- name: meshnet
20-
image: ghcr.io/mattstechinfo/meshnet:v3.16.5
20+
image: ghcr.io/mattstechinfo/meshnet:v3.17.0
2121
securityContext:
2222
capabilities:
2323
add: ["NET_ADMIN","NET_RAW"]

kubernetes/meshnet-env.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ data:
1111
NORDVPN_TOKEN: abcdefgh12345678
1212
# Load token from file (path to mount location), comment to use token ENV.
1313
NORDVPN_TOKENFILE: /path/to/tokenfile
14+
# Enable debug mode, anything non-empty will ENABLE. Use this if you need more verbose error logging.
15+
NORDVPN_MESHNET_DEBUG: ""
1416
# Healthcheck interval in seconds, default is 300.
1517
NORDVPN_HEALTHCHECK_INTERVAL: 300
1618
# Healthcheck URL to verify if connectivity is up. Replace this with something on your Meshnet (if available), defaults to Google.

0 commit comments

Comments
 (0)