{"record":{"id":"c8b8e49dc8ca3443","repo":"netbirdio/netbird","slug":"create-v6-router-w-c8b8e4","errorCode":null,"errorMessage":"create v6 router: %w","messagePattern":"create v6 router: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"client/firewall/nftables/manager_linux.go","lineNumber":105,"sourceCode":"\n\tif wgIface.Address().HasIPv6() {\n\t\tif err := m.createIPv6Components(tableName, wgIface, mtu); err != nil {\n\t\t\treturn nil, fmt.Errorf(\"create IPv6 firewall: %w\", err)\n\t\t}\n\t}\n\n\tm.extMonitor = newExternalChainMonitor(m)\n\n\treturn m, nil\n}\n\nfunc (m *Manager) createIPv6Components(tableName string, wgIface iFaceMapper, mtu uint16) error {\n\tworkTable6 := &nftables.Table{Name: tableName, Family: nftables.TableFamilyIPv6}\n\n\tvar err error\n\tm.router6, err = newRouter(workTable6, wgIface, mtu)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"create v6 router: %w\", err)\n\t}\n\n\t// Share the per-family forwarding refcounter with the v4 router so a v4\n\t// rule and a v6 rule against the same state machine cooperate cleanly.\n\tm.router6.ipFwdState = m.router.ipFwdState\n\n\tm.aclManager6, err = newAclManager(workTable6, wgIface, chainNameRoutingFw)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"create v6 acl manager: %w\", err)\n\t}\n\n\treturn nil\n}\n\n// hasIPv6 reports whether the manager has IPv6 components initialized.\nfunc (m *Manager) hasIPv6() bool {\n\treturn m.router6 != nil\n}","sourceCodeStart":87,"sourceCodeEnd":123,"githubUrl":"https://github.com/netbirdio/netbird/blob/93e97f4bf1ad715072dcb3fb6cdb1763431b5a9c/client/firewall/nftables/manager_linux.go#L87-L123","documentation":"Error \"create v6 router: %w\" thrown in netbirdio/netbird.","triggerScenarios":"Thrown at client/firewall/nftables/manager_linux.go:105 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"93e97f4bf1ad715072dcb3fb6cdb1763431b5a9c","analyzedAt":"2026-08-16T03:09:19.136Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}