traefik-geoip-filter

traefik-geoip-filter

Docker-Anwendung from Emphyrio's Repository

Übersicht

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

Anforderungen

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

Laufzeit-Argumente

Netzwerk
bridge
Shell
sh
Privilegiert
false

Konfiguration der Vorlage

MaxMind account idVariable

Your (numeric) MaxMind account id

Ziel
MAXMIND_ID
Standard
1234567
MaxMind license keyVariable

The MaxMind license key you generated

Ziel
MAXMIND_KEY
Standard
long_string_of_gibberish
Filter typeVariable

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

Ziel
FILTER_TYPE
Standard
allow
Wert
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

Ziel
COUNTRY_CODES
Standard
NL DE BE LU
Wert
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

Ziel
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.

Ziel
EXTRA_IPS
Appdata folderPathrw

Location to store Geolite2 databases

Ziel
/geoip
Standard
/mnt/user/appdata/traefik-geoip-filter
Wert
/mnt/user/appdata/traefik-geoip-filter

Einzelheiten

Repository
mpdcampbell/traefik-geoip-filter
Zuletzt aktualisiert2026-05-31
Erstmals gesehen2026-05-16

Führen Sie traefik-geoip-filter auf Unraid aus.

traefik-geoip-filter ist gelistet in Community Apps für Unraid OS. Erkunden Sie Unraid, um einen flexiblen Heimserver, ein NAS oder ein Heimlabor aufzubauen.