|
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.