|
5 tháng trước cách đây | |
---|---|---|
.github | 6 tháng trước cách đây | |
iptables | 9 tháng trước cách đây | |
.gitignore | 6 năm trước cách đây | |
DCO | 7 năm trước cách đây | |
LICENSE | 10 năm trước cách đây | |
NOTICE | 7 năm trước cách đây | |
README.md | 2 năm trước cách đây | |
build | 1 năm trước cách đây | |
code-of-conduct.md | 7 năm trước cách đây | |
go.mod | 4 năm trước cách đây | |
test | 1 năm trước cách đây |
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.