qdm12 / gluetun-wiki

Home to the Markdown Wiki page for Gluetun
MIT License
274 stars 31 forks source link

Auth_FAIL | NordVPN - OpenVPN #27

Closed shahram7 closed 6 months ago

shahram7 commented 7 months ago

sorry i noticed that i have created this issue in wrong repo. I will create another one there. ################################### Hi there, I've noticed that over the past few months, other people have experienced the same issue. It seems to be related to NordVPN, possibly due to changes in encrypted passwords. However in my case I jus copied and paste the username and password from my account and I am sure that they're valid.

I am using gluetun as a service my downloader compose like this:

gluetun:
    container_name: gluetun
    image: qmcgaw/gluetun:latest
    cap_add:
      - NET_ADMIN
    ports:
      - 6880:6880 #aria-ng
      - 6800:6800 #aria2pro
      - 6888:6888 #aria2pro
      - 6888:6888/udp #aria2pro
    environment:
      - VPN_SERVICE_PROVIDER=nordvpn
      - OPENVPN_USER=valid-username
      - OPENVPN_PASSWORD=valid-password
      - SERVER_COUNTRIES=Austria,Germany,Netherlands
      - TZ=Europe/Berlin
    restart: unless-stopped 

and here are my logs:

2023-12-01T19:47:35+01:00 INFO [openvpn] SIGUSR1[soft,auth-failure] received, process restarting
2023-12-01T19:47:45+01:00 INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]37.19.195.208:1194
2023-12-01T19:47:45+01:00 INFO [openvpn] UDP link local: (not bound)
2023-12-01T19:47:45+01:00 INFO [openvpn] UDP link remote: [AF_INET]37.19.195.208:1194
2023-12-01T19:48:02+01:00 INFO [healthcheck] program has been unhealthy for 31s: restarting VPN (see https://github.com/qdm12/gluetun-wiki/blob/main/faq/healthcheck.md)
2023-12-01T19:48:02+01:00 INFO [vpn] stopping
2023-12-01T19:48:02+01:00 INFO [vpn] starting
2023-12-01T19:48:02+01:00 INFO [firewall] allowing VPN connection...
2023-12-01T19:48:02+01: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
2023-12-01T19:48:02+01:00 INFO [openvpn] library versions: OpenSSL 3.1.4 24 Oct 2023, LZO 2.10
2023-12-01T19:48:02+01:00 INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]5.253.207.195:1194
2023-12-01T19:48:02+01:00 INFO [openvpn] UDP link local: (not bound)
2023-12-01T19:48:02+01:00 INFO [openvpn] UDP link remote: [AF_INET]5.253.207.195:1194
2023-12-01T19:48:05+01:00 INFO [openvpn] TLS Error: Unroutable control packet received from [AF_INET]5.253.207.195:1194 (si=3 op=P_ACK_V1)
2023-12-01T19:48:05+01:00 INFO [openvpn] [at108.nordvpn.com] Peer Connection Initiated with [AF_INET]5.253.207.195:1194
2023-12-01T19:48:06+01:00 ERROR [openvpn] AUTH: Received control message: AUTH_FAILED
Your credentials might be wrong 🤨
2023-12-01T19:48:06+01:00 INFO [openvpn] SIGUSR1[soft,auth-failure] received, process restarting
2023-12-01T19:48:16+01:00 INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]5.253.207.195:1194
2023-12-01T19:48:16+01:00 INFO [openvpn] UDP link local: (not bound)
2023-12-01T19:48:16+01:00 INFO [openvpn] UDP link remote: [AF_INET]5.253.207.195:1194
2023-12-01T19:48:39+01:00 INFO [healthcheck] program has been unhealthy for 36s: restarting VPN (see https://github.com/qdm12/gluetun-wiki/blob/main/faq/healthcheck.md)
2023-12-01T19:48:39+01:00 INFO [vpn] stopping
2023-12-01T19:48:39+01:00 INFO [vpn] starting
2023-12-01T19:48:39+01:00 INFO [firewall] allowing VPN connection...
2023-12-01T19:48:39+01: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
2023-12-01T19:48:39+01:00 INFO [openvpn] library versions: OpenSSL 3.1.4 24 Oct 2023, LZO 2.10
2023-12-01T19:48:39+01:00 INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]185.196.22.2:1194
2023-12-01T19:48:39+01:00 INFO [openvpn] UDP link local: (not bound)
2023-12-01T19:48:39+01:00 INFO [openvpn] UDP link remote: [AF_INET]185.196.22.2:1194
2023-12-01T19:48:39+01:00 INFO [openvpn] [de1028.nordvpn.com] Peer Connection Initiated with [AF_INET]185.196.22.2:1194
2023-12-01T19:48:45+01:00 ERROR [openvpn] AUTH: Received control message: AUTH_FAILED
Your credentials might be wrong 🤨
2023-12-01T19:48:45+01:00 INFO [openvpn] SIGUSR1[soft,auth-failure] received, process restarting
2023-12-01T19:48:55+01:00 INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]185.196.22.2:1194
2023-12-01T19:48:55+01:00 INFO [openvpn] UDP link local: (not bound)
2023-12-01T19:48:55+01:00 INFO [openvpn] UDP link remote: [AF_INET]185.196.22.2:1194
2023-12-01T19:49:01+01:00 INFO [openvpn] [de1028.nordvpn.com] Peer Connection Initiated with [AF_INET]185.196.22.2:1194
2023-12-01T19:49:02+01:00 ERROR [openvpn] AUTH: Received control message: AUTH_FAILED
Your credentials might be wrong 🤨
2023-12-01T19:49:02+01:00 INFO [openvpn] SIGUSR1[soft,auth-failure] received, process restarting
2023-12-01T19:49:12+01:00 INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]185.196.22.2:1194
2023-12-01T19:49:12+01:00 INFO [openvpn] UDP link local: (not bound)
2023-12-01T19:49:12+01:00 INFO [openvpn] UDP link remote: [AF_INET]185.196.22.2:1194
2023-12-01T19:49:20+01:00 INFO [healthcheck] program has been unhealthy for 41s: restarting VPN (see https://github.com/qdm12/gluetun-wiki/blob/main/faq/healthcheck.md)
2023-12-01T19:49:20+01:00 INFO [vpn] stopping
2023-12-01T19:49:20+01:00 INFO [vpn] starting
2023-12-01T19:49:20+01:00 INFO [firewall] allowing VPN connection...
2023-12-01T19:49:20+01: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
2023-12-01T19:49:20+01:00 INFO [openvpn] library versions: OpenSSL 3.1.4 24 Oct 2023, LZO 2.10
2023-12-01T19:49:20+01:00 INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]37.19.195.12:1194
2023-12-01T19:49:20+01:00 INFO [openvpn] UDP link local: (not bound)
2023-12-01T19:49:20+01:00 INFO [openvpn] UDP link remote: [AF_INET]37.19.195.12:1194
2023-12-01T19:49:26+01:00 INFO [openvpn] TLS Error: Unroutable control packet received from [AF_INET]37.19.195.12:1194 (si=3 op=P_ACK_V1)
2023-12-01T19:49:27+01:00 INFO [openvpn] [at124.nordvpn.com] Peer Connection Initiated with [AF_INET]37.19.195.12:1194
2023-12-01T19:49:28+01:00 INFO [openvpn] TUN/TAP device tun0 opened
2023-12-01T19:49:28+01:00 INFO [openvpn] /sbin/ip link set dev tun0 up mtu 1500
2023-12-01T19:49:28+01:00 INFO [openvpn] /sbin/ip link set dev tun0 up
2023-12-01T19:49:28+01:00 INFO [openvpn] /sbin/ip addr add dev tun0 10.8.3.5/24
2023-12-01T19:49:28+01:00 INFO [openvpn] UID set to nonrootuser
2023-12-01T19:49:28+01:00 INFO [openvpn] Initialization Sequence Completed
2023-12-01T19:49:28+01:00 INFO [healthcheck] healthy!
2023-12-01T19:49:28+01:00 INFO [ip getter] Public IP address is 212.103.60.120 (Austria, Vienna, Vienna)
2023-12-01T19:49:41+01:00 INFO [healthcheck] unhealthy: dialing: dial tcp4: lookup cloudflare.com: i/o timeout
2023-12-01T19:49:49+01:00 INFO [healthcheck] program has been unhealthy for 6s: restarting VPN (see https://github.com/qdm12/gluetun-wiki/blob/main/faq/healthcheck.md)
2023-12-01T19:49:49+01:00 INFO [vpn] stopping
2023-12-01T19:49:49+01:00 INFO [vpn] starting
2023-12-01T19:49:49+01:00 INFO [firewall] allowing VPN connection...
2023-12-01T19:49:49+01: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
2023-12-01T19:49:49+01:00 INFO [openvpn] library versions: OpenSSL 3.1.4 24 Oct 2023, LZO 2.10
2023-12-01T19:49:49+01:00 INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]5.180.62.48:1194
2023-12-01T19:49:49+01:00 INFO [openvpn] UDP link local: (not bound)
2023-12-01T19:49:49+01:00 INFO [openvpn] UDP link remote: [AF_INET]5.180.62.48:1194
2023-12-01T19:49:51+01:00 INFO [openvpn] [de964.nordvpn.com] Peer Connection Initiated with [AF_INET]5.180.62.48:1194
2023-12-01T19:49:52+01:00 ERROR [openvpn] AUTH: Received control message: AUTH_FAILED
Your credentials might be wrong 🤨
2023-12-01T19:49:52+01:00 INFO [openvpn] SIGUSR1[soft,auth-failure] received, process restarting
2023-12-01T19:50:00+01:00 INFO [healthcheck] program has been unhealthy for 11s: restarting VPN (see https://github.com/qdm12/gluetun-wiki/blob/main/faq/healthcheck.md)
2023-12-01T19:50:00+01:00 INFO [vpn] stopping
2023-12-01T19:50:00+01:00 INFO [vpn] starting
2023-12-01T19:50:00+01:00 INFO [firewall] allowing VPN connection...
2023-12-01T19:50:00+01: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
2023-12-01T19:50:00+01:00 INFO [openvpn] library versions: OpenSSL 3.1.4 24 Oct 2023, LZO 2.10
2023-12-01T19:50:00+01:00 INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]5.180.62.176:1194
2023-12-01T19:50:00+01:00 INFO [openvpn] UDP link local: (not bound)
2023-12-01T19:50:00+01:00 INFO [openvpn] UDP link remote: [AF_INET]5.180.62.176:1194

best regards and thank you for your great work. Shahram

qdm12 commented 6 months ago

NordVPN has by far a LOT of servers, and since Gluetun supports, is by far also the most unstable. Without changing your credentials it even managed to connect:

2023-12-01T19:49:28+01:00 INFO [openvpn] Initialization Sequence Completed
2023-12-01T19:49:28+01:00 INFO [healthcheck] healthy!
2023-12-01T19:49:28+01:00 INFO [ip getter] Public IP address is 212.103.60.120 (Austria, Vienna, Vienna)

So it's unlikely a problem with your config or Gluetun, and most likely a problem on their end, again. Note you can try Wireguard which is natively supported by Gluetun for Nordvpn, that might solve your issue, at least as a workaround.

Finally, opening an issue like this one on the Gluetun repository was actually better, this gluetun-wiki repository is for documentation, but I appreciate the dedication to open the issue at the right place 👍 !