Dynamic DNS whitelist plugin for Traefik.
The ddns-whitelist
plugin for Traefik allows you to whitelist dynamic DNS (DDNS) hosts. Requests from IP addresses that do not resolve to the specified DDNS hosts will be denied.
The existing plugins can be browsed into the Plugin Catalog.
To install the ddns-whitelist
plugin, add the following configuration to your Traefik static configuration:
experimental:plugins:ddns-whitelist:moduleName: "github.com/taskmedia/ddns-whitelist"version: v1.2.1
Add the ddns-whitelist
middleware to your Traefik dynamic configuration:
# Dynamic configurationhttp:routers:my-router:rule: host(`demo.localhost`)service: service-fooentryPoints:- webmiddlewares:- ddns-whitelist-routerservices:service-foo:loadBalancer:servers:- url: http://127.0.0.1:5000middlewares:ddns-whitelist-router:plugin:ddns-whitelist:hostList: # hosts to dynamically whitelist via DNS lookup- my.router.ddns.tldipList: # optional IP addresses to whitelist- 1.2.3.4