Open gawsoftpl opened 1 month ago
Hello @gawsoftpl, can you try testing again running client with these additional capabilities: --cap-add=SYS_ADMIN
and --cap-add=SYS_RESOURCE
?
Hello @gawsoftpl, can you try testing again running client with these additional capabilities:
--cap-add=SYS_ADMIN
and--cap-add=SYS_RESOURCE
?
This not help in docker and k8s same issue.
I past resolv conf
cat /etc/resolv.conf
# Generated by NetBird
# If needed you can restore the original file by copying back /etc/resolv.conf.original.netbird
options timeout:4 attempts:1
search netbird.selfhosted
nameserver 100.87.0.130
nameserver 100.87.231.247
nameserver 185.12.64.1
nameserver 185.12.64.2
cat /etc/nsswitch.conf
# musl itself does not support NSS, however some third-party DNS
# implementations use the nsswitch.conf file to determine what
# policy to follow.
# Editing this file is not recommended.
hosts: files dns
cat /etc/resolv.conf.original.netbird
# Generated by Docker Engine.
# This file can be edited; Docker Engine will not make further changes once it
# has been modified.
nameserver 100.87.231.247
nameserver 185.12.64.1
nameserver 185.12.64.2
search netbird.selfhosted
# Based on host file: '/run/systemd/resolve/resolv.conf' (legacy)
# Overrides: []
And ifconfig from docker container
eth0 Link encap:Ethernet HWaddr 02:42:AC:11:00:02
inet addr:172.17.0.2 Bcast:172.17.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:948 errors:0 dropped:0 overruns:0 frame:0
TX packets:1107 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:135010 (131.8 KiB) TX bytes:137313 (134.0 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:39 errors:0 dropped:0 overruns:0 frame:0
TX packets:39 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3898 (3.8 KiB) TX bytes:3898 (3.8 KiB)
wt0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:100.87.0.130 P-t-P:100.87.0.130 Mask:255.255.0.0
UP POINTOPOINT RUNNING NOARP MTU:1280 Metric:1
RX packets:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:5 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1364 (1.3 KiB) TX bytes:1928 (1.8 KiB)
@gawsoftpl you can enable the debug logs with -e NB_LOG_LEVEL=debug
and share the client logs
Describe the problem
Netbird in docker container or in kubernetes pod for self hosted netbird. Dns resolve correct ip (nslookup works correct) but curl, ping, wget return error: bad address For normal ubuntu instance without docker or kubernetes evereythings works correct
How I run docker
How I run k8s pod
Example commands executed in docker container or in k8s pods. Nslookup return correct ip 100.87.97.114
Ping with ip works correct
Wget with ip works correct
Error here
But when I execute client http request or ping for host I received dns resolve error:
Expected behavior
Ping, curl or wget should send request
Are you using NetBird Cloud?
Netbird self hosted
NetBird version
0.27.10
NetBird status -d output:
I run netbird in container, I cant execute status output