# Fail2Ban Plugin

**URL:** <https://community.traefik.io/t/fail2ban-plugin/16430>\
**Category:** Traefik v2\
**Tags:** middleware, docker\
**Created:** [November 11, 2022, 4:20am UTC](https://community.traefik.io/t/fail2ban-plugin/16430 "2022-11-11T04:20:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hapopoy](https://avatars.discourse-cdn.com/v4/letter/h/fbc32d/32.png) [@hapopoy](https://community.traefik.io/u/hapopoy)\
**Post date:** [November 11, 2022, 4:20am UTC](https://community.traefik.io/t/fail2ban-plugin/16430/1 "2022-11-11T04:20:01Z")

</div>

I have traefik 2.9.4 running. I installed Fail2ban plugin and it seems installed properly.  
How do I know if it is working and protecting the other apps proxied in traefik?

Despite numerous failed login attempts to traefik, my IP address was not blocked.

[![](https://pasteboard.co/qYMJkeGyqs10.png) ](https://pasteboard.co/qYMJkeGyqs10.png)

---

<div class="post-metadata">

**Author:** ![dberardo-com](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/dberardo-com/32/6346_2.png) [@dberardo-com](https://community.traefik.io/u/dberardo-com)\
**Post date:** [February 23, 2023, 9:30pm UTC](https://community.traefik.io/t/fail2ban-plugin/16430/2 "2023-02-23T21:30:07Z")

</div>

how did you manage to install fail2ban ? i get this error: [Unable to download plugins via traefik pilot · Issue #8004 · traefik/traefik · GitHub](https://github.com/traefik/traefik/issues/8004)

---

<div class="post-metadata">

**Author:** ![svx](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/svx/32/6429_2.png) [@svx](https://community.traefik.io/u/svx)\
**Post date:** [February 24, 2023, 8:40am UTC](https://community.traefik.io/t/fail2ban-plugin/16430/3 "2023-02-24T08:40:06Z")

</div>

Hi @dberardo-com,  
Thanks for your interest in Traefik!

You can browse to the [overview page of the FAIL2BAN plugin](https://plugins.traefik.io/plugins/628c9ebcffc0cd18356a979f/fail2-ban) and select **Install Plugin**

![SCR-20230224-dda](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/1/196608c8c79888170f596d9c07d53ac97786676f.png)

From there, just follow the approach which fits your setup.

---

<div class="post-metadata">

**Author:** ![dberardo-com](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/dberardo-com/32/6346_2.png) [@dberardo-com](https://community.traefik.io/u/dberardo-com)\
**Post date:** [February 24, 2023, 9:03am UTC](https://community.traefik.io/t/fail2ban-plugin/16430/4 "2023-02-24T09:03:42Z")

</div>

well thats exactly what i did, but as you can see from the link in my post above, the pod tries to download the plgin file from traefik repo and not from github and so the download fails ... i am using the exact same configuration (2 lines) as in the install plugin banner

---

<div class="post-metadata">

**Author:** ![svx](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/svx/32/6429_2.png) [@svx](https://community.traefik.io/u/svx)\
**Post date:** [February 24, 2023, 9:20am UTC](https://community.traefik.io/t/fail2ban-plugin/16430/5 "2023-02-24T09:20:29Z")

</div>

Hi @dberardo-com,

Could you please provide more information?

- Do you use static or dynamic configuration?
- Do you use Docker or Kubernetes?
- Could you please paste the log output in DEBUG level (`--log.level=DEBUG` switch)

Thanks!

---

<div class="post-metadata">

**Author:** ![dberardo-com](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/dberardo-com/32/6346_2.png) [@dberardo-com](https://community.traefik.io/u/dberardo-com)\
**Post date:** [February 24, 2023, 9:32am UTC](https://community.traefik.io/t/fail2ban-plugin/16430/6 "2023-02-24T09:32:50Z")

</div>

sure, i have provided details over here, but the issue was closed ... [Not able to use fail2ban plugin · Issue #9744 · traefik/traefik · GitHub](https://github.com/traefik/traefik/issues/9744) let me know if you need more details

here the log details:

` level=error msg="Plugins are disabled because an error has occurred." error="failed to download plugin github.com/tomMoulard/fail2ban: failed to call service: Get \"https://plugins.traefik.io/public/download/github.com/tomMoulard/fail2ban/v0.6.6\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"`
