gluetun: Bug: PUREVPN - Docker container can't connect after new deploy

Is this urgent?

Yes

Host OS

Proxmox - LXC (Debian Turney Core)

CPU arch

x86_64

VPN service provider

PureVPN

What are you using to run the container

Portainer

What is the version of Gluetun

Running version latest built on 2022-05-28T21:10:50.731Z (commit eb18eaf)

What’s the problem πŸ€”

A few days before I deployed a container with gluetun with PureVPN as vpn provider. I was using that container to run another containers with the VPN. Yesterday I make another port fowarding and when I deployed the container again he become unhealthy, and start appearing the folowing errors:

2022-05-29T10:30:34Z INFO [openvpn] UDP link local: (not bound), 2022-05-29T10:30:34Z INFO [openvpn] UDP link remote: [AF_INET]5.154.174.3:53

I tried to start again and change regions and nothing seems to work.

Share your logs

========================================
========================================
=============== gluetun ================
========================================
=========== Made with ❀️ by ============
======= https://github.com/qdm12 =======
========================================
========================================

Running version latest built on 2022-05-28T21:10:50.731Z (commit eb18eaf)

πŸ”§ Need help? https://github.com/qdm12/gluetun/discussions/new
πŸ› Bug? https://github.com/qdm12/gluetun/issues/new
✨ New feature? https://github.com/qdm12/gluetun/issues/new
β˜• Discussion? https://github.com/qdm12/gluetun/discussions/new
πŸ’» Email? quentin.mcgaw@gmail.com
πŸ’° Help me? https://www.paypal.me/qmcgaw https://github.com/sponsors/qdm12
2022-05-29T10:13:55Z INFO [routing] default route found: interface eth0, gateway 172.17.0.1 and assigned IP 172.17.0.4
2022-05-29T10:13:55Z INFO [routing] local ethernet link found: eth0
2022-05-29T10:13:55Z INFO [routing] local ipnet found: 172.17.0.0/16
2022-05-29T10:13:55Z INFO [firewall] enabling...
2022-05-29T10:13:55Z DEBUG [firewall] iptables --policy INPUT DROP
2022-05-29T10:13:55Z DEBUG [firewall] iptables --policy OUTPUT DROP
2022-05-29T10:13:55Z DEBUG [firewall] iptables --policy FORWARD DROP
2022-05-29T10:13:55Z DEBUG [firewall] ip6tables --policy INPUT DROP
2022-05-29T10:13:55Z DEBUG [firewall] ip6tables --policy OUTPUT DROP
2022-05-29T10:13:55Z DEBUG [firewall] ip6tables --policy FORWARD DROP
2022-05-29T10:13:55Z DEBUG [firewall] iptables --append INPUT -i lo -j ACCEPT
2022-05-29T10:13:55Z DEBUG [firewall] ip6tables --append INPUT -i lo -j ACCEPT
2022-05-29T10:13:55Z DEBUG [firewall] iptables --append OUTPUT -o lo -j ACCEPT
2022-05-29T10:13:55Z DEBUG [firewall] ip6tables --append OUTPUT -o lo -j ACCEPT
2022-05-29T10:13:55Z DEBUG [firewall] iptables --append OUTPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
2022-05-29T10:13:55Z DEBUG [firewall] ip6tables --append OUTPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
2022-05-29T10:13:55Z DEBUG [firewall] iptables --append INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
2022-05-29T10:13:55Z DEBUG [firewall] ip6tables --append INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
2022-05-29T10:13:55Z DEBUG [firewall] iptables --append OUTPUT -o eth0 -s 172.17.0.4 -d 172.17.0.0/16 -j ACCEPT
2022-05-29T10:13:55Z DEBUG [firewall] iptables --append INPUT -i eth0 -d 172.17.0.0/16 -j ACCEPT
2022-05-29T10:13:55Z INFO [firewall] enabled successfully
2022-05-29T10:13:56Z INFO [storage] merging by most recent 11416 hardcoded servers and 11416 servers read from /gluetun/servers.json
2022-05-29T10:13:56Z INFO [storage] Using purevpn servers from file which are 1468h34m28s more recent
2022-05-29T10:13:56Z INFO Alpine version: 3.15.4
2022-05-29T10:13:56Z INFO OpenVPN 2.4 version: 2.4.12
2022-05-29T10:13:56Z INFO OpenVPN 2.5 version: 2.5.6
2022-05-29T10:13:56Z INFO Unbound version: 1.13.2
2022-05-29T10:13:56Z INFO IPtables version: v1.8.7
2022-05-29T10:13:56Z INFO Settings summary:
β”œβ”€β”€ VPN settings:
|   β”œβ”€β”€ VPN provider settings:
|   |   β”œβ”€β”€ Name: purevpn
|   |   └── Server selection settings:
|   |       β”œβ”€β”€ VPN type: openvpn
|   |       β”œβ”€β”€ Countries: portugal
|   |       └── OpenVPN server selection settings:
|   |           └── Protocol: UDP
|   └── OpenVPN settings:
|       β”œβ”€β”€ OpenVPN version: 2.4
|       β”œβ”€β”€ User: [set]
|       β”œβ”€β”€ Password: [set]
|       β”œβ”€β”€ Tunnel IPv6: no
|       β”œβ”€β”€ Network interface: tun0
|       β”œβ”€β”€ Run OpenVPN as: root
|       └── Verbosity level: 1
β”œβ”€β”€ DNS settings:
|   β”œβ”€β”€ DNS server address to use: 127.0.0.1
|   β”œβ”€β”€ Keep existing nameserver(s): no
|   └── 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:7f00:1/104
|               β”œβ”€β”€ ::ffff:a00:0/104
|               β”œβ”€β”€ ::ffff:a9fe:0/112
|               β”œβ”€β”€ ::ffff:ac10:0/108
|               └── ::ffff:c0a8:0/112
β”œβ”€β”€ Firewall settings:
|   β”œβ”€β”€ Enabled: yes
|   └── Debug mode: on
β”œβ”€β”€ Log settings:
|   └── Log level: INFO
β”œβ”€β”€ Health settings:
|   β”œβ”€β”€ Server listening address: 127.0.0.1:9999
|   β”œβ”€β”€ Target address: cloudflare.com:443
|   └── 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
β”œβ”€β”€ Server data updater settings:
|   β”œβ”€β”€ Update period: 24h0m0s
|   β”œβ”€β”€ DNS address: 1.1.1.1
|   └── Providers to update: purevpn
└── Version settings:
    └── Enabled: yes
2022-05-29T10:13:56Z INFO [routing] default route found: interface eth0, gateway 172.17.0.1 and assigned IP 172.17.0.4
2022-05-29T10:13:56Z DEBUG [routing] ip rule add from 172.17.0.4/32 lookup 200 pref 100
2022-05-29T10:13:56Z INFO [routing] adding route for 0.0.0.0/0
2022-05-29T10:13:56Z DEBUG [routing] ip route replace 0.0.0.0/0 via 172.17.0.1 dev eth0 table 200
2022-05-29T10:13:56Z INFO [firewall] setting allowed subnets...
2022-05-29T10:13:56Z INFO [routing] default route found: interface eth0, gateway 172.17.0.1 and assigned IP 172.17.0.4
2022-05-29T10:13:56Z INFO [pprof] http server listening on [::]:6060
2022-05-29T10:13:56Z INFO [dns over tls] using plaintext DNS at address 1.1.1.1
2022-05-29T10:13:56Z INFO [http server] http server listening on [::]:8000
2022-05-29T10:13:56Z INFO [healthcheck] listening on 127.0.0.1:9999
2022-05-29T10:13:56Z INFO [firewall] allowing VPN connection...
2022-05-29T10:13:56Z DEBUG [firewall] iptables --append OUTPUT -d 91.205.230.37 -o eth0 -p udp -m udp --dport 53 -j ACCEPT
2022-05-29T10:13:56Z DEBUG [firewall] iptables --append OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:13:56Z DEBUG [firewall] ip6tables --append OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:13:56Z INFO [openvpn] OpenVPN 2.4.12 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Mar 24 2022
2022-05-29T10:13:56Z INFO [openvpn] library versions: OpenSSL 1.1.1o  3 May 2022, LZO 2.10
2022-05-29T10:13:56Z INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]91.205.230.37:53
2022-05-29T10:13:56Z INFO [openvpn] UDP link local: (not bound)
2022-05-29T10:13:56Z INFO [openvpn] UDP link remote: [AF_INET]91.205.230.37:53
2022-05-29T10:14:02Z INFO [healthcheck] program has been unhealthy for 6s: restarting VPN
2022-05-29T10:14:02Z INFO [vpn] stopping
2022-05-29T10:14:02Z INFO [vpn] starting
2022-05-29T10:14:02Z INFO [firewall] allowing VPN connection...
2022-05-29T10:14:02Z DEBUG [firewall] iptables --delete OUTPUT -d 91.205.230.37 -o eth0 -p udp -m udp --dport 53 -j ACCEPT
2022-05-29T10:14:02Z DEBUG [firewall] iptables --delete OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:14:02Z DEBUG [firewall] ip6tables --delete OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:14:02Z DEBUG [firewall] iptables --append OUTPUT -d 91.205.230.35 -o eth0 -p udp -m udp --dport 53 -j ACCEPT
2022-05-29T10:14:02Z DEBUG [firewall] iptables --append OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:14:02Z DEBUG [firewall] ip6tables --append OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:14:02Z INFO [openvpn] OpenVPN 2.4.12 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Mar 24 2022
2022-05-29T10:14:02Z INFO [openvpn] library versions: OpenSSL 1.1.1o  3 May 2022, LZO 2.10
2022-05-29T10:14:02Z INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]91.205.230.35:53
2022-05-29T10:14:02Z INFO [openvpn] UDP link local: (not bound)
2022-05-29T10:14:02Z INFO [openvpn] UDP link remote: [AF_INET]91.205.230.35:53
2022-05-29T10:14:13Z INFO [healthcheck] program has been unhealthy for 11s: restarting VPN
2022-05-29T10:14:13Z INFO [vpn] stopping
2022-05-29T10:14:13Z INFO [vpn] starting
2022-05-29T10:14:13Z INFO [firewall] allowing VPN connection...
2022-05-29T10:14:13Z DEBUG [firewall] iptables --delete OUTPUT -d 91.205.230.35 -o eth0 -p udp -m udp --dport 53 -j ACCEPT
2022-05-29T10:14:13Z DEBUG [firewall] iptables --delete OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:14:13Z DEBUG [firewall] ip6tables --delete OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:14:13Z DEBUG [firewall] iptables --append OUTPUT -d 91.205.230.37 -o eth0 -p udp -m udp --dport 53 -j ACCEPT
2022-05-29T10:14:13Z DEBUG [firewall] iptables --append OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:14:13Z DEBUG [firewall] ip6tables --append OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:14:13Z INFO [openvpn] OpenVPN 2.4.12 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Mar 24 2022
2022-05-29T10:14:13Z INFO [openvpn] library versions: OpenSSL 1.1.1o  3 May 2022, LZO 2.10
2022-05-29T10:14:13Z INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]91.205.230.37:53
2022-05-29T10:14:13Z INFO [openvpn] UDP link local: (not bound)
2022-05-29T10:14:13Z INFO [openvpn] UDP link remote: [AF_INET]91.205.230.37:53
2022-05-29T10:14:30Z INFO [healthcheck] program has been unhealthy for 16s: restarting VPN
2022-05-29T10:14:30Z INFO [vpn] stopping
2022-05-29T10:14:30Z INFO [vpn] starting
2022-05-29T10:14:30Z INFO [firewall] allowing VPN connection...
2022-05-29T10:14:30Z DEBUG [firewall] iptables --delete OUTPUT -d 91.205.230.37 -o eth0 -p udp -m udp --dport 53 -j ACCEPT
2022-05-29T10:14:30Z DEBUG [firewall] iptables --delete OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:14:30Z DEBUG [firewall] ip6tables --delete OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:14:30Z DEBUG [firewall] iptables --append OUTPUT -d 5.154.174.3 -o eth0 -p udp -m udp --dport 53 -j ACCEPT
2022-05-29T10:14:30Z DEBUG [firewall] iptables --append OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:14:30Z DEBUG [firewall] ip6tables --append OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:14:30Z INFO [openvpn] OpenVPN 2.4.12 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Mar 24 2022
2022-05-29T10:14:30Z INFO [openvpn] library versions: OpenSSL 1.1.1o  3 May 2022, LZO 2.10
2022-05-29T10:14:30Z INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]5.154.174.3:53
2022-05-29T10:14:30Z INFO [openvpn] UDP link local: (not bound)
2022-05-29T10:14:30Z INFO [openvpn] UDP link remote: [AF_INET]5.154.174.3:53
2022-05-29T10:14:51Z INFO [healthcheck] program has been unhealthy for 21s: restarting VPN
2022-05-29T10:14:51Z INFO [vpn] stopping
2022-05-29T10:14:51Z INFO [vpn] starting
2022-05-29T10:14:51Z INFO [firewall] allowing VPN connection...
2022-05-29T10:14:51Z DEBUG [firewall] iptables --delete OUTPUT -d 5.154.174.3 -o eth0 -p udp -m udp --dport 53 -j ACCEPT
2022-05-29T10:14:51Z DEBUG [firewall] iptables --delete OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:14:51Z DEBUG [firewall] ip6tables --delete OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:14:51Z DEBUG [firewall] iptables --append OUTPUT -d 91.205.230.37 -o eth0 -p udp -m udp --dport 53 -j ACCEPT
2022-05-29T10:14:51Z DEBUG [firewall] iptables --append OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:14:51Z DEBUG [firewall] ip6tables --append OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:14:51Z INFO [openvpn] OpenVPN 2.4.12 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Mar 24 2022
2022-05-29T10:14:51Z INFO [openvpn] library versions: OpenSSL 1.1.1o  3 May 2022, LZO 2.10
2022-05-29T10:14:51Z INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]91.205.230.37:53
2022-05-29T10:14:51Z INFO [openvpn] UDP link local: (not bound)
2022-05-29T10:14:51Z INFO [openvpn] UDP link remote: [AF_INET]91.205.230.37:53
2022-05-29T10:15:17Z INFO [healthcheck] program has been unhealthy for 26s: restarting VPN
2022-05-29T10:15:17Z INFO [vpn] stopping
2022-05-29T10:15:17Z INFO [vpn] starting
2022-05-29T10:15:17Z INFO [firewall] allowing VPN connection...
2022-05-29T10:15:17Z INFO [openvpn] OpenVPN 2.4.12 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Mar 24 2022
2022-05-29T10:15:17Z INFO [openvpn] library versions: OpenSSL 1.1.1o  3 May 2022, LZO 2.10
2022-05-29T10:15:17Z INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]91.205.230.37:53
2022-05-29T10:15:17Z INFO [openvpn] UDP link local: (not bound)
2022-05-29T10:15:17Z INFO [openvpn] UDP link remote: [AF_INET]91.205.230.37:53
2022-05-29T10:15:48Z INFO [healthcheck] program has been unhealthy for 31s: restarting VPN
2022-05-29T10:15:48Z INFO [vpn] stopping
2022-05-29T10:15:48Z INFO [vpn] starting
2022-05-29T10:15:48Z INFO [firewall] allowing VPN connection...
2022-05-29T10:15:48Z DEBUG [firewall] iptables --delete OUTPUT -d 91.205.230.37 -o eth0 -p udp -m udp --dport 53 -j ACCEPT
2022-05-29T10:15:48Z DEBUG [firewall] iptables --delete OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:15:48Z DEBUG [firewall] ip6tables --delete OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:15:48Z DEBUG [firewall] iptables --append OUTPUT -d 5.154.174.3 -o eth0 -p udp -m udp --dport 53 -j ACCEPT
2022-05-29T10:15:48Z DEBUG [firewall] iptables --append OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:15:48Z DEBUG [firewall] ip6tables --append OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:15:48Z INFO [openvpn] OpenVPN 2.4.12 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Mar 24 2022
2022-05-29T10:15:48Z INFO [openvpn] library versions: OpenSSL 1.1.1o  3 May 2022, LZO 2.10
2022-05-29T10:15:48Z INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]5.154.174.3:53
2022-05-29T10:15:48Z INFO [openvpn] UDP link local: (not bound)
2022-05-29T10:15:48Z INFO [openvpn] UDP link remote: [AF_INET]5.154.174.3:53
2022-05-29T10:16:24Z INFO [healthcheck] program has been unhealthy for 36s: restarting VPN
2022-05-29T10:16:24Z INFO [vpn] stopping
2022-05-29T10:16:24Z INFO [vpn] starting
2022-05-29T10:16:24Z INFO [firewall] allowing VPN connection...
2022-05-29T10:16:24Z INFO [openvpn] OpenVPN 2.4.12 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Mar 24 2022
2022-05-29T10:16:24Z INFO [openvpn] library versions: OpenSSL 1.1.1o  3 May 2022, LZO 2.10
2022-05-29T10:16:24Z INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]5.154.174.3:53
2022-05-29T10:16:24Z INFO [openvpn] UDP link local: (not bound)
2022-05-29T10:16:24Z INFO [openvpn] UDP link remote: [AF_INET]5.154.174.3:53
2022-05-29T10:17:05Z INFO [healthcheck] program has been unhealthy for 41s: restarting VPN
2022-05-29T10:17:05Z INFO [vpn] stopping
2022-05-29T10:17:05Z INFO [vpn] starting
2022-05-29T10:17:05Z INFO [firewall] allowing VPN connection...
2022-05-29T10:17:05Z DEBUG [firewall] iptables --delete OUTPUT -d 5.154.174.3 -o eth0 -p udp -m udp --dport 53 -j ACCEPT
2022-05-29T10:17:05Z DEBUG [firewall] iptables --delete OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:17:05Z DEBUG [firewall] ip6tables --delete OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:17:05Z DEBUG [firewall] iptables --append OUTPUT -d 91.205.230.37 -o eth0 -p udp -m udp --dport 53 -j ACCEPT
2022-05-29T10:17:05Z DEBUG [firewall] iptables --append OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:17:05Z DEBUG [firewall] ip6tables --append OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:17:05Z INFO [openvpn] OpenVPN 2.4.12 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Mar 24 2022
2022-05-29T10:17:05Z INFO [openvpn] library versions: OpenSSL 1.1.1o  3 May 2022, LZO 2.10
2022-05-29T10:17:05Z INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]91.205.230.37:53
2022-05-29T10:17:05Z INFO [openvpn] UDP link local: (not bound)
2022-05-29T10:17:05Z INFO [openvpn] UDP link remote: [AF_INET]91.205.230.37:53
2022-05-29T10:17:51Z INFO [healthcheck] program has been unhealthy for 46s: restarting VPN
2022-05-29T10:17:51Z INFO [vpn] stopping
2022-05-29T10:17:51Z INFO [vpn] starting
2022-05-29T10:17:51Z INFO [firewall] allowing VPN connection...
2022-05-29T10:17:51Z INFO [openvpn] OpenVPN 2.4.12 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Mar 24 2022
2022-05-29T10:17:51Z INFO [openvpn] library versions: OpenSSL 1.1.1o  3 May 2022, LZO 2.10
2022-05-29T10:17:51Z INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]91.205.230.37:53
2022-05-29T10:17:51Z INFO [openvpn] UDP link local: (not bound)
2022-05-29T10:17:51Z INFO [openvpn] UDP link remote: [AF_INET]91.205.230.37:53
2022-05-29T10:18:42Z INFO [healthcheck] program has been unhealthy for 51s: restarting VPN
2022-05-29T10:18:42Z INFO [vpn] stopping
2022-05-29T10:18:42Z INFO [vpn] starting
2022-05-29T10:18:42Z INFO [firewall] allowing VPN connection...
2022-05-29T10:18:42Z INFO [openvpn] OpenVPN 2.4.12 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Mar 24 2022
2022-05-29T10:18:42Z INFO [openvpn] library versions: OpenSSL 1.1.1o  3 May 2022, LZO 2.10
2022-05-29T10:18:42Z INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]91.205.230.37:53
2022-05-29T10:18:42Z INFO [openvpn] UDP link local: (not bound)
2022-05-29T10:18:42Z INFO [openvpn] UDP link remote: [AF_INET]91.205.230.37:53
2022-05-29T10:19:38Z INFO [healthcheck] program has been unhealthy for 56s: restarting VPN
2022-05-29T10:19:38Z INFO [vpn] stopping
2022-05-29T10:19:38Z INFO [vpn] starting
2022-05-29T10:19:38Z INFO [firewall] allowing VPN connection...
2022-05-29T10:19:38Z INFO [openvpn] OpenVPN 2.4.12 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Mar 24 2022
2022-05-29T10:19:38Z INFO [openvpn] library versions: OpenSSL 1.1.1o  3 May 2022, LZO 2.10
2022-05-29T10:19:38Z INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]91.205.230.37:53
2022-05-29T10:19:38Z INFO [openvpn] UDP link local: (not bound)
2022-05-29T10:19:38Z INFO [openvpn] UDP link remote: [AF_INET]91.205.230.37:53
2022-05-29T10:20:38Z WARN [openvpn] TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
πŸš’πŸš’πŸš’πŸš’πŸš’πŸš¨πŸš¨πŸš¨πŸš¨πŸš¨πŸš¨πŸš’πŸš’πŸš’πŸš’πŸš’
That error usually happens because either:

1. The VPN server IP address you are trying to connect to is no longer valid πŸ”Œ
   Update your server information using https://github.com/qdm12/gluetun/wiki/Updating-Servers

2. The VPN server crashed πŸ’₯, try changing your VPN servers filtering options such as SERVER_REGIONS

3. Your Internet connection is not working 🀯, ensure it works

4. Something else ➑️ https://github.com/qdm12/gluetun/issues/new/choose

2022-05-29T10:20:38Z INFO [openvpn] TLS Error: TLS handshake failed
2022-05-29T10:20:38Z INFO [openvpn] SIGTERM received, sending exit notification to peer
2022-05-29T10:20:38Z INFO [openvpn] SIGTERM[soft,tls-error] received, process exiting
2022-05-29T10:20:38Z INFO [vpn] retrying in 15s
2022-05-29T10:20:40Z INFO [healthcheck] program has been unhealthy for 1m1s: restarting VPN
2022-05-29T10:20:53Z INFO [firewall] allowing VPN connection...
2022-05-29T10:20:53Z DEBUG [firewall] iptables --delete OUTPUT -d 91.205.230.37 -o eth0 -p udp -m udp --dport 53 -j ACCEPT
2022-05-29T10:20:53Z DEBUG [firewall] iptables --delete OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:20:53Z DEBUG [firewall] ip6tables --delete OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:20:53Z DEBUG [firewall] iptables --append OUTPUT -d 5.154.174.3 -o eth0 -p udp -m udp --dport 53 -j ACCEPT
2022-05-29T10:20:53Z DEBUG [firewall] iptables --append OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:20:53Z DEBUG [firewall] ip6tables --append OUTPUT -o tun0 -j ACCEPT
2022-05-29T10:20:53Z INFO [openvpn] OpenVPN 2.4.12 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Mar 24 2022
2022-05-29T10:20:53Z INFO [openvpn] library versions: OpenSSL 1.1.1o  3 May 2022, LZO 2.10
2022-05-29T10:20:53Z INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]5.154.174.3:53
2022-05-29T10:20:53Z INFO [openvpn] UDP link local: (not bound)
2022-05-29T10:20:53Z INFO [openvpn] UDP link remote: [AF_INET]5.154.174.3:53
2022-05-29T10:21:53Z WARN [openvpn] TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
πŸš’πŸš’πŸš’πŸš’πŸš’πŸš¨πŸš¨πŸš¨πŸš¨πŸš¨πŸš¨πŸš’πŸš’πŸš’πŸš’πŸš’
That error usually happens because either:

1. The VPN server IP address you are trying to connect to is no longer valid πŸ”Œ
   Update your server information using https://github.com/qdm12/gluetun/wiki/Updating-Servers

2. The VPN server crashed πŸ’₯, try changing your VPN servers filtering options such as SERVER_REGIONS

3. Your Internet connection is not working 🀯, ensure it works

4. Something else ➑️ https://github.com/qdm12/gluetun/issues/new/choose

2022-05-29T10:21:53Z INFO [openvpn] TLS Error: TLS handshake failed
2022-05-29T10:21:53Z INFO [openvpn] SIGTERM received, sending exit notification to peer
2022-05-29T10:21:53Z INFO [openvpn] SIGTERM[soft,tls-error] received, process exiting
2022-05-29T10:21:53Z INFO [vpn] retrying in 15s
2022-05-29T10:21:59Z INFO [healthcheck] program has been unhealthy for 1m6s: restarting VPN
...

Share your configuration

docker run -d --name gluetun --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=purevpn --device /dev/net/tun:/dev/net/tun \
-e OPENVPN_USER=############ -e OPENVPN_PASSWORD=########### \
-e SERVER_COUNTRIES=Netherlands qmcgaw/gluetun

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 20 (8 by maintainers)

Most upvoted comments

@xtypebox for PureVPN, b4f6ae030dc214351fdcac2b372dec2952e6ff27 might fix it. The option key-direction 1 was missing with some code changes I made post v3.29.0.

For others using OpenVPN + UDP and one of these providers PrivateVPN, FastestVPN, Mullvad, NordVPN, ProtonVPN, that commit 684cef6eab8872fd2a495beb7efc8f0de17d7487 might fix your issue, since UDP specific lines weren’t added to the config file properly.

You can get those two commits by docker pull qmcgaw/gluetun.

EDIT: I also noticed my build pipeline wasn’t publishing to Docker hub for the last week, so commits I previously mentioned before this comment weren’t actually pushed 😒