Đứcjaneczku/go-ipset
:fire: Go bindings for the IPtables ipset http://ipset.netfilter.org userspace utility
🔧 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.
Get up and running with Inkling, Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
Skynet - IPv4 firewall protection, threat feeds and traffic visibility for Asuswrt-Merlin. Manage your network through the WebUI or SSH.
⚔️🧱🔥🛑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
iptables/netfilter firewall for Linux servers with stateful filtering, trust system, ipset block lists, SYN flood protection, VNET per-IP policies, and Docker support