|
5 meses atrás | |
---|---|---|
.github | 6 meses atrás | |
iptables | 9 meses atrás | |
.gitignore | 6 anos atrás | |
DCO | 7 anos atrás | |
LICENSE | 10 anos atrás | |
NOTICE | 7 anos atrás | |
README.md | 2 anos atrás | |
build | 1 ano atrás | |
code-of-conduct.md | 7 anos atrás | |
go.mod | 4 anos atrás | |
test | 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.