netbirdio/netbird · error
initialize tables
Error message
initialize tables: %v
What it means
Committing the router's chain initialization batch (all routing, mangle, and nat chains plus the initial rules) failed at the final Flush. The whole table setup was rejected in one transaction, leaving the work table without its chains.
Solutions
- Retry router init after clearing the half-built table
- Check kernel logs for which chain/rule in the batch was rejected
- Ensure hook priorities do not conflict with existing chains
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at client/firewall/nftables/router_linux.go:283 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/59f98d514b7b008c.
Report an issue: GitHub.
Appendix: source
Thrown at client/firewall/nftables/router_linux.go:283
Hooknum: nftables.ChainHookPrerouting,
Priority: nftables.ChainPriorityMangle,
Type: nftables.ChainTypeFilter,
})
r.chains[chainNameMangleForward] = r.conn.AddChain(&nftables.Chain{
Name: chainNameMangleForward,
Table: r.workTable,
Hooknum: nftables.ChainHookForward,
Priority: nftables.ChainPriorityMangle,
Type: nftables.ChainTypeFilter,
})
insertReturnTrafficRule(r.conn, r.workTable, r.chains[chainNameRoutingFw])
r.addPostroutingRules()
if err := r.conn.Flush(); err != nil {
return fmt.Errorf("initialize tables: %v", err)
}
if err := r.addMSSClampingRules(); err != nil {
log.Errorf("failed to add MSS clamping rules: %s", err)
}
if err := r.acceptForwardRules(); err != nil {
log.Errorf("failed to add accept rules for the forward chain: %s", err)
}
if err := firewalld.TrustInterface(r.wgIface.Name()); err != nil {
log.Warnf("failed to trust interface in firewalld: %v", err)
}
if err := r.refreshRulesMap(); err != nil {
log.Errorf("failed to refresh rules: %s", err)
}
View on GitHub (pinned to 93e97f4bf1)