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
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

Unlocker (Interface)
(no doc) [2 implementers]
iptables/lock.go

Core symbols most depended-on inside this repo

run
called by 16
iptables/iptables.go
Append
called by 11
iptables/iptables.go
New
called by 9
iptables/iptables.go
ClearChain
called by 9
iptables/iptables.go
DeleteChain
called by 9
iptables/iptables.go
Proto
called by 8
iptables/iptables.go
IsNotExist
called by 7
iptables/iptables.go
Delete
called by 7
iptables/iptables.go

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