coreos/go-iptables

Name: go-iptables

Owner: CoreOS

Description: Go wrapper around iptables utility

Created: 2015-02-05 00:41:08.0

Updated: 2018-05-21 14:30:16.0

Pushed: 2018-02-21 14:31:11.0

Homepage: null

Size: 62

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.