Page 1 of 1

[Solved] Issue with Gluetun connection via OpenVPN

Posted: Wed Nov 22, 2023 2:11 am
by monso0n

I am having issues with Gluetun connecting with OpenVPN via ProtonVPN. I have check connection and credentials they both are correct. My VPN connects to the internet but having Issues with Gluetun connection. Please help me out! Thank you!!
Here is my last 100 logs

Code: Select all

docker logs -n 100 gluetun

2023-11-22T01:41:55Z INFO [openvpn] SIGUSR1[soft,auth-failure] received, process restarting
2023-11-22T01:41:57Z ERROR [ip getter] Get "https://ipinfo.io/": dial tcp: lookup ipinfo.io on 127.0.0.1:53: server misbehaving
2023-11-22T01:41:57Z INFO [ip getter] retrying in 5s
2023-11-22T01:42:02Z ERROR [ip getter] Get "https://ipinfo.io/": dial tcp: lookup ipinfo.io on 127.0.0.1:53: server misbehaving
2023-11-22T01:42:02Z INFO [ip getter] retrying in 5s
2023-11-22T01:42:05Z INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]185.159.157.160:1194
2023-11-22T01:42:05Z INFO [openvpn] UDP link local: (not bound)
2023-11-22T01:42:05Z INFO [openvpn] UDP link remote: [AF_INET]185.159.157.160:1194
2023-11-22T01:42:06Z WARN [openvpn] 'link-mtu' is used inconsistently, local='link-mtu 1581', remote='link-mtu 1634'
2023-11-22T01:42:06Z WARN [openvpn] 'tun-mtu' is used inconsistently, local='tun-mtu 1532', remote='tun-mtu 1500'
2023-11-22T01:42:06Z WARN [openvpn] 'auth' is used inconsistently, local='auth [null-digest]', remote='auth SHA512'
2023-11-22T01:42:06Z WARN [openvpn] 'comp-lzo' is present in remote config but missing in local config, remote='comp-lzo'
2023-11-22T01:42:06Z INFO [openvpn] [node-us-107.protonvpn.net] Peer Connection Initiated with [AF_INET]185.159.157.160:1194
2023-11-22T01:42:07Z ERROR [ip getter] Get "https://ipinfo.io/": dial tcp: lookup ipinfo.io on 127.0.0.1:53: server misbehaving
2023-11-22T01:42:07Z INFO [ip getter] retrying in 5s
2023-11-22T01:42:12Z ERROR [ip getter] Get "https://ipinfo.io/": dial tcp: lookup ipinfo.io on 127.0.0.1:53: server misbehaving
2023-11-22T01:42:12Z INFO [ip getter] retrying in 5s
2023-11-22T01:42:13Z ERROR [openvpn] AUTH: Received control message: AUTH_FAILED

Your credentials might be wrong ๐Ÿคจ


2023-11-22T01:42:13Z INFO [openvpn] SIGUSR1[soft,auth-failure] received, process restarting
2023-11-22T01:42:17Z ERROR [ip getter] Get "https://ipinfo.io/": dial tcp: lookup ipinfo.io on 127.0.0.1:53: server misbehaving
2023-11-22T01:42:17Z INFO [ip getter] retrying in 5s
2023-11-22T01:42:22Z ERROR [ip getter] Get "https://ipinfo.io/": dial tcp: lookup ipinfo.io on 127.0.0.1:53: server misbehaving
2023-11-22T01:42:22Z INFO [ip getter] retrying in 5s
2023-11-22T01:42:23Z INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]185.159.157.160:1194
2023-11-22T01:42:23Z INFO [openvpn] UDP link local: (not bound)
2023-11-22T01:42:23Z INFO [openvpn] UDP link remote: [AF_INET]185.159.157.160:1194
2023-11-22T01:42:24Z WARN [openvpn] 'link-mtu' is used inconsistently, local='link-mtu 1581', remote='link-mtu 1634'
2023-11-22T01:42:24Z WARN [openvpn] 'tun-mtu' is used inconsistently, local='tun-mtu 1532', remote='tun-mtu 1500'
2023-11-22T01:42:24Z WARN [openvpn] 'auth' is used inconsistently, local='auth [null-digest]', remote='auth SHA512'
2023-11-22T01:42:24Z WARN [openvpn] 'comp-lzo' is present in remote config but missing in local config, remote='comp-lzo'
2023-11-22T01:42:24Z INFO [openvpn] [node-us-107.protonvpn.net] Peer Connection Initiated with [AF_INET]185.159.157.160:1194
2023-11-22T01:42:27Z ERROR [ip getter] Get "https://ipinfo.io/": dial tcp: lookup ipinfo.io on 127.0.0.1:53: server misbehaving
2023-11-22T01:42:27Z INFO [ip getter] retrying in 5s
2023-11-22T01:42:30Z ERROR [openvpn] AUTH: Received control message: AUTH_FAILED

Your credentials might be wrong ๐Ÿคจ


2023-11-22T01:42:30Z INFO [openvpn] SIGUSR1[soft,auth-failure] received, process restarting
2023-11-22T01:42:32Z ERROR [ip getter] Get "https://ipinfo.io/": dial tcp: lookup ipinfo.io on 127.0.0.1:53: server misbehaving
2023-11-22T01:42:32Z INFO [ip getter] retrying in 5s
2023-11-22T01:42:37Z ERROR [ip getter] Get "https://ipinfo.io/": dial tcp: lookup ipinfo.io on 127.0.0.1:53: server misbehaving
2023-11-22T01:42:37Z INFO [ip getter] retrying in 5s
2023-11-22T01:42:40Z INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]185.159.157.160:1194
2023-11-22T01:42:40Z INFO [openvpn] UDP link local: (not bound)
2023-11-22T01:42:40Z INFO [openvpn] UDP link remote: [AF_INET]185.159.157.160:1194
2023-11-22T01:42:41Z WARN [openvpn] 'link-mtu' is used inconsistently, local='link-mtu 1581', remote='link-mtu 1634'
2023-11-22T01:42:41Z WARN [openvpn] 'tun-mtu' is used inconsistently, local='tun-mtu 1532', remote='tun-mtu 1500'
2023-11-22T01:42:41Z WARN [openvpn] 'auth' is used inconsistently, local='auth [null-digest]', remote='auth SHA512'
2023-11-22T01:42:41Z WARN [openvpn] 'comp-lzo' is present in remote config but missing in local config, remote='comp-lzo'
2023-11-22T01:42:41Z INFO [openvpn] [node-us-107.protonvpn.net] Peer Connection Initiated with [AF_INET]185.159.157.160:1194
2023-11-22T01:42:42Z ERROR [ip getter] Get "https://ipinfo.io/": dial tcp: lookup ipinfo.io on 127.0.0.1:53: server misbehaving
2023-11-22T01:42:42Z INFO [ip getter] retrying in 5s
2023-11-22T01:42:47Z ERROR [openvpn] AUTH: Received control message: AUTH_FAILED

Your credentials might be wrong ๐Ÿคจ


2023-11-22T01:42:47Z INFO [openvpn] SIGUSR1[soft,auth-failure] received, process restarting
2023-11-22T01:42:47Z ERROR [ip getter] Get "https://ipinfo.io/": dial tcp: lookup ipinfo.io on 127.0.0.1:53: server misbehaving
2023-11-22T01:42:47Z INFO [ip getter] retrying in 5s
2023-11-22T01:42:52Z ERROR [ip getter] Get "https://ipinfo.io/": dial tcp: lookup ipinfo.io on 127.0.0.1:53: server misbehaving
2023-11-22T01:42:52Z INFO [ip getter] retrying in 5s
2023-11-22T01:42:57Z INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]185.159.157.160:1194
2023-11-22T01:42:57Z INFO [openvpn] UDP link local: (not bound)
2023-11-22T01:42:57Z INFO [openvpn] UDP link remote: [AF_INET]185.159.157.160:1194
2023-11-22T01:42:57Z ERROR [ip getter] Get "https://ipinfo.io/": dial tcp: lookup ipinfo.io on 127.0.0.1:53: server misbehaving
2023-11-22T01:42:57Z INFO [ip getter] retrying in 5s
2023-11-22T01:42:58Z WARN [openvpn] 'link-mtu' is used inconsistently, local='link-mtu 1581', remote='link-mtu 1634'
2023-11-22T01:42:58Z WARN [openvpn] 'tun-mtu' is used inconsistently, local='tun-mtu 1532', remote='tun-mtu 1500'
2023-11-22T01:42:58Z WARN [openvpn] 'auth' is used inconsistently, local='auth [null-digest]', remote='auth SHA512'
2023-11-22T01:42:58Z WARN [openvpn] 'comp-lzo' is present in remote config but missing in local config, remote='comp-lzo'
2023-11-22T01:42:58Z INFO [openvpn] [node-us-107.protonvpn.net] Peer Connection Initiated with [AF_INET]185.159.157.160:1194
2023-11-22T01:43:02Z ERROR [ip getter] Get "https://ipinfo.io/": dial tcp: lookup ipinfo.io on 127.0.0.1:53: server misbehaving
2023-11-22T01:43:02Z INFO [ip getter] retrying in 5s
2023-11-22T01:43:04Z ERROR [openvpn] AUTH: Received control message: AUTH_FAILED

Your credentials might be wrong ๐Ÿคจ


2023-11-22T01:43:04Z INFO [openvpn] SIGUSR1[soft,auth-failure] received, process restarting
2023-11-22T01:43:07Z ERROR [ip getter] Get "https://ipinfo.io/": dial tcp: lookup ipinfo.io on 127.0.0.1:53: server misbehaving
2023-11-22T01:43:07Z INFO [ip getter] retrying in 5s
2023-11-22T01:43:12Z ERROR [ip getter] Get "https://ipinfo.io/": dial tcp: lookup ipinfo.io on 127.0.0.1:53: server misbehaving
2023-11-22T01:43:12Z INFO [ip getter] retrying in 5s
2023-11-22T01:43:14Z INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]185.159.157.160:1194
2023-11-22T01:43:14Z INFO [openvpn] UDP link local: (not bound)
2023-11-22T01:43:14Z INFO [openvpn] UDP link remote: [AF_INET]185.159.157.160:1194
2023-11-22T01:43:15Z WARN [openvpn] 'link-mtu' is used inconsistently, local='link-mtu 1581', remote='link-mtu 1634'
2023-11-22T01:43:15Z WARN [openvpn] 'tun-mtu' is used inconsistently, local='tun-mtu 1532', remote='tun-mtu 1500'
2023-11-22T01:43:15Z WARN [openvpn] 'auth' is used inconsistently, local='auth [null-digest]', remote='auth SHA512'
2023-11-22T01:43:15Z WARN [openvpn] 'comp-lzo' is present in remote config but missing in local config, remote='comp-lzo'
2023-11-22T01:43:15Z INFO [openvpn] [node-us-107.protonvpn.net] Peer Connection Initiated with [AF_INET]185.159.157.160:1194
2023-11-22T01:43:17Z ERROR [ip getter] Get "https://ipinfo.io/": dial tcp: lookup ipinfo.io on 127.0.0.1:53: server misbehaving
2023-11-22T01:43:17Z INFO [ip getter] retrying in 5s

Re: Issue with Gluetun connection via OpenVPN

Posted: Wed Nov 22, 2023 4:03 am
by rogs

Hey @monso0n!

I think the error is pretty clear.

Your credentials might be wrong ๐Ÿคจ

Did you read the documentation for your VPN? The installer instructed you to do so.

https://github.com/qdm12/gluetun-wiki/b ... otonvpn.md


Re: Issue with Gluetun connection via OpenVPN

Posted: Thu Nov 23, 2023 3:48 pm
by monso0n

So i triple checked my OpenVPN credentials and it works and i also crossed checked it with manual OpenVPN login instructed per protonVPN site.

Docker composer
docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=protonvpn \ -e OPENVPN_USER=abc -e OPENVPN_PASSWORD=abc \ -e SERVER_COUNTRIES=Netherlands qmcgaw/gluetun

Logs

Code: Select all

2023-11-23T00:02:45Z INFO [routing] local ipnet found: 172.17.0.0/16
2023-11-23T00:02:45Z INFO [firewall] enabling...
2023-11-23T00:02:45Z INFO [firewall] enabled successfully
2023-11-23T00:02:46Z INFO [storage] creating /gluetun/servers.json with 17689 hardcoded servers
2023-11-23T00:02:46Z INFO Alpine version: 3.18.4
2023-11-23T00:02:46Z INFO OpenVPN 2.5 version: 2.5.8
2023-11-23T00:02:46Z INFO OpenVPN 2.6 version: 2.6.5
2023-11-23T00:02:46Z INFO Unbound version: 1.17.1
2023-11-23T00:02:46Z INFO IPtables version: v1.8.9
2023-11-23T00:02:46Z INFO Settings summary:
โ”œโ”€โ”€ VPN settings:
|   โ”œโ”€โ”€ VPN provider settings:
|   |   โ”œโ”€โ”€ Name: protonvpn
|   |   โ””โ”€โ”€ Server selection settings:
|   |       โ”œโ”€โ”€ VPN type: openvpn
|   |       โ”œโ”€โ”€ Countries: netherlands
|   |       โ””โ”€โ”€ OpenVPN server selection settings:
|   |           โ””โ”€โ”€ Protocol: UDP
|   โ””โ”€โ”€ OpenVPN settings:
|       โ”œโ”€โ”€ OpenVPN version: 2.5
|       โ”œโ”€โ”€ User: [set]
|       โ”œโ”€โ”€ Password: 2J...0Sw
|       โ”œโ”€โ”€ Network interface: tun0
|       โ”œโ”€โ”€ Run OpenVPN as: root
|       โ””โ”€โ”€ Verbosity level: 1
โ”œโ”€โ”€ DNS settings:
|   โ”œโ”€โ”€ Keep existing nameserver(s): no
|   โ”œโ”€โ”€ DNS server address to use: 127.0.0.1
|   โ””โ”€โ”€ DNS over TLS settings:
|       โ”œโ”€โ”€ Enabled: yes
|       โ”œโ”€โ”€ Update period: every 24h0m0s
|       โ”œโ”€โ”€ Unbound settings:
|       |   โ”œโ”€โ”€ Authoritative servers:
|       |   |   โ””โ”€โ”€ cloudflare
|       |   โ”œโ”€โ”€ Caching: yes
|       |   โ”œโ”€โ”€ IPv6: no
|       |   โ”œโ”€โ”€ Verbosity level: 1
|       |   โ”œโ”€โ”€ Verbosity details level: 0
|       |   โ”œโ”€โ”€ Validation log level: 0
|       |   โ”œโ”€โ”€ System user: root
|       |   โ””โ”€โ”€ Allowed networks:
|       |       โ”œโ”€โ”€ 0.0.0.0/0
|       |       โ””โ”€โ”€ ::/0
|       โ””โ”€โ”€ DNS filtering settings:
|           โ”œโ”€โ”€ Block malicious: yes
|           โ”œโ”€โ”€ Block ads: no
|           โ”œโ”€โ”€ Block surveillance: no
|           โ””โ”€โ”€ Blocked IP networks:
|               โ”œโ”€โ”€ 127.0.0.1/8
|               โ”œโ”€โ”€ 10.0.0.0/8
|               โ”œโ”€โ”€ 172.16.0.0/12
|               โ”œโ”€โ”€ 192.168.0.0/16
|               โ”œโ”€โ”€ 169.254.0.0/16
|               โ”œโ”€โ”€ ::1/128
|               โ”œโ”€โ”€ fc00::/7
|               โ”œโ”€โ”€ fe80::/10
|               โ”œโ”€โ”€ ::ffff:127.0.0.1/104
|               โ”œโ”€โ”€ ::ffff:10.0.0.0/104
|               โ”œโ”€โ”€ ::ffff:169.254.0.0/112
|               โ”œโ”€โ”€ ::ffff:172.16.0.0/108
|               โ””โ”€โ”€ ::ffff:192.168.0.0/112
โ”œโ”€โ”€ Firewall settings:
|   โ””โ”€โ”€ Enabled: yes
โ”œโ”€โ”€ Log settings:
|   โ””โ”€โ”€ Log level: INFO
โ”œโ”€โ”€ Health settings:
|   โ”œโ”€โ”€ Server listening address: 127.0.0.1:9999
|   โ”œโ”€โ”€ Target address: cloudflare.com:443
|   โ”œโ”€โ”€ Duration to wait after success: 5s
|   โ”œโ”€โ”€ Read header timeout: 100ms
|   โ”œโ”€โ”€ Read timeout: 500ms
|   โ””โ”€โ”€ VPN wait durations:
|       โ”œโ”€โ”€ Initial duration: 6s
|       โ””โ”€โ”€ Additional duration: 5s
โ”œโ”€โ”€ Shadowsocks server settings:
|   โ””โ”€โ”€ Enabled: no
โ”œโ”€โ”€ HTTP proxy settings:
|   โ””โ”€โ”€ Enabled: no
โ”œโ”€โ”€ Control server settings:
|   โ”œโ”€โ”€ Listening address: :8000
|   โ””โ”€โ”€ Logging: yes
โ”œโ”€โ”€ OS Alpine settings:
|   โ”œโ”€โ”€ Process UID: 1000
|   โ””โ”€โ”€ Process GID: 1000
โ”œโ”€โ”€ Public IP settings:
|   โ”œโ”€โ”€ Fetching: every 12h0m0s
|   โ””โ”€โ”€ IP file path: /tmp/gluetun/ip
โ””โ”€โ”€ Version settings:
    โ””โ”€โ”€ Enabled: yes
2023-11-23T00:02:46Z INFO [routing] default route found: interface eth0, gateway 172.17.0.1, assigned IP 172.17.0.2 and family v4
2023-11-23T00:02:46Z INFO [routing] adding route for 0.0.0.0/0
2023-11-23T00:02:46Z INFO [firewall] setting allowed subnets...
2023-11-23T00:02:46Z INFO [routing] default route found: interface eth0, gateway 172.17.0.1, assigned IP 172.17.0.2 and family v4
2023-11-23T00:02:46Z INFO TUN device is not available: open /dev/net/tun: no such file or directory; creating it...
2023-11-23T00:02:46Z INFO [dns] using plaintext DNS at address 1.1.1.1
2023-11-23T00:02:46Z INFO [http server] http server listening on [::]:8000
2023-11-23T00:02:46Z INFO [healthcheck] listening on 127.0.0.1:9999
2023-11-23T00:02:46Z INFO [firewall] allowing VPN connection...
2023-11-23T00:02:46Z 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-11-23T00:02:46Z INFO [openvpn] library versions: OpenSSL 3.1.4 24 Oct 2023, LZO 2.10
2023-11-23T00:02:46Z INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]185.159.158.105:1194
2023-11-23T00:02:46Z INFO [openvpn] UDP link local: (not bound)
2023-11-23T00:02:46Z INFO [openvpn] UDP link remote: [AF_INET]185.159.158.105:1194
2023-11-23T00:02:52Z INFO [healthcheck] program has been unhealthy for 6s: restarting VPN (see https://github.com/qdm12/gluetun-wiki/blob/main/faq/healthcheck.md)
2023-11-23T00:02:52Z INFO [vpn] stopping
2023-11-23T00:02:52Z INFO [vpn] starting
2023-11-23T00:02:52Z INFO [firewall] allowing VPN connection...
2023-11-23T00:02:52Z 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-11-23T00:02:52Z INFO [openvpn] library versions: OpenSSL 3.1.4 24 Oct 2023, LZO 2.10
2023-11-23T00:02:52Z INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]185.107.56.91:1194
2023-11-23T00:02:52Z INFO [openvpn] UDP link local: (not bound)
2023-11-23T00:02:52Z INFO [openvpn] UDP link remote: [AF_INET]185.107.56.91:1194
2023-11-23T00:02:52Z WARN [openvpn] 'link-mtu' is used inconsistently, local='link-mtu 1633', remote='link-mtu 1634'
2023-11-23T00:02:52Z WARN [openvpn] 'comp-lzo' is present in remote config but missing in local config, remote='comp-lzo'
2023-11-23T00:02:52Z INFO [openvpn] [node-nl-166.protonvpn.net] Peer Connection Initiated with [AF_INET]185.107.56.91:1194
2023-11-23T00:02:54Z INFO [openvpn] setsockopt TCP_NODELAY=1 failed
2023-11-23T00:02:54Z INFO [openvpn] TUN/TAP device tun0 opened
2023-11-23T00:02:54Z INFO [openvpn] /sbin/ip link set dev tun0 up mtu 1500
2023-11-23T00:02:54Z INFO [openvpn] /sbin/ip link set dev tun0 up
2023-11-23T00:02:54Z INFO [openvpn] /sbin/ip addr add dev tun0 10.17.0.7/16
2023-11-23T00:02:54Z INFO [openvpn] UID set to nonrootuser
2023-11-23T00:02:54Z INFO [openvpn] Initialization Sequence Completed
2023-11-23T00:02:54Z INFO [dns] downloading DNS over TLS cryptographic files
2023-11-23T00:02:54Z INFO [healthcheck] healthy!
2023-11-23T00:02:56Z INFO [dns] downloading hostnames and IP block lists
2023-11-23T00:03:02Z INFO [healthcheck] unhealthy: dialing: dial tcp4: lookup cloudflare.com: i/o timeout
2023-11-23T00:03:03Z INFO [dns] init module 0: validator
2023-11-23T00:03:03Z INFO [dns] init module 1: iterator
2023-11-23T00:03:03Z INFO [dns] start of service (unbound 1.17.1).
2023-11-23T00:03:03Z INFO [dns] generate keytag query _ta-4a5c-4f66. NULL IN
2023-11-23T00:03:03Z INFO [dns] generate keytag query _ta-4a5c-4f66. NULL IN
2023-11-23T00:03:04Z INFO [dns] ready
2023-11-23T00:03:04Z INFO [healthcheck] healthy!
2023-11-23T00:03:04Z INFO [vpn] You are running 3 commits behind the most recent latest
2023-11-23T00:03:05Z INFO [ip getter] Public IP address is 185.107.56.93 (Netherlands, North Holland, Amsterdam)```

Re: Issue with Gluetun connection via OpenVPN

Posted: Thu Nov 23, 2023 4:06 pm
by rogs

So is it working or not? The logs you sent appear to be working fine, and YAMS uses exactly the same container and configurations you sent. Sorry, but I don't seem to understand what problem you are having.


Re: Issue with Gluetun connection via OpenVPN

Posted: Thu Nov 23, 2023 4:52 pm
by monso0n

so its not working because when i check when bitorrent is not getting any connection but it shows healthy on portainer.But Gluetun is showing unhealthy andthat when i checked Gluetun logs and it gave me those credential error. When i check VPNs connection via YAMS check-vpn, It shows IP dress for VPN but no IP address for bittorrent.


Re: Issue with Gluetun connection via OpenVPN

Posted: Thu Nov 23, 2023 5:12 pm
by rogs

Are you sure your credentials are correct on the env file?

Check your .env file in your install location. The file is hidden by default (in Linux, all files that start with . are hidden). Verify that your VPN credentials are correct and escaped correctly if needed


Re: Issue with Gluetun connection via OpenVPN

Posted: Sun Dec 03, 2023 7:37 pm
by monso0n

So this issue has been resolve. Issue was with proton VPN and a tech from protonvpn had to fix my auth credential.
Thanks


Re: Issue with Gluetun connection via OpenVPN

Posted: Sun Dec 03, 2023 7:45 pm
by rogs

Excellent, good to know! I'll mark the issue as solved.