{"record":{"id":"b18aae48fbbd2007","repo":"netbirdio/netbird","slug":"add-output-jump-rule-w","errorCode":null,"errorMessage":"add output jump rule: %w","messagePattern":"add output jump rule: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"client/firewall/iptables/manager_linux.go","lineNumber":602,"sourceCode":"\treturn nil\n}\n\nfunc (m *Manager) initNoTrackChain() error {\n\tif err := m.cleanupNoTrackChain(); err != nil {\n\t\tlog.Debugf(\"cleanup notrack chain: %v\", err)\n\t}\n\n\tif err := m.ipv4Client.NewChain(tableRaw, chainNameRaw); err != nil {\n\t\treturn fmt.Errorf(\"create chain: %w\", err)\n\t}\n\n\tjumpRule := []string{\"-j\", chainNameRaw}\n\n\tif err := m.ipv4Client.InsertUnique(tableRaw, chainOUTPUT, 1, jumpRule...); err != nil {\n\t\tif delErr := m.ipv4Client.DeleteChain(tableRaw, chainNameRaw); delErr != nil {\n\t\t\tlog.Debugf(\"delete orphan chain: %v\", delErr)\n\t\t}\n\t\treturn fmt.Errorf(\"add output jump rule: %w\", err)\n\t}\n\n\tif err := m.ipv4Client.InsertUnique(tableRaw, chainPREROUTING, 1, jumpRule...); err != nil {\n\t\tif delErr := m.ipv4Client.DeleteIfExists(tableRaw, chainOUTPUT, jumpRule...); delErr != nil {\n\t\t\tlog.Debugf(\"delete output jump rule: %v\", delErr)\n\t\t}\n\t\tif delErr := m.ipv4Client.DeleteChain(tableRaw, chainNameRaw); delErr != nil {\n\t\t\tlog.Debugf(\"delete orphan chain: %v\", delErr)\n\t\t}\n\t\treturn fmt.Errorf(\"add prerouting jump rule: %w\", err)\n\t}\n\n\tm.rawSupported = true\n\treturn nil\n}\n\nfunc (m *Manager) cleanupNoTrackChain() error {\n\texists, err := m.ipv4Client.ChainExists(tableRaw, chainNameRaw)","sourceCodeStart":584,"sourceCodeEnd":620,"githubUrl":"https://github.com/netbirdio/netbird/blob/93e97f4bf1ad715072dcb3fb6cdb1763431b5a9c/client/firewall/iptables/manager_linux.go#L584-L620","documentation":"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.","triggerScenarios":"Thrown at client/firewall/iptables/manager_linux.go:602 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"93e97f4bf1ad715072dcb3fb6cdb1763431b5a9c","analyzedAt":"2026-08-16T03:09:19.136Z","contentChangedAt":"2026-08-16T03:09:19.136Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}