[PR #915] Extend protocol and firewall manager to handle old management #2928

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

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

State: closed
Merged: Yes


Describe your changes

With old management, the new clients always will receive an empty list of firewall rules, and by default, we block all traffic. To avoid this, let’s modify the protocol and add FirewallRulesIsEmpty field (same as RemotePeersIsEmpty). When this field is not set and rules are empty, we work with the old management version, and we need to add special rules to input and output chains to allow all traffic.

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/915 **State:** closed **Merged:** Yes --- ## Describe your changes With old management, the new clients always will receive an empty list of firewall rules, and by default, we block all traffic. To avoid this, let’s modify the protocol and add `FirewallRulesIsEmpty` field (same as `RemotePeersIsEmpty`). When this field is not set and rules are empty, we work with the old management version, and we need to add special rules to input and output chains to allow all traffic. ## Issue ticket number and link ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [ ] It is a refactor - [x] 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:04:26 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2928