Casey Callendrello 04669a0474 Merge pull request #126 from coreosbot-releng/repo-templates | há 1 mês atrás | |
---|---|---|
.github | há 1 mês atrás | |
iptables | há 4 meses atrás | |
.gitignore | há 5 anos atrás | |
DCO | há 6 anos atrás | |
LICENSE | há 9 anos atrás | |
NOTICE | há 6 anos atrás | |
README.md | há 2 anos atrás | |
build | há 11 meses atrás | |
code-of-conduct.md | há 6 anos atrás | |
go.mod | há 3 anos atrás | |
test | há 1 ano atrás |
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.