netbirdio/netbird · error
add output jump rule
Error message
add output jump rule: %w
What it means
Inserting the jump rule that sends OUTPUT traffic into the NetBird raw NOTRACK chain failed. The freshly created empty chain is deleted before returning so no orphan chain is left in the raw table; this error means the whole NOTRACK setup failed and callers must treat loopback proxy traffic as not exempt from conntrack.
Solutions
- Check iptables OUTPUT chain accessibility and privileges
- Look for concurrent firewall tooling holding the xtables lock
- Restart the daemon to retry the whole notrack setup
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at client/firewall/iptables/manager_linux.go:602 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/b18aae48fbbd2007.
Report an issue: GitHub.
Appendix: source
Thrown at client/firewall/iptables/manager_linux.go:602
return nil
}
func (m *Manager) initNoTrackChain() error {
if err := m.cleanupNoTrackChain(); err != nil {
log.Debugf("cleanup notrack chain: %v", err)
}
if err := m.ipv4Client.NewChain(tableRaw, chainNameRaw); err != nil {
return fmt.Errorf("create chain: %w", err)
}
jumpRule := []string{"-j", chainNameRaw}
if err := m.ipv4Client.InsertUnique(tableRaw, chainOUTPUT, 1, jumpRule...); err != nil {
if delErr := m.ipv4Client.DeleteChain(tableRaw, chainNameRaw); delErr != nil {
log.Debugf("delete orphan chain: %v", delErr)
}
return fmt.Errorf("add output jump rule: %w", err)
}
if err := m.ipv4Client.InsertUnique(tableRaw, chainPREROUTING, 1, jumpRule...); err != nil {
if delErr := m.ipv4Client.DeleteIfExists(tableRaw, chainOUTPUT, jumpRule...); delErr != nil {
log.Debugf("delete output jump rule: %v", delErr)
}
if delErr := m.ipv4Client.DeleteChain(tableRaw, chainNameRaw); delErr != nil {
log.Debugf("delete orphan chain: %v", delErr)
}
return fmt.Errorf("add prerouting jump rule: %w", err)
}
m.rawSupported = true
return nil
}
func (m *Manager) cleanupNoTrackChain() error {
exists, err := m.ipv4Client.ChainExists(tableRaw, chainNameRaw)View on GitHub (pinned to 93e97f4bf1)