k3s/vendor/github.com/coreos/go-iptables
Darren Shepherd fa08d6076c Update vendor
2019-01-11 21:58:27 -07:00
..
iptables Update vendor 2019-01-11 21:58:27 -07:00
.travis.yml Update vendor 2019-01-11 21:58:27 -07:00
build Update vendor 2019-01-11 21:58:27 -07:00
code-of-conduct.md Update vendor 2019-01-11 21:58:27 -07:00
DCO Update vendor 2019-01-11 21:58:27 -07:00
LICENSE Update vendor 2019-01-11 21:58:27 -07:00
NOTICE Update vendor 2019-01-11 21:58:27 -07:00
README.md Update vendor 2019-01-11 21:58:27 -07:00
test Update vendor 2019-01-11 21:58:27 -07:00

go-iptables

GoDoc Build Status

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.