[Feature] Country (GeoIP) based rules in firewall for TCP/UDP ports
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
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di 1Panel-dev/1Panel
-
[Bug] Unable to Configure the Website Directory When Installing OpenRestyForse già presa @wanghe-fit2cloud l’ha presa 1 giorno fa. Apertatype: question
1Panel-dev/1Panel#14084 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[Feature] Add RPM, QPS, and TPM Limits to AI GatewayForse già presa @wanghe-fit2cloud l’ha presa 2 giorni fa. Apertatype: ai-gateway
1Panel-dev/1Panel#14081 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug] Revoked API Keys Cannot Be DeletedForse già presa @wanghe-fit2cloud l’ha presa 2 giorni fa. Apertatype: feature-request
1Panel-dev/1Panel#14074 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug] The UI language switches to English after deleting a child node in multi-node managementForse già presa @wanghe-fit2cloud l’ha presa 2 giorni fa. Apertastatus: dev-complete status: ready-for-release type: optimization
1Panel-dev/1Panel#14073 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[Feature] Sync PHP Extension Templates Across Nodes in Multi-Node ManagementForse già presa @wanghe-fit2cloud l’ha presa 2 giorni fa. Apertatype: feature-request
1Panel-dev/1Panel#14071 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di 1Panel-dev/1Panel
Issue simili
-
area: watch bug priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
mariadb-operator/mariadb-operator#1962 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
eugenioenko/ttt#919 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
QuantumNous/new-api#7839 ·
I maintainer di solito rispondono entro 1 giorno
-
bug needs-triage service/costoptimizationhub
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
hashicorp/terraform-provider-aws#50507 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno