Rust Rewrite Index

nftables

Program to control packet filtering rules by Netfilter project

Rust efforts

Research record · 2026-11-29

Searched nftables nft CLI, libnftables and Rust netfilter implementations. crabtables documents a native Rust nf_tables interface and an nft-syntax CLI called nfcrt; rustables supplies a separate Rust netlink API. Their authors’ compatibility and test claims have not been independently verified; neither finding establishes full nftables suite parity.

Original source check. The packaged source scan found zero files with the .rs suffix. This covers the Debian 13 snapshot and excludes common vendor directories. Independent repositories are outside this count.

Partial rewrite

nfcrt / crabtables

A Rust nf_tables interface and nft-syntax command described by its documentation; full CLI and kernel feature compatibility is unverified.

Evidence checked 2026-11-29
Rust component

rustables

Rust library for constructing nf_tables rules over netlink; it is not the nft command-line suite.

Evidence checked 2026-11-29

Project structure

This software provides an in-kernel packet classification framework that is based on a network-specific Virtual Machine (VM) and the nft userspace command line tool. The nftables framework reuses the existing Netfilter subsystems such as the existing hook infrastructure, the connection tracking system, NAT, userspace queueing and logging subsystem.

Inside the source tree

Source files by extension in this snapshot · C (53), Python (5)

Selected components packaged from this source in Debian 13.

  • nftables · Program to control packet filtering rules by Netfilter project
  • libnftables1 · Netfilter nftables high level userspace API library
  • python3-nftables · nftables/libnftables python3 module
  • libnftables-dev · Development files for libnftables