[PR #1620] compile client under freebsd #3174

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

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

State: closed
Merged: Yes


Describe your changes

Compile netbird client under freebsd and now support netstack and userspace modes.
Refactoring linux specific code to share same code with FreeBSD, move to *_unix.go files.

Not implemented yet:

  • Kernel mode not supported
  • DNS probably does not work yet
  • Routing also probably does not work yet
  • SSH support did not tested yet
  • Lack of test environment for freebsd (dedicated VM for github runners under FreeBSD required)
  • Lack of tests for freebsd specific code
  • info reporting need to review and also implement, for example OS reported as GENERIC instead of FreeBSD (lack of FreeBSD icon in management interface)
  • Lack of proper client setup under FreeBSD
  • Lack of FreeBSD port/package

https://github.com/netbirdio/netbird/issues/1505

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/1620 **State:** closed **Merged:** Yes --- ## Describe your changes Compile netbird client under freebsd and now support netstack and userspace modes. Refactoring linux specific code to share same code with FreeBSD, move to *_unix.go files. Not implemented yet: - Kernel mode not supported - DNS probably does not work yet - Routing also probably does not work yet - SSH support did not tested yet - Lack of test environment for freebsd (dedicated VM for github runners under FreeBSD required) - Lack of tests for freebsd specific code - info reporting need to review and also implement, for example OS reported as GENERIC instead of FreeBSD (lack of FreeBSD icon in management interface) - Lack of proper client setup under FreeBSD - Lack of FreeBSD port/package ## Issue ticket number and link https://github.com/netbirdio/netbird/issues/1505 ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [x] 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:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#3174