From e23634a5edcfa8bfcc8ef5d452812d5a7b961f41 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 9 Nov 2025 00:54:53 +0000 Subject: [PATCH] gnu: Add go-github-com-coreos-go-iptables. * gnu/packages/golang-web.scm (go-github-com-coreos-go-iptables): New variable. Change-Id: I49982e86b80fd3291b2946acd1e0eb4f27897dc6 --- gnu/packages/golang-web.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 2e7f20926de7d5ab3bb8d549ee972b4f8ab129af..a2518cc7bdcdae83507b3bb990692fd9dd56d4ff 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -2715,6 +2715,37 @@ configure network interfaces in Linux containers, along with a number of supported plugins.") (license license:asl2.0))) +(define-public go-github-com-coreos-go-iptables + (package + (name "go-github-com-coreos-go-iptables") + (version "0.8.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/coreos/go-iptables") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0xxzqz9np93d8iig5dwjjpb78pqdj74zr91qb11r7g30nkcak5sw")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:tests? #f ;tests need access to iptables + #:import-path "github.com/coreos/go-iptables")) + (home-page "https://github.com/coreos/go-iptables") + (synopsis "Wrapper around iptables utility for Golang") + (description + "This package provides 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.") + (license license:asl2.0))) + (define-public go-github-com-coreos-go-oidc (package (name "go-github-com-coreos-go-oidc")