netbirdio/netbird · error

list of tables

Error message

list of tables: %w

What it means

Listing the nftables tables of a specific family failed while createWorkTableFamily was looking for an existing NetBird table to reuse or delete. This is typically a netlink/permission problem; without the listing the manager cannot safely create or replace the work table, so initialization stops before any rules are installed.

Solutions

  1. Retry table creation
  2. Check nftables kernel support and permissions
  3. Ensure no other process is flooding netlink
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at client/firewall/nftables/manager_linux.go:852 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/bbe06724e1ba458d. Report an issue: GitHub.

Appendix: source

Thrown at client/firewall/nftables/manager_linux.go:852

		switch c.Name {
		case chainNameRawOutput:
			m.notrackOutputChain = c
		case chainNameRawPrerouting:
			m.notrackPreroutingChain = c
		}
	}

	return nil
}

func (m *Manager) createWorkTable() (*nftables.Table, error) {
	return m.createWorkTableFamily(nftables.TableFamilyIPv4)
}

func (m *Manager) createWorkTableFamily(family nftables.TableFamily) (*nftables.Table, error) {
	tables, err := m.rConn.ListTablesOfFamily(family)
	if err != nil {
		return nil, fmt.Errorf("list of tables: %w", err)
	}

	tableName := getTableName()
	for _, t := range tables {
		if t.Name == tableName {
			m.rConn.DelTable(t)
		}
	}

	table := m.rConn.AddTable(&nftables.Table{Name: tableName, Family: family})
	err = m.rConn.Flush()
	return table, err
}

func insertReturnTrafficRule(conn *nftables.Conn, table *nftables.Table, chain *nftables.Chain) {
	rule := &nftables.Rule{
		Table: table,
		Chain: chain,

View on GitHub (pinned to 93e97f4bf1)