MCPcopy Index your code
hub / github.com/google/nftables

github.com/google/nftables @v0.3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.3.0 ↗ · + Follow
630 symbols 3,316 edges 91 files 165 documented · 26% 18 cross-repo links updated 5d ago★ 1,34021 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Build Status GoDoc

This is not the correct repository for issues with the Linux nftables project! This repository contains a third-party Go package to programmatically interact with nftables. Find the official nftables website at https://wiki.nftables.org/

This package manipulates Linux nftables (the iptables successor). It is implemented in pure Go, i.e. does not wrap libnftnl.

This is not an official Google product.

Breaking changes

This package is in very early stages, and only contains enough data types and functions to install very basic nftables rules. It is likely that mistakes with the data types/API will be identified as more functionality is added.

Contributions

Contributions are very welcome!

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 286
Function 213
Struct 80
TypeAlias 43
FuncType 4
Interface 4

Languages

Go100%

Modules by API surface

nftables_test.go94 symbols
obj.go29 symbols
expr/expr.go25 symbols
binaryutil/binaryutil.go25 symbols
alignedbuff/alignedbuff.go25 symbols
set.go23 symbols
conn.go20 symbols
expr/ct.go18 symbols
monitor.go16 symbols
xt/match_conntrack.go15 symbols
chain.go15 symbols
table.go13 symbols

For agents

$ claude mcp add nftables \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page