[PR #1467] Add support for setting interface name and wireguard port #3123

Open
opened 2025-11-20 08:05:01 -05:00 by saavagebueno · 0 comments
Owner

Original Pull Request: https://github.com/netbirdio/netbird/pull/1467

State: closed
Merged: Yes


Describe your changes

This PR adds support for setting the wireguard interface name and port with the netbird up command

e.g.:
Setting custom interface name:

netbird down
netbird up --interface-name utun101

Setting custom Wireguard port:

netbird down
netbird up  --wireguard-port 51822

Setting custom interface name and port with environment variables:

netbird down
export NB_INTERFACE_NAME=utun103 
export NB_WIREGUARD_PORT=52000
netbird up

Setting custom interface name and port in foreground:

sudo netbird up -F --interface-name utun101  --wireguard-port 51822

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
**Original Pull Request:** https://github.com/netbirdio/netbird/pull/1467 **State:** closed **Merged:** Yes --- ## Describe your changes This PR adds support for setting the wireguard interface name and port with the `netbird up` command e.g.: **Setting custom interface name**: ```shell netbird down netbird up --interface-name utun101 ``` **Setting custom Wireguard port**: ```shell netbird down netbird up --wireguard-port 51822 ``` **Setting custom interface name and port with environment variables**: ```shell netbird down export NB_INTERFACE_NAME=utun103 export NB_WIREGUARD_PORT=52000 netbird up ``` **Setting custom interface name and port in foreground**: ```shell sudo netbird up -F --interface-name utun101 --wireguard-port 51822 ``` ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary
saavagebueno added the pull-request label 2025-11-20 08:05:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#3123