netbirdio/netbird · error
flush v6 acl
Error message
flush v6 acl: %w
What it means
Flushing the IPv6 aclManager buffer failed during manager Flush. The v4 flush succeeded but the v6 ruleset changes were not committed, leaving v4 and v6 in inconsistent states. Only raised when the manager has v6.
Solutions
- Retry Flush to re-commit the v6 batch
- Check kernel nftables v6 support
- Recreate the manager if the v6 table was externally removed
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at client/firewall/nftables/manager_linux.go:555 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/9c215e8518f8310c.
Report an issue: GitHub.
Appendix: source
Thrown at client/firewall/nftables/manager_linux.go:555
func (m *Manager) DisableRouting() error {
return m.router.ipFwdState.ReleaseRouting()
}
// Flush rule/chain/set operations from the buffer
//
// Method also get all rules after flush and refreshes handle values in the rulesets
// todo review this method usage
func (m *Manager) Flush() error {
m.mutex.Lock()
defer m.mutex.Unlock()
if err := m.aclManager.Flush(); err != nil {
return err
}
if m.hasIPv6() {
if err := m.aclManager6.Flush(); err != nil {
return fmt.Errorf("flush v6 acl: %w", err)
}
}
if err := m.refreshNoTrackChains(); err != nil {
log.Errorf("failed to refresh notrack chains: %v", err)
}
return nil
}
// AddDNATRule adds a DNAT rule
func (m *Manager) AddDNATRule(rule firewall.ForwardRule) (firewall.Rule, error) {
m.mutex.Lock()
defer m.mutex.Unlock()
if rule.TranslatedAddress.Is6() {
if !m.hasIPv6() {
return nil, fmt.Errorf("add DNAT rule: %w", firewall.ErrIPv6NotInitialized)View on GitHub (pinned to 93e97f4bf1)