coreos/go-iptables

Go wrapper around iptables utility

Go

1,221

114 commits

updated Oct 15, 2024

See the code

README

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.

Significant stargazers

Stephen Augustus

557 followers · starred Dec 2022

Jimmi Dyson

344 followers · starred Apr 2017

Aaron Prindle

63 followers · starred Apr 2017

Jacob Gillespie

247 followers · starred Apr 2025

coreos/go-iptables

Go wrapper around iptables utility

Go

1,221

114 commits

updated Oct 15, 2024

See the code

README

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.

Significant stargazers

Stephen Augustus

557 followers · starred Dec 2022

Jimmi Dyson

344 followers · starred Apr 2017

Aaron Prindle

63 followers · starred Apr 2017

Jacob Gillespie

247 followers · starred Apr 2025