Casey Callendrello 04669a0474 Merge pull request #126 from coreosbot-releng/repo-templates | 1 ماه پیش | |
---|---|---|
.github | 1 ماه پیش | |
iptables | 4 ماه پیش | |
.gitignore | 5 سال پیش | |
DCO | 6 سال پیش | |
LICENSE | 9 سال پیش | |
NOTICE | 6 سال پیش | |
README.md | 2 سال پیش | |
build | 11 ماه پیش | |
code-of-conduct.md | 6 سال پیش | |
go.mod | 3 سال پیش | |
test | 1 سال پیش |
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.