protect against dns rebinds

This commit is contained in:
Kyattsukuro 2026-01-21 14:37:26 +01:00
parent ff3881428c
commit c558d7b62c
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: "true"
traefik.http.routers.traefik-dashboard.tls.certresolver: hetzner traefik.http.routers.traefik-dashboard.tls.certresolver: hetzner
traefik.http.routers.traefik-dashboard.service: api@internal traefik.http.routers.traefik-dashboard.service: api@internal
traefik.http.routers.traefik-dashboard.middlewares: traefik-auth@file traefik.http.routers.traefik-dashboard.middlewares: traefik-auth@file, local-only@file
volumes: volumes:
traefik-certs: traefik-certs:

View File

@ -38,3 +38,9 @@ http:
redirectRegex: redirectRegex:
regex: "^http(s?)://(.+\\.)?urmel\\.duckdns\\.org(:[0-9]+)?(/.*$|$)" regex: "^http(s?)://(.+\\.)?urmel\\.duckdns\\.org(:[0-9]+)?(/.*$|$)"
replacement: "http${1}://${2}urmel.de${3}${4}" 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"