summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-11-09 00:54:53 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-11-09 09:10:06 +0000
commite23634a5edcfa8bfcc8ef5d452812d5a7b961f41 (patch)
treec569bfb65f3f9c724b57a6a1622551f2ebe0ddde
parent5b8cd910b732ee041b39e1f42df09515b19e5b50 (diff)
gnu: Add go-github-com-coreos-go-iptables.
* gnu/packages/golang-web.scm (go-github-com-coreos-go-iptables): New variable. Change-Id: I49982e86b80fd3291b2946acd1e0eb4f27897dc6
-rw-r--r--gnu/packages/golang-web.scm31
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 2e7f20926de..a2518cc7bdc 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")