[GH-ISSUE #1080] DNS/COTURN Bug: credentials #1828

Open
opened 2026-08-05 00:44:09 -04:00 by saavagebueno · 3 comments
Owner

Originally created by @ykorzikowski on GitHub (Aug 13, 2023).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/1080

I maybe found another (dns) bug. I am re-installing netbird right now (integrate it into my ansible deploy pipeline).

My notebook always complaining in client.log

2023-08-13T12:28:11+02:00 WARN [upstream: 10.123.***.***:53, error: read udp 100.69.***.***:55316->10.123.***.***:53: i/o timeout] client/internal/d
ns/upstream.go:81: got an error while connecting to upstream
2023-08-13T12:28:11+02:00 ERRO client/internal/dns/upstream.go:101: all queries to the upstream nameservers failed with timeout

BUT

[12:29:28] :) [~]
root@yksolutions-m1:~ # nslookup app.vpn.swokiz.com 10.123.***.***
Server:     10.123.***.***
Address:    10.123.***.***#53

Non-authoritative answer:
Name:   app.***.***.***
Address: 100.69.***.***

On a fresh netbird service restart, it is working for minutes. Then netbird finds timeouts in dns and removes it from the dns resolver list.

10.123.***.*** is routed via eros.

My Mac:

Daemon version: 0.22.3
CLI version: 0.22.3
Management: Connected to https://***.***.com:33073
Signal: Connected to https://***.***.com:10000
FQDN: yksolutions-m1-1.***.net
NetBird IP: 100.69.***.***/16
Interface type: Userspace
Peers count: 14/23 Connected

Eros:

Connection to eros is always pending between Connecting and Connected.

 eros.swokiz.net:
  NetBird IP: 100.69.***.***
  Public key: ***+tItrgs=
  Status: Connecting
  -- detail --
  Connection type:
  Direct: false
  ICE candidate (Local/Remote): -/-
  Last connection update: 2023-08-13 12:30:05
 eros.swokiz.net:
  NetBird IP: 100.69.***.***
  Public key: ***+tItrgs=
  Status: Connected
  -- detail --
  Connection type: Relayed
  Direct: false
  ICE candidate (Local/Remote): relay/host
  Last connection update: 2023-08-13 12:30:48

Its really hard to debug, because neither netbird server, netbird-client or coturn is prividing any error messages.

Only coturn is logging:

2023-08-13T10:39:38+0000(25): INFO: session 000000000000000388: realm <***.com> user <>: incoming packet message processed, error 401: Unauthorized
Screenshot 2023-08-13 at 13 05 02
Originally created by @ykorzikowski on GitHub (Aug 13, 2023). Original GitHub issue: https://github.com/netbirdio/netbird/issues/1080 I maybe found another (dns) bug. I am re-installing netbird right now (integrate it into my ansible deploy pipeline). My notebook always complaining in `client.log` ``` 2023-08-13T12:28:11+02:00 WARN [upstream: 10.123.***.***:53, error: read udp 100.69.***.***:55316->10.123.***.***:53: i/o timeout] client/internal/d ns/upstream.go:81: got an error while connecting to upstream 2023-08-13T12:28:11+02:00 ERRO client/internal/dns/upstream.go:101: all queries to the upstream nameservers failed with timeout ``` BUT ``` [12:29:28] :) [~] root@yksolutions-m1:~ # nslookup app.vpn.swokiz.com 10.123.***.*** Server: 10.123.***.*** Address: 10.123.***.***#53 Non-authoritative answer: Name: app.***.***.*** Address: 100.69.***.*** ``` On a fresh netbird service restart, it is working for minutes. Then netbird finds timeouts in dns and removes it from the dns resolver list. `10.123.***.***` is routed via eros. My Mac: ``` Daemon version: 0.22.3 CLI version: 0.22.3 Management: Connected to https://***.***.com:33073 Signal: Connected to https://***.***.com:10000 FQDN: yksolutions-m1-1.***.net NetBird IP: 100.69.***.***/16 Interface type: Userspace Peers count: 14/23 Connected ``` Eros: Connection to eros is always pending between Connecting and Connected. ``` eros.swokiz.net: NetBird IP: 100.69.***.*** Public key: ***+tItrgs= Status: Connecting -- detail -- Connection type: Direct: false ICE candidate (Local/Remote): -/- Last connection update: 2023-08-13 12:30:05 ``` ``` eros.swokiz.net: NetBird IP: 100.69.***.*** Public key: ***+tItrgs= Status: Connected -- detail -- Connection type: Relayed Direct: false ICE candidate (Local/Remote): relay/host Last connection update: 2023-08-13 12:30:48 ``` Its really hard to debug, because neither netbird server, netbird-client or coturn is prividing any error messages. Only coturn is logging: ``` 2023-08-13T10:39:38+0000(25): INFO: session 000000000000000388: realm <***.com> user <>: incoming packet message processed, error 401: Unauthorized ``` <img width="1163" alt="Screenshot 2023-08-13 at 13 05 02" src="https://github.com/netbirdio/netbird/assets/20556547/94f6b858-5257-4323-ae67-6572be7516d6">
Author
Owner

@MichalNemec commented on GitHub (Jun 7, 2024):

have the same on 0.27.10

1040: (9): INFO: session 000000000000000057: realm <realm.com> user <>: incoming packet message processed, error 401: Unauthorized
1040: (9): INFO: session 000000000000000058: realm <realm.com> user <self>: incoming packet message processed, error 438: Wrong nonce
<!-- gh-comment-id:2154146300 --> @MichalNemec commented on GitHub (Jun 7, 2024): have the same on 0.27.10 ``` 1040: (9): INFO: session 000000000000000057: realm <realm.com> user <>: incoming packet message processed, error 401: Unauthorized 1040: (9): INFO: session 000000000000000058: realm <realm.com> user <self>: incoming packet message processed, error 438: Wrong nonce ```
Author
Owner

@nazarewk commented on GitHub (Apr 23, 2025):

@ykorzikowski @MichalNemec are you still observing the issue with the latest NetBird version?

<!-- gh-comment-id:2824698574 --> @nazarewk commented on GitHub (Apr 23, 2025): @ykorzikowski @MichalNemec are you still observing the issue with the latest NetBird version?
Author
Owner

@MichalNemec commented on GitHub (Apr 23, 2025):

i dont think so, it works without problems

<!-- gh-comment-id:2825409343 --> @MichalNemec commented on GitHub (Apr 23, 2025): i dont think so, it works without problems
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#1828