traefik-geoip-filter

traefik-geoip-filter

Docker 应用程序 from Emphyrio's Repository

概述

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

要求

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

运行时参数

网络
bridge
外壳
sh
特权
false

模板配置

MaxMind account idVariable

Your (numeric) MaxMind account id

目标
MAXMIND_ID
默认值
1234567
MaxMind license keyVariable

The MaxMind license key you generated

目标
MAXMIND_KEY
默认值
long_string_of_gibberish
Filter typeVariable

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

目标
FILTER_TYPE
默认值
allow
价值
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

目标
COUNTRY_CODES
默认值
NL DE BE LU
价值
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

目标
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.

目标
EXTRA_IPS
Appdata folderPathrw

Location to store Geolite2 databases

目标
/geoip
默认值
/mnt/user/appdata/traefik-geoip-filter
价值
/mnt/user/appdata/traefik-geoip-filter

详细信息

存储库
mpdcampbell/traefik-geoip-filter
最后更新2026-05-31
初见2026-05-16

在Unraid 上运行 traefik-geoip-filter 。

traefik-geoip-filter 已被列入Unraid OS 的社区应用程序。探索Unraid ,构建灵活的家庭服务器、NAS 或家庭实验室。