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.