MCPcopy Index your code
hub / github.com/coreos/go-iptables

github.com/coreos/go-iptables @v0.8.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.8.0 ↗ · + Follow
78 symbols 265 edges 3 files 48 documented · 62% 43 cross-repo links updated 21mo agov0.8.0 · 2024-08-27★ 1,21817 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

go-iptables

GoDoc Build status

Go bindings for iptables utility.

In-kernel netfilter does not have a good userspace API. The tables are manipulated via setsockopt that sets/replaces the entire table. Changes to existing table need to be resolved by userspace code which is difficult and error-prone. Netfilter developers heavily advocate using iptables utlity for programmatic manipulation.

go-iptables wraps invocation of iptables utility with functions to append and delete rules; create, clear and delete chains.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 39
Function 31
Struct 5
FuncType 1
Interface 1
TypeAlias 1

Languages

Go100%

Modules by API surface

iptables/iptables.go54 symbols
iptables/iptables_test.go16 symbols
iptables/lock.go8 symbols

For agents

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

⬇ download graph artifact

Ask about this repo answers extend the page