netbirdio/netbird · error
flush allow input netbird rules
Error message
flush allow input netbird rules: %w
What it means
Flushing the buffered allow-input rules for the netbird interface to the kernel failed inside AllowNetbird. The rules were composed but the netlink batch commit was rejected, so the accept rules for overlay input traffic are not active.
Solutions
- Retry the flush; transient netlink EBUSY failures are common
- Verify the nftables connection is still alive after a long daemon uptime
- Recreate the manager if the table was deleted externally (e.g. by firewall-cmd --reload)
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at client/firewall/nftables/manager_linux.go:457 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of netbirdio/netbird@93e97f4bf1 (2026-08-16).
Data as JSON: /api/errors/588e2d8d714738b6.
Report an issue: GitHub.
Appendix: source
Thrown at client/firewall/nftables/manager_linux.go:457
// which doesn't override DROP rules in external tables (e.g. firewalld).
// Should add passthrough rules to external chains (like the native mode router's
// addExternalChainsRules does) for both the netbird table family and inet tables.
// The netbird table itself is fine (routing chains already exist there), but
// non-netbird tables with INPUT/FORWARD hooks can still DROP our WG traffic.
func (m *Manager) AllowNetbird() error {
m.mutex.Lock()
defer m.mutex.Unlock()
if err := m.aclManager.createDefaultAllowRules(); err != nil {
return fmt.Errorf("create default allow rules: %w", err)
}
if m.hasIPv6() {
if err := m.aclManager6.createDefaultAllowRules(); err != nil {
return fmt.Errorf("create v6 default allow rules: %w", err)
}
}
if err := m.rConn.Flush(); err != nil {
return fmt.Errorf("flush allow input netbird rules: %w", err)
}
if err := firewalld.TrustInterface(m.wgIface.Name()); err != nil {
log.Warnf("failed to trust interface in firewalld: %v", err)
}
return nil
}
// SetLegacyManagement sets the route manager to use legacy management
func (m *Manager) SetLegacyManagement(isLegacy bool) error {
if err := firewall.SetLegacyManagement(m.router, isLegacy); err != nil {
return err
}
if m.hasIPv6() {
return firewall.SetLegacyManagement(m.router6, isLegacy)
}
return nilView on GitHub (pinned to 93e97f4bf1)