traefik-geoip-filter

traefik-geoip-filter

Application Docker from Emphyrio's Repository

Vue d'ensemble

A Docker container that works as a GeoIP allow/blocklist middleware for Traefik. Uses the Maxmind GeoLite2 database.

Exigences

Traefik on the same Docker network
Middleware (forwardAuth) configuration in Traefik
Account on MaxMind.com (free)

Arguments d'exécution

Réseau
bridge
Coquille
sh
Privilégié
false

Configuration du modèle

MaxMind account idVariable

Your (numeric) MaxMind account id

Cible
MAXMIND_ID
Défaut
1234567
MaxMind license keyVariable

The MaxMind license key you generated

Cible
MAXMIND_KEY
Défaut
long_string_of_gibberish
Filter typeVariable

Set the filter as an allow or blocklist (possible values: allow, blocklist)

Cible
FILTER_TYPE
Défaut
allow
Valeur
allow
Country codesVariable

List of countries you want to allow/block IPs from, separated by spaces. See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements

Cible
COUNTRY_CODES
Défaut
NL DE BE LU
Valeur
NL DE BE LU
Sub codesVariable

List of locations smaller than a country that you want to allow/block IPs from. Separated by spaces. See https://en.wikipedia.org/wiki/ISO_3166-2#Current_codes

Cible
SUB_CODES
Extra IPsVariable

Append additional IPs to the filter list, separated by spaces. E.g. LAN, Vaultwarden network. E.g. 10.0.0.0/32 172.16.0.0/16 192.168.0.0/24. Optional.

Cible
EXTRA_IPS
Appdata folderPathrw

Location to store Geolite2 databases

Cible
/geoip
Défaut
/mnt/user/appdata/traefik-geoip-filter
Valeur
/mnt/user/appdata/traefik-geoip-filter

Détails

Référentiel
mpdcampbell/traefik-geoip-filter
Dernière mise à jour2026-05-31
Première vue2026-05-16

Exécutez traefik-geoip-filter sur Unraid.

traefik-geoip-filter est listé dans Community Apps pour Unraid OS. Explorez Unraid pour créer un serveur domestique flexible, un NAS ou un laboratoire domestique.