Casey Callendrello 04669a0474 Merge pull request #126 from coreosbot-releng/repo-templates | vor 1 Monat | |
---|---|---|
.github | vor 1 Monat | |
iptables | vor 4 Monaten | |
.gitignore | vor 5 Jahren | |
DCO | vor 6 Jahren | |
LICENSE | vor 9 Jahren | |
NOTICE | vor 6 Jahren | |
README.md | vor 2 Jahren | |
build | vor 11 Monaten | |
code-of-conduct.md | vor 6 Jahren | |
go.mod | vor 3 Jahren | |
test | vor 1 Jahr |
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.