Skip to content

Conversation

@HueCodes
Copy link

@HueCodes HueCodes commented Jan 29, 2026

Fixes ICMP proxy selecting Docker bridge interfaces instead of physical interfaces on systems with containers.

  • Adds interface filtering to exclude virtual/bridge interfaces (br-, docker, veth.)
  • Prioritizes physical interfaces
  • Changes fallback dial target to 8.8.8.8 for better default route detection

Fixes #1546

On systems with Docker or other container runtimes, the ICMP proxy was
selecting virtual bridge interfaces (br-*, docker*, veth*) instead of
physical interfaces (eth*, enp*, ens*, wlan*).

This change:
- Adds interface filtering to exclude known virtual/bridge interfaces
- Prioritizes physical interfaces when selecting ICMP source addresses
- Changes fallback dial target from 192.168.0.1 to 8.8.8.8 for better
  default route detection
- Applies the same filtering to IPv6 source selection

The existing --icmpv4-src and --icmpv6-src flags continue to work as
manual overrides.

Fixes cloudflare#1546
@HueCodes HueCodes force-pushed the fix/icmp-interface-selection branch from 9d1e927 to 0b90c42 Compare January 29, 2026 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 cloudflared chooses wrong active interface

1 participant