firewallnft

package
v0.0.0-...-9e3298e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2026 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Overview

Package firewallnft implements the firewall backend using google/nftables. It translates ze's abstract expression types to nftables register operations, reconciles desired state against the kernel (create/replace/delete ze_* tables), and provides read methods (ListTables, GetCounters) for CLI.

All kernel operations are atomic via nftables.Conn.Flush().

Only ze_* tables are touched, with one bounded exception: the tables an earlier ze build wrote WITHOUT the prefix are deleted once, because nothing else can reach them after an upgrade. The exception is bounded twice over. It is decided on three facts together -- the name, the address family, and every chain the table holds -- so a table another tool wrote under one of those names is left alone. And it runs on the FIRST reconcile of the process and on no later one, so it is a migration with an end rather than a standing deletion policy. The list, the decision and the gate live in internal/component/firewall/legacy_tables.go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHealthCheck

func RegisterHealthCheck()

RegisterHealthCheck registers the firewall health check with the default registry.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL