Skip to content

Bug: healthcheck error: dialing: dial tcp4: lookup cloudflare.com on 1.1.1.1:53: write udp {IP}:{PORT}->1.1.1.1:53: write: operation not permitted #2794

@anonymous-99529

Description

@anonymous-99529

Is this urgent?

No

Host OS

Synology DSM 7.2.2-72806 Update 3

CPU arch

x86_64

VPN service provider

ProtonVPN

What are you using to run the container

Portainer

What is the version of Gluetun

Running version latest built on 2025-01-22T08:30:14.628Z (commit 13532c8)

What's the problem 🤔

The docker-compose file below worked fine for a few months, but today after rebooting the host machine, it started outputting the following error:

Share your logs (at least 10 lines)

========================================
========================================
=============== gluetun ================
========================================
=========== Made with ❤️ by ============
======= https://github.com/qdm12 =======
========================================
========================================
Running version latest built on 2025-01-22T08:30:14.628Z (commit 13532c8)
🔧 Need help? ☕ Discussion? https://github.com/qdm12/gluetun/discussions/new/choose
🐛 Bug? ✨ New feature? https://github.com/qdm12/gluetun/issues/new/choose
💻 Email? [email protected]
💰 Help me? https://www.paypal.me/qmcgaw https://github.com/sponsors/qdm12
2025-04-28T12:47:49+09:00 INFO [routing] default route found: interface eth0, gateway 192.168.224.1, assigned IP 192.168.224.2 and family v4
2025-04-28T12:47:49+09:00 INFO [routing] local ethernet link found: eth0
2025-04-28T12:47:49+09:00 INFO [routing] local ipnet found: 192.168.224.0/20
2025-04-28T12:47:49+09:00 INFO [firewall] enabling...
2025-04-28T12:47:49+09:00 DEBUG [firewall] /sbin/iptables-legacy --policy INPUT DROP
2025-04-28T12:47:49+09:00 DEBUG [firewall] /sbin/iptables-legacy --policy OUTPUT DROP
2025-04-28T12:47:49+09:00 DEBUG [firewall] /sbin/iptables-legacy --policy FORWARD DROP
2025-04-28T12:47:49+09:00 DEBUG [firewall] /sbin/ip6tables-legacy --policy INPUT DROP
2025-04-28T12:47:49+09:00 DEBUG [firewall] /sbin/ip6tables-legacy --policy OUTPUT DROP
2025-04-28T12:47:49+09:00 DEBUG [firewall] /sbin/ip6tables-legacy --policy FORWARD DROP
2025-04-28T12:47:49+09:00 DEBUG [firewall] /sbin/iptables-legacy --append INPUT -i lo -j ACCEPT
2025-04-28T12:47:49+09:00 DEBUG [firewall] /sbin/ip6tables-legacy --append INPUT -i lo -j ACCEPT
2025-04-28T12:47:49+09:00 DEBUG [firewall] /sbin/iptables-legacy --append OUTPUT -o lo -j ACCEPT
2025-04-28T12:47:49+09:00 DEBUG [firewall] /sbin/ip6tables-legacy --append OUTPUT -o lo -j ACCEPT
2025-04-28T12:47:49+09:00 DEBUG [firewall] /sbin/iptables-legacy --append OUTPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
2025-04-28T12:47:49+09:00 DEBUG [firewall] /sbin/ip6tables-legacy --append OUTPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
2025-04-28T12:47:49+09:00 DEBUG [firewall] /sbin/iptables-legacy --append INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
2025-04-28T12:47:49+09:00 DEBUG [firewall] /sbin/ip6tables-legacy --append INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
2025-04-28T12:47:49+09:00 DEBUG [firewall] /sbin/iptables-legacy --append OUTPUT -o eth0 -s 192.168.224.2 -d 192.168.224.0/20 -j ACCEPT
2025-04-28T12:47:49+09:00 DEBUG [firewall] /sbin/ip6tables-legacy --append OUTPUT -o eth0 -d ff02::1:ff00:0/104 -j ACCEPT
2025-04-28T12:47:49+09:00 DEBUG [firewall] /sbin/iptables-legacy --append INPUT -i eth0 -d 192.168.224.0/20 -j ACCEPT
2025-04-28T12:47:49+09:00 INFO [firewall] enabled successfully
2025-04-28T12:47:50+09:00 INFO [storage] creating /gluetun/servers.json with 20776 hardcoded servers
2025-04-28T12:47:51+09:00 DEBUG [netlink] IPv6 is supported by link lo
2025-04-28T12:47:51+09:00 INFO Alpine version: 3.20.5
2025-04-28T12:47:51+09:00 INFO OpenVPN 2.5 version: 2.5.10
2025-04-28T12:47:51+09:00 INFO OpenVPN 2.6 version: 2.6.11
2025-04-28T12:47:51+09:00 INFO IPtables version: v1.8.10
2025-04-28T12:47:51+09:00 INFO Settings summary:
├── VPN settings:
|   ├── VPN provider settings:
|   |   ├── Name: protonvpn
|   |   └── Server selection settings:
|   |       ├── VPN type: openvpn
|   |       ├── Countries: japan
|   |       ├── Free only servers: yes
|   |       └── OpenVPN server selection settings:
|   |           └── Protocol: UDP
|   └── OpenVPN settings:
|       ├── OpenVPN version: 2.6
|       ├── User: [set]
|       ├── Password: z...DI
|       ├── 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: no
├── Firewall settings:
|   └── Enabled: yes
├── Log settings:
|   └── Log level: debug
├── 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
|   └── Authentication file path: /gluetun/auth/config.toml
├── Storage settings:
|   └── Filepath: /gluetun/servers.json
├── OS Alpine settings:
|   ├── Process UID: 1000
|   ├── Process GID: 1000
|   └── Timezone: asia/tokyo
├── Public IP settings:
|   ├── IP file path: /tmp/gluetun/ip
|   ├── Public IP data base API: ipinfo
|   └── Public IP data backup APIs:
|       ├── ifconfigco
|       ├── ip2location
|       └── cloudflare
└── Version settings:
    └── Enabled: yes
2025-04-28T12:47:51+09:00 INFO [routing] default route found: interface eth0, gateway 192.168.224.1, assigned IP 192.168.224.2 and family v4
2025-04-28T12:47:51+09:00 DEBUG [netlink] ip -4 rule list
2025-04-28T12:47:51+09:00 DEBUG [netlink] ip -6 rule list
2025-04-28T12:47:51+09:00 DEBUG [netlink] ip -f 0 rule add from 192.168.224.2/32 lookup 200 pref 100
2025-04-28T12:47:51+09:00 INFO [routing] adding route for 0.0.0.0/0
2025-04-28T12:47:51+09:00 DEBUG [routing] ip route replace 0.0.0.0/0 via 192.168.224.1 dev eth0 table 200
2025-04-28T12:47:51+09:00 INFO [firewall] setting allowed subnets...
2025-04-28T12:47:51+09:00 INFO [routing] default route found: interface eth0, gateway 192.168.224.1, assigned IP 192.168.224.2 and family v4
2025-04-28T12:47:51+09:00 DEBUG [netlink] ip -4 rule list
2025-04-28T12:47:51+09:00 DEBUG [netlink] ip -6 rule list
2025-04-28T12:47:51+09:00 DEBUG [netlink] ip -f 0 rule add to 192.168.224.0/20 lookup 254 pref 98
2025-04-28T12:47:51+09:00 INFO [dns] using plaintext DNS at address 1.1.1.1
2025-04-28T12:47:51+09:00 INFO [http server] http server listening on [::]:8000
2025-04-28T12:47:51+09:00 INFO [healthcheck] listening on 127.0.0.1:9999
2025-04-28T12:47:51+09:00 INFO [firewall] allowing VPN connection...
2025-04-28T12:47:51+09:00 DEBUG [firewall] /sbin/iptables-legacy --append OUTPUT -d 45.14.71.5 -o eth0 -p udp -m udp --dport 1194 -j ACCEPT
2025-04-28T12:47:51+09:00 DEBUG [firewall] /sbin/iptables-legacy --append OUTPUT -o tun0 -j ACCEPT
2025-04-28T12:47:51+09:00 DEBUG [firewall] /sbin/ip6tables-legacy --append OUTPUT -o tun0 -j ACCEPT
2025-04-28T12:47:51+09:00 INFO [openvpn] OpenVPN 2.6.11 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD]
2025-04-28T12:47:51+09:00 INFO [openvpn] library versions: OpenSSL 3.3.2 3 Sep 2024, LZO 2.10
2025-04-28T12:47:51+09:00 INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]45.14.71.5:1194
2025-04-28T12:47:51+09:00 INFO [openvpn] UDPv4 link local: (not bound)
2025-04-28T12:47:51+09:00 INFO [openvpn] UDPv4 link remote: [AF_INET]45.14.71.5:1194
2025-04-28T12:47:57+09:00 INFO [healthcheck] program has been unhealthy for 6s: restarting VPN (healthcheck error: dialing: dial tcp4: lookup cloudflare.com on 1.1.1.1:53: write udp 192.168.224.2:52274->1.1.1.1:53: write: operation not permitted)
2025-04-28T12:47:57+09:00 INFO [healthcheck] 👉 See https://github.com/qdm12/gluetun-wiki/blob/main/faq/healthcheck.md
2025-04-28T12:47:57+09:00 INFO [healthcheck] DO NOT OPEN AN ISSUE UNLESS YOU READ AND TRIED EACH POSSIBLE SOLUTION
2025-04-28T12:47:57+09:00 INFO [vpn] stopping
2025-04-28T12:47:57+09:00 INFO [vpn] starting
2025-04-28T12:47:57+09:00 INFO [firewall] allowing VPN connection...
2025-04-28T12:47:57+09:00 INFO [openvpn] OpenVPN 2.6.11 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD]
2025-04-28T12:47:57+09:00 INFO [openvpn] library versions: OpenSSL 3.3.2 3 Sep 2024, LZO 2.10
2025-04-28T12:47:57+09:00 INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]45.14.71.5:1194
2025-04-28T12:47:57+09:00 INFO [openvpn] UDPv4 link local: (not bound)
2025-04-28T12:47:57+09:00 INFO [openvpn] UDPv4 link remote: [AF_INET]45.14.71.5:1194
2025-04-28T12:48:08+09:00 INFO [healthcheck] program has been unhealthy for 11s: restarting VPN (healthcheck error: dialing: dial tcp4: lookup cloudflare.com on 1.1.1.1:53: write udp 192.168.224.2:55960->1.1.1.1:53: write: operation not permitted)
2025-04-28T12:48:08+09:00 INFO [healthcheck] 👉 See https://github.com/qdm12/gluetun-wiki/blob/main/faq/healthcheck.md
2025-04-28T12:48:08+09:00 INFO [healthcheck] DO NOT OPEN AN ISSUE UNLESS YOU READ AND TRIED EACH POSSIBLE SOLUTION
2025-04-28T12:48:08+09:00 INFO [vpn] stopping

Share your configuration

services:
  gluetun:
    image: qmcgaw/gluetun
    container_name: gluetun
    ports:
      - 12255:1080 #socks5
      - 12255:1080/udp #socks5
    devices:
      - /dev/net/tun:/dev/net/tun
    environment:
      - TZ=Asia/Tokyo
      - VPN_SERVICE_PROVIDER=protonvpn
      - VPN_TYPE=openvpn
      - FREE_ONLY=on
      - SERVER_COUNTRIES=Japan
      - OPENVPN_USER={REDACTED}
      - OPENVPN_PASSWORD={REDACTED}
      - LOG_LEVEL=debug
      - DOT=off
    cap_add:
      - NET_ADMIN
    stdin_open: true #Portainer console
    tty: true #Portainer console
    restart: always

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions