Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#14,087 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@wanghe-fit2cloud ci sta già lavorando.

Dal 14/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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

Lingua principale
Go
Stelle
37.1k
Fork
3.4k
Merge medio
11h 49m
PR unite (30g)
94

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di 1Panel-dev/1Panel

Tutte le issue di 1Panel-dev/1Panel

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.