|
1 년 전 | |
---|---|---|
.github | 1 년 전 | |
iptables | 1 년 전 | |
.gitignore | 6 년 전 | |
DCO | 7 년 전 | |
LICENSE | 10 년 전 | |
NOTICE | 7 년 전 | |
README.md | 2 년 전 | |
build | 9 년 전 | |
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.