From 417fa6e833b12b62acd8d3940428e87024845d96 Mon Sep 17 00:00:00 2001 From: Viktor Liu Date: Mon, 21 Jul 2025 17:58:56 +0200 Subject: [PATCH] Change default interface name from wt0 to nb0 --- client/iface/configurer/name.go | 2 +- client/internal/config.go | 2 +- client/internal/engine_test.go | 2 +- client/internal/netflow/manager_test.go | 2 +- client/internal/routemanager/systemops/systemops_test.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/iface/configurer/name.go b/client/iface/configurer/name.go index 3b9abc0e8..6d58674d5 100644 --- a/client/iface/configurer/name.go +++ b/client/iface/configurer/name.go @@ -3,4 +3,4 @@ package configurer // WgInterfaceDefault is a default interface name of Netbird -const WgInterfaceDefault = "wt0" +const WgInterfaceDefault = "nb0" diff --git a/client/internal/config.go b/client/internal/config.go index add702cdb..c49d6879c 100644 --- a/client/internal/config.go +++ b/client/internal/config.go @@ -39,7 +39,7 @@ const ( ) var defaultInterfaceBlacklist = []string{ - iface.WgInterfaceDefault, "wt", "utun", "tun0", "zt", "ZeroTier", "wg", "ts", + iface.WgInterfaceDefault, "nb", "wt", "utun", "tun0", "zt", "ZeroTier", "wg", "ts", "Tailscale", "tailscale", "docker", "veth", "br-", "lo", } diff --git a/client/internal/engine_test.go b/client/internal/engine_test.go index f02138686..1d6308973 100644 --- a/client/internal/engine_test.go +++ b/client/internal/engine_test.go @@ -1393,7 +1393,7 @@ func createEngine(ctx context.Context, cancel context.CancelFunc, setupKey strin if runtime.GOOS == "darwin" { ifaceName = fmt.Sprintf("utun1%d", i) } else { - ifaceName = fmt.Sprintf("wt%d", i) + ifaceName = fmt.Sprintf("nb%d", i) } wgPort := 33100 + i diff --git a/client/internal/netflow/manager_test.go b/client/internal/netflow/manager_test.go index 0b5eb3be6..6065d1b07 100644 --- a/client/internal/netflow/manager_test.go +++ b/client/internal/netflow/manager_test.go @@ -19,7 +19,7 @@ type mockIFaceMapper struct { } func (m *mockIFaceMapper) Name() string { - return "wt0" + return "nb0" } func (m *mockIFaceMapper) Address() wgaddr.Address { diff --git a/client/internal/routemanager/systemops/systemops_test.go b/client/internal/routemanager/systemops/systemops_test.go index 1d1f78830..0a289c855 100644 --- a/client/internal/routemanager/systemops/systemops_test.go +++ b/client/internal/routemanager/systemops/systemops_test.go @@ -252,7 +252,7 @@ func TestSysOps_validateRoute_InvalidPrefix(t *testing.T) { IP: wgNetwork.Addr(), Network: wgNetwork, }, - name: "wt0", + name: "nb0", } sysOps := &SysOps{