Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coreos/go-iptables
Go wrapper around iptables utility
https://github.com/coreos/go-iptables
Last synced: 24 days ago
JSON representation
Go wrapper around iptables utility
- Host: GitHub
- URL: https://github.com/coreos/go-iptables
- Owner: coreos
- License: apache-2.0
- Created: 2015-02-05T00:41:08.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-03-28T22:19:18.000Z (3 months ago)
- Last Synced: 2024-05-09T20:28:18.797Z (about 1 month ago)
- Language: Go
- Size: 124 KB
- Stars: 1,069
- Watchers: 35
- Forks: 255
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: code-of-conduct.md
Lists
- my-awesome-stars - coreos/go-iptables - Go wrapper around iptables utility (Go)
- awesome-stars - coreos/go-iptables - Go wrapper around iptables utility (Go)
- awesome-repositories - coreos/go-iptables - Go wrapper around iptables utility (Go)
README
# go-iptables
[![GoDoc](https://godoc.org/github.com/coreos/go-iptables/iptables?status.svg)](https://godoc.org/github.com/coreos/go-iptables/iptables)
[![Build status](https://github.com/coreos/go-iptables/actions/workflows/go.yml/badge.svg)](https://github.com/coreos/go-iptables/actions/workflows/go.yml)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.