RepositoryGoDEĐức
janeczku

janeczku/go-ipset

:fire: Go bindings for the IPtables ipset http://ipset.netfilter.org userspace utility

127sao
53fork
2issue
1lượt xem

🔧 go-ipset: Điều khiển ipset của iptables từ Go

Thư viện Go đơn giản để tạo và quản lý ipset kiểu hash từ trong mã Go.

go-ipset là một thư viện Go cung cấp giao diện để các chương trình Go dễ dàng thao tác với ipset — công cụ userspace của iptables. Hiện tại chỉ hỗ trợ các ipset kiểu hash. Yêu cầu ipset kernel module và tiện ích userspace phiên bản 6.0 trở lên.

✨ Điểm nổi bật

  • Tạo ipset mới: ipset.New("customers", "hash:ip", &ipset.Params{})
  • Thêm mục nhập: customers.Add("8.8.2.2")
  • Làm mới toàn bộ: customers.Refresh(ips)
  • Xóa mục nhập: customers.Del("8.8.8.8")
  • Cấu hình nâng cao: HashFamily, HashSize, MaxElem, Timeout
  • Liệt kê mục nhập: ipset.List("customers")

💡 Vì sao đáng chú ý

go-ipset giúp bỏ qua công đoạn gọi lệnh shell để quản lý ipset, thay vào đó cung cấp API Go nguyên sinh. Phù hợp cho các công cụ tự động hóa, giới hạn IP, hoặc tích hợp vào hệ thống firewall dựa trên Go.


#Go #iptables #ipset #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryGo
avelino/awesome-go

A curated list of awesome Go frameworks, libraries and software

197.2k
Dec 2, 2026
RepositoryGo
ollama/ollama

Get up and running with Inkling, Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

188.9k
Dec 2, 2026
Repository
stamparm/ipsum

Daily feed of bad IPs (with blacklist hit scores)

2.4k
Dec 1, 2026
RepositoryShell
firehol/firehol

A firewall for humans...

1.6k
Mar 31, 2026
RepositoryPython
firewalld/firewalld

Stateful zone based firewall daemon with D-Bus interface

1.1k
Oct 31, 2026
RepositoryShell
Adamm00/IPSet_ASUS

Skynet - IPv4 firewall protection, threat feeds and traffic visibility for Asuswrt-Merlin. Manage your network through the WebUI or SSH.

447
Oct 31, 2026
RepositoryShell
AliDbg/IPBAN

⚔️🧱🔥🛑IP BAN Block Allow GEOIP country traffic limit server input/output to IP countries with iptables+xt_geoip, auto db-ip update, firewall fail2ban gfw ufw cidr blacklist netfilter rules persistent restrict netaddr xtables linux debian ubuntu apache nginx web server anti hack ddos firewalld ipblocks ipdeny ip ranges MaxMind ipset

152
Feb 1, 2024
RepositoryShell
maravento/blackip

IPv4 Blacklist for Ipset or Squid-Cache

116
Nov 22, 2026
RepositoryShell
rfxn/advanced-policy-firewall

iptables/netfilter firewall for Linux servers with stateful filtering, trust system, ipset block lists, SYN flood protection, VNET per-IP policies, and Docker support

116
May 22, 2026