[PR #5841] fix: set suppress_prefixlength to 8 for rule 105 #26927

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/5841
Author: @LokoMoloko98
Created: 4/9/2026
Status: 🔄 Open

Base: mainHead: kartoza/fix-suppress-prefixlen


📝 Commits (1)

  • 2ce56be fix: set suppress_prefixlength to 8 for rule 105

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 client/internal/routemanager/systemops/systemops_linux.go (+2 -2)

📄 Description

DigitalOcean injects catch-all RFC 1918 routes (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) via vpc-peering.service at boot. With suppress_prefixlength 0, these broad routes win over NetBird's specific /24 routes in the netbird table, breaking cross-cloud routing.

Setting suppress_prefixlength to 8 causes the kernel to suppress any route with a prefix <= 8 bits when checking the main table (rule 105), allowing NetBird's more-specific /24 routes in the netbird table (rule 110) to take effect.

Affects: DO VPC environments (and any cloud that injects broad RFC 1918 catch-all routes).

Describe your changes

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)

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

Documentation

Select exactly one:

  • I added/updated documentation for this change
  • Documentation is not needed for this change (explain why)

Docs PR URL (required if "docs added" is checked)

Paste the PR link from https://github.com/netbirdio/docs here:

https://github.com/netbirdio/docs/pull/__

Summary by CodeRabbit

  • Bug Fixes
    • Updated network rule configurations to improve IP routing consistency on Linux systems.

🔄 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/5841 **Author:** [@LokoMoloko98](https://github.com/LokoMoloko98) **Created:** 4/9/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `kartoza/fix-suppress-prefixlen` --- ### 📝 Commits (1) - [`2ce56be`](https://github.com/netbirdio/netbird/commit/2ce56be494ede32be46690ce8849a8c2aab484da) fix: set suppress_prefixlength to 8 for rule 105 ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/routemanager/systemops/systemops_linux.go` (+2 -2) </details> ### 📄 Description DigitalOcean injects catch-all RFC 1918 routes (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) via vpc-peering.service at boot. With suppress_prefixlength 0, these broad routes win over NetBird's specific /24 routes in the netbird table, breaking cross-cloud routing. Setting suppress_prefixlength to 8 causes the kernel to suppress any route with a prefix <= 8 bits when checking the main table (rule 105), allowing NetBird's more-specific /24 routes in the netbird table (rule 110) to take effect. Affects: DO VPC environments (and any cloud that injects broad RFC 1918 catch-all routes). ## Describe your changes ## Issue ticket number and link ## Stack <!-- branch-stack --> ### Checklist - [x] 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) > By submitting this pull request, you confirm that you have read and agree to the terms of the [Contributor License Agreement](https://github.com/netbirdio/netbird/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT.md). ## Documentation Select exactly one: - [ ] I added/updated documentation for this change - [ ] Documentation is **not needed** for this change (explain why) ### Docs PR URL (required if "docs added" is checked) Paste the PR link from https://github.com/netbirdio/docs here: https://github.com/netbirdio/docs/pull/__ <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Updated network rule configurations to improve IP routing consistency on Linux systems. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <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 07:07:59 -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#26927