netbird
netbird copied to clipboard
got an error while applying resolvconf configuration for wt0 interface, error: exit status 99
Describe the problem Netbird cannot configure resolvconf in some peers
these are some error logs
2024-01-09T16:59:07+01:00 ERRO client/internal/dns/server.go:282: got an error while applying resolvconf configuration for wt0 interface, error: exit status 99
2024-01-09T16:59:07+01:00 ERRO client/internal/dns/host_linux.go:99: got an error while checking systemd resolv conf mode, error: got an error getting property org.freedesktop.resolve1.Manager.ResolvConfMode: Unknown property or interface.
2024-01-09T16:59:07+01:00 WARN client/internal/wgproxy/factory_linux.go:15: failed to initialize ebpf proxy, fallback to user space proxy: field NbXdpProg: program nb_xdp_prog: map .rodata: map create: read- and write-only maps not supported (requires >= v5.2)
root@api-server:/etc/systemd/network# cat /var/log/netbird/client.log | grep error
2024-01-09T13:34:40+01:00 WARN client/server/server.go:122: failed login: rpc error: code = InvalidArgument desc = invalid setup-key or no sso information provided, err: invalid UUID length: 0
2024-01-09T13:34:41+01:00 ERRO client/internal/dns/host_linux.go:99: got an error while checking systemd resolv conf mode, error: got an error getting property org.freedesktop.resolve1.Manager.ResolvConfMode: Unknown property or interface.
2024-01-09T13:34:41+01:00 ERRO client/internal/dns/resolvconf_linux.go:47: got an error while removing resolvconf configuration for wt0 interface, error: exit status 99
2024-01-09T13:37:38+01:00 ERRO client/internal/dns/server.go:168: got an error while removing resolvconf configuration for wt0 interface, error: exit status 99
2024-01-09T13:38:27+01:00 WARN client/server/server.go:122: failed login: rpc error: code = InvalidArgument desc = invalid setup-key or no sso information provided, err: invalid UUID length: 0
2024-01-09T13:38:28+01:00 ERRO client/internal/dns/host_linux.go:99: got an error while checking systemd resolv conf mode, error: got an error getting property org.freedesktop.resolve1.Manager.ResolvConfMode: Unknown property or interface.
2024-01-09T13:38:28+01:00 ERRO client/internal/dns/resolvconf_linux.go:47: got an error while removing resolvconf configuration for wt0 interface, error: exit status 99
Expected behavior when netbird successfully connect, it should be able to setup resolver to resolve other peers FQDNs
NetBird status -d output:
root@api-server:~# netbird status -d
Peers detail:
nano-48433.eu-vpn.domain.ltd:
NetBird IP: 100.85.46.148
Public key: xxIJaMBffN0PFfiCCATeEI+NpTQ7pRvKas+ApqjHlmE=
Status: Connected
-- detail --
Connection type: P2P
Direct: true
ICE candidate (Local/Remote): host/prflx
Last connection update: 2024-01-09 16:59:12
nano-08266.eu-vpn.domain.ltd:
NetBird IP: 100.85.66.103
Public key: uYXixcplxIBBC8navUpT0QHV1+1UeBaqSH7sJpYLr3s=
Status: Connected
-- detail --
Connection type: P2P
Direct: true
ICE candidate (Local/Remote): host/prflx
Last connection update: 2024-01-09 18:43:01
dublin-office.eu-vpn.domain.ltd:
NetBird IP: 100.85.187.233
Public key: 7LtFVno9xxLSUA+R79XaqSD7t5svM7XT7+OLFLl6SG0=
Status: Connected
-- detail --
Connection type: P2P
Direct: true
ICE candidate (Local/Remote): srflx/prflx
Last connection update: 2024-01-09 16:59:13
Daemon version: 0.25.3
CLI version: 0.25.3
Management: Connected to https://eu-vpn.domain.ltd:443
Signal: Connected to https://eu-vpn.domain.ltd:443
FQDN: api-server.eu-vpn.domain.ltd
NetBird IP: 100.85.85.131/16
Interface type: Userspace
Peers count: 3/3 Connected
Screenshots
-
Connect netbird with setup keys
-
netbird status (connected)
-
/etc/resolv.conf
doesn't contain DNS details like other peers -
After proper restart (down => up or netbird service restart) I got resolv errors
2024-01-09T18:48:48+01:00 ERRO client/internal/dns/server.go:168: got an error while removing resolvconf configuration for wt0 interface, error: exit status 99
2024-01-09T18:48:48+01:00 INFO client/internal/engine.go:170: stopped Netbird Engine
2024-01-09T18:48:48+01:00 INFO client/internal/connect.go:205: stopped NetBird client
2024-01-09T18:48:54+01:00 INFO client/internal/connect.go:56: starting NetBird client version 0.25.3
2024-01-09T18:48:54+01:00 WARN client/internal/wgproxy/factory_linux.go:15: failed to initialize ebpf proxy, fallback to user space proxy: field NbXdpProg: program nb_xdp_prog: map .rodata: map create: read- and write-only maps not supported (requires >= v5.2)
2024-01-09T18:48:54+01:00 INFO iface/tun_usp_linux.go:33: using userspace bind mode
2024-01-09T18:48:54+01:00 INFO iface/tun_usp_linux.go:45: create tun interface
2024-01-09T18:48:54+01:00 WARN client/firewall/nftables/route_linux.go:69: table 'filter' not found for forward rules
2024-01-09T18:48:55+01:00 ERRO client/internal/dns/host_linux.go:99: got an error while checking systemd resolv conf mode, error: got an error getting property org.freedesktop.resolve1.Manager.ResolvConfMode: Unknown property or interface.
2024-01-09T18:48:55+01:00 INFO signal/client/grpc.go:157: connected to the Signal Service stream
2024-01-09T18:48:55+01:00 INFO client/internal/connect.go:191: Netbird engine started, my IP is: 100.85.85.131/16
2024-01-09T18:48:55+01:00 INFO management/client/grpc.go:143: connected to the Management Service stream
2024-01-09T18:48:55+01:00 ERRO client/internal/dns/server.go:282: got an error while applying resolvconf configuration for wt0 interface, error: exit status 99
2024-01-09T18:48:55+01:00 INFO client/internal/acl/manager.go:52: ACL rules processed in: 26.329µs, total rules count: 2
2024-01-09T18:48:56+01:00 INFO client/internal/peer/conn.go:343: connected to peer xxIJaMBffN0PFfiCCATeEI+NpTQ7pRvKas+ApqjHlmE=, endpoint address: 92.40.219.102:1961
2024-01-09T18:48:57+01:00 INFO client/internal/peer/conn.go:343: connected to peer uYXixcplxIBBC8navUpT0QHV1+1UeBaqSH7sJpYLr3s=, endpoint address: 185.205.230.240:21197
2024-01-09T18:48:57+01:00 INFO client/internal/peer/conn.go:343: connected to peer 7LtFVno9xxLSUA+R79XaqSD7t5svM7XT7+OLFLl6SG0=, endpoint address: 89.100.126.110:51820
2024-01-09T18:49:51+01:00 INFO client/internal/peer/conn.go:343: connected to peer uYXixcplxIBBC8navUpT0QHV1+1UeBaqSH7sJpYLr3s=, endpoint address: 185.205.230.240:21197
2024-01-09T18:50:24+01:00 INFO client/internal/peer/conn.go:343: connected to peer uYXixcplxIBBC8navUpT0QHV1+1UeBaqSH7sJpYLr3s=, endpoint address: 185.205.230.240:21197
- cannot reach other connected peers via FQDN nor via IP
Additional context
I think there is a bug in netbird client not able to detect DNS resolver although:
System-resovled is active and running
resolvconf is installed and running
seen this issues in:
Netbird run with or without sudo / root
ERRO client/internal/dns/server.go:282: unable to configure DNS for this peer using resolvconf manager without a nameserver group with all domains configured
Hi !
I'm facing the same issue. Did you found a solution ? Is there a way to manually configure the internal DNS to resolv netbird peers IP with their name ?
@rpellerej I didn't find a solution to this.
I have just dropped the server I was working on and used another one.