# Fail2ban as agent for CrowdSec?

**URL:** <https://discourse.crowdsec.net/t/fail2ban-as-agent-for-crowdsec/910>\
**Category:** crowdsec\
**Created:** [August 17, 2022, 3:16pm UTC](https://discourse.crowdsec.net/t/fail2ban-as-agent-for-crowdsec/910 "2022-08-17T15:16:55Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Igor](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@Igor](https://discourse.crowdsec.net/u/Igor)\
**Post date:** [August 22, 2022, 2:00pm UTC](https://discourse.crowdsec.net/t/fail2ban-as-agent-for-crowdsec/910/3 "2022-08-22T14:00:53Z")

</div>

Hello!

I’ve already thought about it myself. In theory, it should not be difficult - to add in folder /etc/fail2ban/action.d file with something like

actionban = cscli decisions add --ip \< ip \> --duration \< duration \> --reason \< reason \>

And then call the jail.local.

I am now carefully reading the documentation, I just started to master CrowdSec, so I am in no hurry to implement something - I suddenly subtract a better solution.

---

_[View the full topic](https://discourse.crowdsec.net/t/fail2ban-as-agent-for-crowdsec/910)._
