Skip to content

[client] Change default interface name from wt0 to nb0 #4184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lixmal
Copy link
Collaborator

@lixmal lixmal commented Jul 21, 2025

Describe your changes

Issue ticket number and link

Stack

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.

@Copilot Copilot AI review requested due to automatic review settings July 21, 2025 15:59
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR changes the default WireGuard interface name from "wt0" to "nb0" across the NetBird client codebase. This appears to be a branding change to better align the interface naming with the NetBird product name.

Key changes:

  • Updates the default interface name constant from "wt0" to "nb0"
  • Updates interface blacklist to include both old and new naming conventions
  • Updates test mocks and fixtures to use the new naming convention

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
client/iface/configurer/name.go Updates the WgInterfaceDefault constant from "wt0" to "nb0"
client/internal/config.go Adds "nb" to the interface blacklist while keeping "wt" for compatibility
client/internal/engine_test.go Updates test interface name generation to use "nb" prefix
client/internal/netflow/manager_test.go Updates mock interface name from "wt0" to "nb0"
client/internal/routemanager/systemops/systemops_test.go Updates test fixture interface name from "wt0" to "nb0"

Copy link

@Robert4908
Copy link

This would break a lot of our firewall (ufw) exceptions!

@lixmal
Copy link
Collaborator Author

lixmal commented Jul 22, 2025

@Robert4908 this doesn't affect existing installations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants