protect against dns rebinds

This commit is contained in:
Kyattsukuro 2026-01-21 14:37:26 +01:00
parent ff3881428c
commit 24bf174003
2 changed files with 8 additions and 2 deletions

View File

@ -33,7 +33,7 @@ services:
traefik.http.routers.traefik-dashboard.tls: "true"
traefik.http.routers.traefik-dashboard.tls.certresolver: hetzner
traefik.http.routers.traefik-dashboard.service: api@internal
traefik.http.routers.traefik-dashboard.middlewares: traefik-auth@file
traefik.http.routers.traefik-dashboard.middlewares: local-only@file, traefik-auth@file
volumes:
traefik-certs:

View File

@ -38,3 +38,9 @@ http:
redirectRegex:
regex: "^http(s?)://(.+\\.)?urmel\\.duckdns\\.org(:[0-9]+)?(/.*$|$)"
replacement: "http${1}://${2}urmel.de${3}${4}"
local-only:
ipAllowList:
sourceRange:
- "10.0.0.0/8"
- "172.16.0.0/12"
- "168.168.0.0/16"