Hi,
I want to use Fail2Ban plugin for my Traefik 3.0 instance but I get this error "invalid middleware "my-fail2ban@file" configuration: invalid middleware type or middleware does not exist".
Plugin is installed using the static docker compose configuration:
command:
- "--experimental.plugins.enabled=true"
- "--experimental.plugins.fail2ban.modulename=github.com/tomMoulard/fail2ban"
- "--experimental.plugins.fail2ban.version=v0.8.1"
The configuration is in the dynamic conf file (TOML format):
[http]
[http.services]
[http.services.test]
[http.services.test.loadBalancer]
[[http.services.test.loadBalancer.servers]]
url = "https://192.168.0.254:443/"
[http.routers]
[http.routers.test]
entrypoints = "websecure"
rule = "Host(`test.xxxx.xx`)"
service = "test"
middlewares = "my-fail2ban"
[http.middlewares]
[http.middlewares.my-fail2ban]
[http.middlewares.my-fail2ban.plugin]
[http.middlewares.my-fail2ban.plugin.fail2ban]
[http.middlewares.my-fail2ban.plugin.fail2ban.allowlist]
ip = "::1,127.0.0.1"
[http.middlewares.my-fail2ban.plugin.fail2ban.denylist]
ip = "192.168.0.50/32"
[http.middlewares.my-fail2ban.plugin.fail2ban.rules]
bantime = "3h"
enabled = "true"
findtime = "10m"
maxretry = "4"
statuscode = "400,401,403-499"
Could you provide any help?
Thanks!