Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wiki issue: Update NordVPN to include support for SERVER_GROUPS #1541

Closed
vdrover opened this issue Apr 23, 2023 · 8 comments
Closed

Wiki issue: Update NordVPN to include support for SERVER_GROUPS #1541

vdrover opened this issue Apr 23, 2023 · 8 comments

Comments

@vdrover
Copy link

vdrover commented Apr 23, 2023

URL to the Wiki page

https://github.com/qdm12/gluetun/wiki/NordVPN

What's the issue?

Server groups are also supported. eg, you can use SERVER_GROUPS in docker compose instead of SERVER_REGIONS.

The current groups from NordVPN can be found in the CLI. For example:

$ sudo nordvpn groups
 > Africa_The_Middle_East_And_India
 > Double_VPN
 > Onion_Over_VPN
 > Standard_VPN_Servers
 > Asia_Pacific
 > Europe
 > P2P
 > The_Americas
@qdm12
Copy link
Owner

qdm12 commented May 25, 2023

This data should be added through #1380 first

@qdm12
Copy link
Owner

qdm12 commented May 25, 2023

Although what's the use case? 🤔

The region group will now be taken into account (The_Americas, etc.) and you will be able to use the SERVER_REGIONS filter.

But the other ones, do they have any use? That would add a considerable amount of data to the servers data because each server has 3-5 groups, and given the high number of nordvpn servers (they make half of the servers data in gluetun!), that would add a few MBs to the Docker image which I would ideally avoid.

@vdrover
Copy link
Author

vdrover commented May 25, 2023

I’m not asking to change the docker image. I’m saying that the current image already does support SERVER_GROUPS. Updating the wiki would save folks fumbling around like I did to see if it works :)

@qdm12
Copy link
Owner

qdm12 commented May 25, 2023

it doesn't work, since the data has no server group for nordvpn servers (check out https://github.com/qdm12/gluetun/blob/master/internal/storage/servers.json)

@vdrover
Copy link
Author

vdrover commented May 25, 2023

I'm not sure what to tell you, but this docker-compose connects to the VPN just fine:

  gluetun:
    image: qmcgaw/gluetun
    container_name: gluetun
    hostname: gluetun
    restart: always
    networks:
      npm_proxy:
        ipv4_address: REDACTED
    cap_add:
      - NET_ADMIN
    ports:
      - "9091:9091" # Transmission
      - "51413:51413" # Transmission
      - "51413:51413/udp" # Transmission
      - "34400:34400" # xTeVe
      - "8008:80" # Spedtest Tracker
      - "8443:443"  # Spedtest Tracker
    devices:
      - /dev/net/tun
    volumes:
      - $DOCKERDIR/appdata/gluetun:/gluetun
    environment:
      - TZ=$TZ
      - VPN_SERVICE_PROVIDER=nordvpn
      - OPENVPN_USER=$OPENVPN_USERNAME
      - OPENVPN_PASSWORD=$OPENVPN_PASSWORD
      - SERVER_GROUPS=Double_VPN

From the Gluetun logs:


05/25/2023 8:17:47 AM
├── Firewall settings:
05/25/2023 8:17:47 AM
|   └── Enabled: yes
05/25/2023 8:17:47 AM
├── Log settings:
05/25/2023 8:17:47 AM
|   └── Log level: INFO
05/25/2023 8:17:47 AM
├── Health settings:
05/25/2023 8:17:47 AM
|   ├── Server listening address: REDACTED
05/25/2023 8:17:47 AM
|   ├── Target address: cloudflare.com:443
05/25/2023 8:17:47 AM
|   ├── Duration to wait after success: 5s
05/25/2023 8:17:47 AM
|   ├── Read header timeout: 100ms
05/25/2023 8:17:47 AM
|   ├── Read timeout: 500ms
05/25/2023 8:17:47 AM
|   └── VPN wait durations:
05/25/2023 8:17:47 AM
|       ├── Initial duration: 6s
05/25/2023 8:17:47 AM
|       └── Additional duration: 5s
05/25/2023 8:17:47 AM
├── Shadowsocks server settings:
05/25/2023 8:17:47 AM
|   └── Enabled: no
05/25/2023 8:17:47 AM
├── HTTP proxy settings:
05/25/2023 8:17:47 AM
|   └── Enabled: no
05/25/2023 8:17:47 AM
├── Control server settings:
05/25/2023 8:17:47 AM
|   ├── Listening address: :REDACTED
05/25/2023 8:17:47 AM
|   └── Logging: yes
05/25/2023 8:17:47 AM
├── OS Alpine settings:
05/25/2023 8:17:47 AM
|   ├── Process UID: REDACTED
05/25/2023 8:17:47 AM
|   ├── Process GID: REDACTED
05/25/2023 8:17:47 AM
|   └── Timezone: America/Chicago
05/25/2023 8:17:47 AM
├── Public IP settings:
05/25/2023 8:17:47 AM
|   ├── Fetching: every 12h0m0s
05/25/2023 8:17:47 AM
|   └── IP file path: /tmp/gluetun/ip
05/25/2023 8:17:47 AM
└── Version settings:
05/25/2023 8:17:47 AM
    └── Enabled: yes
05/25/2023 8:17:47 AM
2023-05-25T08:17:47-05:00 INFO [routing] default route found: interface eth0, gateway REDACTED, assigned IP REDACTED and family v4
05/25/2023 8:17:47 AM
2023-05-25T08:17:47-05:00 INFO [routing] adding route for 0.0.0.0/0
05/25/2023 8:17:47 AM
2023-05-25T08:17:47-05:00 INFO [firewall] setting allowed subnets...
05/25/2023 8:17:47 AM
2023-05-25T08:17:47-05:00 INFO [routing] default route found: interface eth0, gateway REDACTED, assigned IP REDACTED and family v4
05/25/2023 8:17:47 AM
2023-05-25T08:17:47-05:00 INFO [dns over tls] using plaintext DNS at address 1.1.1.1
05/25/2023 8:17:47 AM
2023-05-25T08:17:47-05:00 INFO [http server] http server listening on [::]:8000
05/25/2023 8:17:47 AM
2023-05-25T08:17:47-05:00 INFO [healthcheck] listening on REDACTED
05/25/2023 8:17:47 AM
2023-05-25T08:17:47-05:00 INFO [firewall] allowing VPN connection...
05/25/2023 8:17:47 AM
2023-05-25T08:17:47-05:00 INFO [openvpn] OpenVPN 2.5.8 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Nov  2 2022
05/25/2023 8:17:47 AM
2023-05-25T08:17:47-05:00 INFO [openvpn] library versions: OpenSSL 3.1.0 14 Mar 2023, LZO 2.10
05/25/2023 8:17:47 AM
2023-05-25T08:17:47-05:00 INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]REDACTED
05/25/2023 8:17:47 AM
2023-05-25T08:17:47-05:00 INFO [openvpn] UDP link local: (not bound)
05/25/2023 8:17:47 AM
2023-05-25T08:17:47-05:00 INFO [openvpn] UDP link remote: [AF_INET]REDACTED
05/25/2023 8:17:53 AM
2023-05-25T08:17:53-05:00 INFO [healthcheck] program has been unhealthy for 6s: restarting VPN (see https://github.com/qdm12/gluetun/wiki/Healthcheck)
05/25/2023 8:17:53 AM
2023-05-25T08:17:53-05:00 INFO [vpn] stopping
05/25/2023 8:17:53 AM
2023-05-25T08:17:53-05:00 INFO [vpn] starting
05/25/2023 8:17:53 AM
2023-05-25T08:17:53-05:00 INFO [firewall] allowing VPN connection...
05/25/2023 8:17:53 AM
2023-05-25T08:17:53-05:00 INFO [openvpn] OpenVPN 2.5.8 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Nov  2 2022
05/25/2023 8:17:53 AM
2023-05-25T08:17:53-05:00 INFO [openvpn] library versions: OpenSSL 3.1.0 14 Mar 2023, LZO 2.10
05/25/2023 8:17:53 AM
2023-05-25T08:17:53-05:00 INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]195.216.219.131:1194
05/25/2023 8:17:53 AM
2023-05-25T08:17:53-05:00 INFO [openvpn] UDP link local: (not bound)
05/25/2023 8:17:53 AM
2023-05-25T08:17:53-05:00 INFO [openvpn] UDP link remote: [AF_INET] REDACTED
05/25/2023 8:17:54 AM
2023-05-25T08:17:54-05:00 INFO [openvpn] [ch321.nordvpn.com] Peer Connection Initiated with [AF_INET]195.216.219.131:1194
05/25/2023 8:17:54 AM
2023-05-25T08:17:54-05:00 INFO [openvpn] TUN/TAP device tun0 opened
05/25/2023 8:17:54 AM
2023-05-25T08:17:54-05:00 INFO [openvpn] /sbin/ip link set dev tun0 up mtu 1500
05/25/2023 8:17:54 AM
2023-05-25T08:17:54-05:00 INFO [openvpn] /sbin/ip link set dev tun0 up
05/25/2023 8:17:54 AM
2023-05-25T08:17:54-05:00 INFO [openvpn] /sbin/ip addr add dev tun0 REDACTED
05/25/2023 8:17:54 AM
2023-05-25T08:17:54-05:00 INFO [openvpn] UID set to nonrootuser
05/25/2023 8:17:54 AM
2023-05-25T08:17:54-05:00 INFO [openvpn] Initialization Sequence Completed
05/25/2023 8:17:54 AM
2023-05-25T08:17:54-05:00 INFO [dns over tls] downloading DNS over TLS cryptographic files
05/25/2023 8:17:55 AM
2023-05-25T08:17:55-05:00 INFO [healthcheck] healthy!
05/25/2023 8:17:57 AM
2023-05-25T08:17:57-05:00 INFO [dns over tls] downloading hostnames and IP block lists
05/25/2023 8:18:02 AM
2023-05-25T08:18:02-05:00 INFO [dns over tls] init module 0: validator
05/25/2023 8:18:02 AM
2023-05-25T08:18:02-05:00 INFO [dns over tls] init module 1: iterator
05/25/2023 8:18:02 AM
2023-05-25T08:18:02-05:00 INFO [dns over tls] start of service (unbound 1.17.1).
05/25/2023 8:18:03 AM
2023-05-25T08:18:03-05:00 INFO [dns over tls] generate keytag query _ta-4a5c-4f66. NULL IN
05/25/2023 8:18:03 AM
2023-05-25T08:18:03-05:00 INFO [healthcheck] unhealthy: dialing: dial tcp4: lookup cloudflare.com: i/o timeout
05/25/2023 8:18:04 AM
2023-05-25T08:18:04-05:00 INFO [dns over tls] ready
05/25/2023 8:18:04 AM
2023-05-25T08:18:04-05:00 INFO [healthcheck] healthy!
05/25/2023 8:18:06 AM
2023-05-25T08:18:06-05:00 INFO [vpn] You are running 2 commits behind the most recent latest
05/25/2023 8:18:06 AM
2023-05-25T08:18:06-05:00 INFO [ip getter] Public IP address is REDACTED (Switzerland, Zurich, Zürich)

@qdm12
Copy link
Owner

qdm12 commented May 27, 2023

SERVER_GROUPS is not even a defined environment variable, so it's simply ignored. Gluetun randomly picks any VPN server from all the servers available.

@vdrover
Copy link
Author

vdrover commented May 27, 2023

Understood.

Then to answer your use-case question, I was hoping to use random double_vpn servers.

@qdm12
Copy link
Owner

qdm12 commented Jun 1, 2023

Ok cool, I created #1643 (which includes your request), please subscribe to that one instead 👍 Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants