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: 6 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 (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2024-10-15T10:32:59.000Z (3 months ago)
- Last Synced: 2025-01-04T10:35:25.712Z (15 days ago)
- Language: Go
- Size: 130 KB
- Stars: 1,155
- Watchers: 35
- Forks: 259
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: code-of-conduct.md
Awesome Lists containing this project
- 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.