[PR #2899] [MERGED] [client] Add NB_SKIP_SOCKET_MARK & fix crash instead of returing an error #20837

Open
opened 2026-08-05 05:07:45 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2899
Author: @nazarewk
Created: 11/18/2024
Status: Merged
Merged: 11/19/2024
Merged by: @lixmal

Base: mainHead: allow-disabling-somark


📝 Commits (2)

  • a700fc1 dialer: fix crash instead of returning error
  • 4ed0d72 add NB_SKIP_SOCKET_MARK

📊 Changes

4 files changed (+21 additions, -4 deletions)

View changed files

📝 client/internal/routemanager/systemops/systemops_linux.go (+1 -1)
📝 util/grpc/dialer.go (+7 -2)
📝 util/net/dialer_nonios.go (+1 -1)
📝 util/net/net_linux.go (+12 -0)

📄 Description

Describe your changes

I found some changes laying around on my computer when asked about #2530 (debugging my mobile router), can as well upstream those:

  • allows disabling SO_MARK without disabling other custom routing features
  • makes dialer return an error instead of crashing the process with log.Fatalf

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

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

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/2899 **Author:** [@nazarewk](https://github.com/nazarewk) **Created:** 11/18/2024 **Status:** ✅ Merged **Merged:** 11/19/2024 **Merged by:** [@lixmal](https://github.com/lixmal) **Base:** `main` ← **Head:** `allow-disabling-somark` --- ### 📝 Commits (2) - [`a700fc1`](https://github.com/netbirdio/netbird/commit/a700fc19bb6ad3df233fefec831836c7e04b71ee) dialer: fix crash instead of returning error - [`4ed0d72`](https://github.com/netbirdio/netbird/commit/4ed0d72de459cedd41389b67bad3a7f621e2b542) add NB_SKIP_SOCKET_MARK ### 📊 Changes **4 files changed** (+21 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/routemanager/systemops/systemops_linux.go` (+1 -1) 📝 `util/grpc/dialer.go` (+7 -2) 📝 `util/net/dialer_nonios.go` (+1 -1) 📝 `util/net/net_linux.go` (+12 -0) </details> ### 📄 Description ## Describe your changes I found some changes laying around on my computer when asked about #2530 (debugging my mobile router), can as well upstream those: - allows disabling `SO_MARK` without disabling other custom routing features - makes dialer return an error instead of crashing the process with `log.Fatalf` ## Issue ticket number and link https://github.com/netbirdio/netbird/issues/2530 ### Checklist - [x] 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 05:07:45 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#20837