Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Feature] Country (GeoIP) based rules in firewall for TCP/UDP ports

Đang mở
#14,087 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@wanghe-fit2cloud đang làm issue này rồi.

Từ ngày 14/10/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

type: feature-request
1Panel Version

v2.3.2

Please describe your needs or suggestions for improvements

I would like to be able to block or allow traffic by country (GeoIP) directly in
Host → Firewall, for specific ports (e.g. TCP 853 for DNS-over-TLS, SSH, custom
services).

Currently the firewall page only supports port rules and individual IP/CIDR rules.
Country-based filtering exists only in the Website WAF, which covers HTTP(S) via
OpenResty and not raw TCP/UDP ports. Users running non-HTTP services therefore
have to maintain nftables/ipset scripts by hand, and those rules are not visible
in the 1Panel UI.

Please describe the solution you suggest

Add a "Country" rule type to the firewall page (works with both iptables and
nftables backends):

  • Allow or deny by country code (ISO 3166-1), per port/protocol
  • Allowlist mode (allow DK, drop everything else) and denylist mode
  • Automatic GeoIP list updates (e.g. daily) using ipset/nft sets, with a failure
    fallback so an empty list never locks the user out
  • Optional ASN-based blocking (e.g. hosting providers)
  • Rules visible and editable in the firewall UI
  • Safety check that warns before blocking the country/IP the user is
    currently connected from
Additional Information

No response

Ngôn ngữ chính
Go
Star
37.1k
Fork
3.4k
Merge trung bình
11 giờ 40 phút
Pull request đã merge (30 ngày)
95

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của 1Panel-dev/1Panel

Tất cả issue của 1Panel-dev/1Panel

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.