|
преди 5 месеца | |
---|---|---|
.github | преди 6 месеца | |
iptables | преди 9 месеца | |
.gitignore | преди 6 години | |
DCO | преди 7 години | |
LICENSE | преди 10 години | |
NOTICE | преди 7 години | |
README.md | преди 2 години | |
build | преди 1 година | |
code-of-conduct.md | преди 7 години | |
go.mod | преди 4 години | |
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.