Skip to content

Bug: TLS Handshake error when using protonvpn on openvpn #3427

Description

@kazak-99

Is this urgent?

None

Host OS

Ubuntu 24.04

CPU arch

aarch64

VPN service provider

ProtonVPN

What are you using to run the container

docker-compose

What is the version of Gluetun

Running version latest built on 2026-08-07T11:45:47.701Z (commit 7eed6ea) on Linux 6.8.0-137-generic (aarch64)

What's the problem 🤔

TLS Handshake error when using protonvpn on openvpn

Share your logs (at least 10 lines)

2026-08-10T09:00:51.330590920Z [gluetun] 2026-08-10T09:00:51Z WARN [openvpn] TLS Error: TLS key negotiation failed to occur within 20 seconds (check your network connectivity)
2026-08-10T09:00:51.330648800Z [gluetun] 🚒🚒🚒🚒🚒🚨🚨🚨🚨🚨🚨🚒🚒🚒🚒🚒
2026-08-10T09:00:51.330655440Z [gluetun] That error usually happens because either:
2026-08-10T09:00:51.330659960Z [gluetun] 
2026-08-10T09:00:51.330663800Z [gluetun] 1. The VPN server IP address you are trying to connect to is no longer valid 🔌
2026-08-10T09:00:51.330667880Z [gluetun]    Check out https://github.com/qdm12/gluetun-wiki/blob/main/setup/servers.md#update-the-vpn-servers-list
2026-08-10T09:00:51.330673840Z [gluetun] 
2026-08-10T09:00:51.330677400Z [gluetun] 2. The VPN server crashed 💥, try changing your VPN servers filtering options such as SERVER_REGIONS
2026-08-10T09:00:51.330681960Z [gluetun] 
2026-08-10T09:00:51.330685640Z [gluetun] 3. Your Internet connection is not working 🤯, ensure it works
2026-08-10T09:00:51.330689600Z [gluetun] 
2026-08-10T09:00:51.330693440Z [gluetun] 4. Something else ➡️ https://github.com/qdm12/gluetun/issues/new/choose
2026-08-10T09:00:51.330697480Z [gluetun] 
2026-08-10T09:00:51.330701080Z [gluetun] 2026-08-10T09:00:51Z INFO [openvpn] TLS Error: TLS handshake failed
2026-08-10T09:00:51.330705040Z [gluetun] 2026-08-10T09:00:51Z INFO [openvpn] SIGTERM received, sending exit notification to peer
2026-08-10T09:00:51.331065120Z [gluetun] 2026-08-10T09:00:51Z INFO [openvpn] SIGTERM[soft,tls-error] received, process exiting
2026-08-10T09:00:51.333225000Z [gluetun] 2026-08-10T09:00:51Z INFO [vpn] retrying in 15s
2026-08-10T09:01:06.337594800Z [gluetun] 2026-08-10T09:01:06Z INFO [firewall] allowing VPN connection...
2026-08-10T09:01:06.427658600Z [gluetun] 2026-08-10T09:01:06Z INFO [openvpn] OpenVPN 2.6.20 aarch64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD]
2026-08-10T09:01:06.427716600Z [gluetun] 2026-08-10T09:01:06Z INFO [openvpn] library versions: OpenSSL 3.5.7 9 Jun 2026, LZO 2.10
2026-08-10T09:01:06.430379920Z [gluetun] 2026-08-10T09:01:06Z INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]89.222.96.1:1194
2026-08-10T09:01:06.430621680Z [gluetun] 2026-08-10T09:01:06Z INFO [openvpn] UDPv4 link local: (not bound)
2026-08-10T09:01:06.430638800Z [gluetun] 2026-08-10T09:01:06Z INFO [openvpn] UDPv4 link remote: [AF_INET]89.222.96.1:1194
2026-08-10T09:01:26.879895600Z [gluetun] 2026-08-10T09:01:26Z WARN [openvpn] TLS Error: TLS key negotiation failed to occur within 20 seconds (check your network connectivity)

Share your configuration

services:
  gluetun:
    container_name: gluetun
    image: qmcgaw/gluetun:latest
    restart: always

    cap_add:
      - NET_ADMIN

    devices:
      - /dev/net/tun:/dev/net/tun

    environment:
      - VPN_SERVICE_PROVIDER=protonvpn
      - VPN_TYPE=openvpn
      - OPENVPN_USER=REDACTED
      - OPENVPN_PASSWORD=REDACTED
      - SERVER_COUNTRIES=Switzerland

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions