[Feature] Country (GeoIP) based rules in firewall for TCP/UDP ports
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ả
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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của 1Panel-dev/1Panel
-
[Feature] 防跨站攻击增加PHP_ADMIN_VALUE配置Có thể đã có người làm @wanghe-fit2cloud đã nhận hôm nay. Đang mở
1Panel-dev/1Panel#14112 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Feature] 增加批量修改网站PHP版本的功能Có thể đã có người làm @wanghe-fit2cloud đã nhận hôm nay. Đang mở
1Panel-dev/1Panel#14111 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Feature] 应用商店增加 WeKnoraCó thể đã có người làm @wanghe-fit2cloud đã nhận hôm nay. Đang mở
1Panel-dev/1Panel#14110 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Feature] 任务中心终止任务Có thể đã có người làm @wanghe-fit2cloud đã nhận hôm nay. Đang mở
1Panel-dev/1Panel#14107 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] docker拉取镜像失败Có thể đã có người làm @wanghe-fit2cloud đã nhận 1 ngày trước. Đang mở
1Panel-dev/1Panel#14106 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của 1Panel-dev/1Panel
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation hacktoberfest priority: low skill: good first issue status: ready for dev
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 85/100
hyperledger-labs/fabric-smart-client#2142 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
numberly/vault-db-injector#107 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/import kind/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[DOC] Wrong sg_egress_ports range in the Terraform Databricks Guide for AWS Hub & Spoke with Network FirewallCó thể đã có người làm @akhil9tiet đã nhận hôm nay. Đang mởdocs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
databricks/terraform-provider-databricks#6080 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày