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.