|
há 5 anos atrás | |
---|---|---|
iptables | há 5 anos atrás | |
.gitignore | há 6 anos atrás | |
.travis.yml | há 7 anos atrás | |
DCO | há 7 anos atrás | |
LICENSE | há 10 anos atrás | |
NOTICE | há 7 anos atrás | |
README.md | há 7 anos atrás | |
build | há 9 anos atrás | |
code-of-conduct.md | há 7 anos atrás | |
test | há 6 anos 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.