https://github.com/coreos/go-iptables
Go wrapper around iptables utility
https://github.com/coreos/go-iptables
Last synced: 11 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 (about 10 years ago)
- Default Branch: main
- Last Pushed: 2024-10-15T10:32:59.000Z (7 months ago)
- Last Synced: 2025-04-11T10:24:45.681Z (22 days ago)
- Language: Go
- Size: 130 KB
- Stars: 1,180
- Watchers: 35
- Forks: 259
- Open Issues: 26
-
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
[](https://godoc.org/github.com/coreos/go-iptables/iptables)
[](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.