netbirdio / netbird

Connect your devices into a secure WireGuard®-based overlay network with SSO, MFA and granular access controls.
https://netbird.io
BSD 3-Clause "New" or "Revised" License
11.18k stars 515 forks source link

[macos] Can't connect and ping selfhosted #1950

Open MvCraK opened 6 months ago

MvCraK commented 6 months ago

Describe the problem

Can't connect and ping selfhosted

To Reproduce

Steps to reproduce the behavior:

  1. Start netbird app on macOS Sonoma 14.4.1
  2. close firewall
  3. connect netbird
  4. netbird's control plane show online
  5. ping self ip image

Expected behavior

ping self no problem

Are you using NetBird Cloud?

There are problems with NetBird Cloud or self-host NetBird self-host NetBird all port opened

NetBird version

GUI v0.27.4 Daemon v0.27.4

NetBird status -d output:

Daemon version: 0.27.4 CLI version: 0.27.4 Management: Connected Signal: Connected Relays: 0/2 Available Nameservers: 0/0 Available FQDN: mac.netbird.selfhosted NetBird IP: 100.122.42.243/16 Interface type: Userspace Quantum resistance: false Routes: - Peers count: 0/1 Connected

Peers detail: computer.netbird.selfhosted: NetBird IP: 100.122.13.15 Public key: ONlqOeArUDl7JY7jB6/V+CuDxmWXFFvWJ367oNs2LRA= Status: Connecting -- detail -- Connection type: Direct: false ICE candidate (Local/Remote): -/- ICE candidate endpoints (Local/Remote): -/- Last connection update: 4 seconds ago Last WireGuard handshake: - Transfer status (received/sent) 0 B/0 B Quantum resistance: false Routes: - Latency: 0s

OS: darwin/arm64 Daemon version: 0.27.4 CLI version: 0.27.4 Management: Connected to https://xxxxxxx.xxxx.xxxx:443 Signal: Connected to https://xxxxxxx.xxxx.xxxx:443 Relays: [stun:xxxxxxx.xxxx.xxxx:3478] is Unavailable, reason: stun request: context deadline exceeded [turn:xxxxxxx.xxxx.xxxx:3478?transport=udp] is Unavailable, reason: allocate: all retransmissions failed for uQRA6E61hJXcyM8l Nameservers: FQDN: mac.netbird.selfhosted NetBird IP: 100.122.42.243/16 Interface type: Userspace Quantum resistance: false Routes: - Peers count: 0/1 Connected

Screenshots

image

Additional context

Add any other context about the problem here.

mlsmaycon commented 6 months ago

@MvCraK This is the expected behavior on MacOS; the client can't ping its own IP.

MvCraK commented 6 months ago

@MvCraK This is the expected behavior on MacOS; the client can't ping its own IP.

i can't ping or connect other pc(windows)

jiangslee commented 6 months ago

@MvCraK https://netbirdio.slack.com/archives/C05T5K65X7U/p1715318648198659?thread_ts=1715316406.293249&cid=C05T5K65X7U