# Have you seen the fail2ban alternative?

**URL:** <https://forum.hestiacp.com/t/have-you-seen-the-fail2ban-alternative/5594>\
**Category:** Community Support\
**Created:** [February 13, 2022, 3:50pm UTC](https://forum.hestiacp.com/t/have-you-seen-the-fail2ban-alternative/5594 "2022-02-13T15:50:38Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![liamgibbins](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/liamgibbins/32/916_2.png) [@liamgibbins](https://forum.hestiacp.com/u/liamgibbins)\
**Post date:** [February 13, 2022, 3:50pm UTC](https://forum.hestiacp.com/t/have-you-seen-the-fail2ban-alternative/5594/1 "2022-02-13T15:50:39Z")

</div>

Just found this.  
Its a alternative to fail2ban [https://crowdsec.net/](https://crowdsec.net/)

The main points for me us that its more up to date and provides more security than fail2ban.  
it comes with a nice dashboard and an API for easy integration.

I think it would be a nice addition and could possibly with as an alternative or alongside to fail2ban.

**From there page;**

Collaborative Security  
Our strength comes from our cybersecurity community that is burning cybercriminals’ anonymity. By sharing IP addresses that aggressed you, you help us curate and redistribute a qualified IP blocklist to protect everyone.

GDPR Compliant  
Sharing is caring but privacy matters even more. We collect the very strict minimum in order to be GDPR compliant. Hence, we **never** export your logs and the only data sent for curation are a timestamp, the aggressive IP, and the scenario used in the attack.

---

<div class="post-metadata">

**Author:** ![jlguerrero](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/jlguerrero/32/954_2.png) [@jlguerrero](https://forum.hestiacp.com/u/jlguerrero)\
**Post date:** [February 13, 2022, 5:48pm UTC](https://forum.hestiacp.com/t/have-you-seen-the-fail2ban-alternative/5594/2 "2022-02-13T17:48:26Z")

</div>

It’s not an alternative. We should use both.

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [February 13, 2022, 6:19pm UTC](https://forum.hestiacp.com/t/have-you-seen-the-fail2ban-alternative/5594/3 "2022-02-13T18:19:01Z")

</div>

There is allready an outstanding feature request for it…

> <https://github.com/hestiacp/hestiacp/issues/2406>
>
> \### Describe the feature or change in detail
> 
> CrowdSec is an interesting securit…y tool (which can complement fail2ban or can be used independently ) https://github.com/crowdsecurity/crowdsec
> 
> \> CrowdSec is a free, modern & collaborative behavior detection engine, coupled with a global IP reputation network. It stacks on fail2ban's philosophy but is IPV6 compatible and 60x faster (Go vs Python), uses Grok patterns to parse logs and YAML scenario to identify behaviors. CrowdSec is engineered for modern Cloud / Containers / VM based infrastructures (by decoupling detection and remediation). Once detected you can remedy threats with various bouncers (firewall block, nginx http 403, Captchas, etc.) while the aggressive IP can be sent to CrowdSec for curation before being shared among all users to further improve everyone's security.
> 
> \### Would you like to sponsor this feature to have it implemented?
> 
> No

---

<div class="post-metadata">

**Author:** ![liamgibbins](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/liamgibbins/32/916_2.png) [@liamgibbins](https://forum.hestiacp.com/u/liamgibbins)\
**Post date:** [February 13, 2022, 10:35pm UTC](https://forum.hestiacp.com/t/have-you-seen-the-fail2ban-alternative/5594/4 "2022-02-13T22:35:07Z")

</div>

I totally agree to run alongside fail2ban, thinking about implementing it to cover all my personal services that are exposed to the net

---

<div class="post-metadata">

**Author:** ![Hexaris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/hexaris/32/2465_2.png) [@Hexaris](https://forum.hestiacp.com/u/Hexaris)\
**Post date:** [February 14, 2022, 8:27am UTC](https://forum.hestiacp.com/t/have-you-seen-the-fail2ban-alternative/5594/5 "2022-02-14T08:27:02Z")

</div>

Crowdsec is basically an improved version of fail2ban. Letting them run together makes no sense in my opinion. Choosing one or the other via the UI makes sense, of course.  
I’ve completely disabled fail2ban and only use crowdsec which is managed through one central server via API.  
Maybe it would be enough to add crowdsec only to the documentation as an alternative.

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [February 14, 2022, 8:48am UTC](https://forum.hestiacp.com/t/have-you-seen-the-fail2ban-alternative/5594/6 "2022-02-14T08:48:59Z")

</div>

> [@Hexaris](#):
>
> Choosing one or the other via the UI makes sense, of course.

This makes no sense for us… Up keeping 2 different systems takes time we don’t have and don’t want to spend… We have removed apache2 as front facing panel for the same reason we don’t want to waste time on testing 2 different it takes to test. It requires time to adjust it every time and we don’t have It…

---

<div class="post-metadata">

**Author:** ![liamgibbins](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/liamgibbins/32/916_2.png) [@liamgibbins](https://forum.hestiacp.com/u/liamgibbins)\
**Post date:** [February 14, 2022, 8:55am UTC](https://forum.hestiacp.com/t/have-you-seen-the-fail2ban-alternative/5594/7 "2022-02-14T08:55:33Z")

</div>

Adding to the documentation would be an easier option.

Including details of how to disable fail2ban and installing and configuration of crowdsec (might stop forum posts on how to install).

This would allow people to chose to have an updated more modern security option with a nice dashboard.

---

<div class="post-metadata">

**Author:** ![Hexaris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/hexaris/32/2465_2.png) [@Hexaris](https://forum.hestiacp.com/u/Hexaris)\
**Post date:** [February 14, 2022, 8:59am UTC](https://forum.hestiacp.com/t/have-you-seen-the-fail2ban-alternative/5594/8 "2022-02-14T08:59:53Z")

</div>

I am not interested in having multiple applications. I fully understand that this doesn’t make sense to you. I just thought it was logical to be able to switch applications and not have 2 identical applications running blindly. I will admit that this is something that should probably be handled by the user.

---

<div class="post-metadata">

**Author:** ![Raphael](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/raphael/32/5217_2.png) [@Raphael](https://forum.hestiacp.com/u/Raphael)\
**Post date:** [February 14, 2022, 9:00am UTC](https://forum.hestiacp.com/t/have-you-seen-the-fail2ban-alternative/5594/9 "2022-02-14T09:00:26Z")

</div>

Still, this would then tend to an “official support” where we would need to test and support it. So basicly we just could implement it directly.

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [February 14, 2022, 9:01am UTC](https://forum.hestiacp.com/t/have-you-seen-the-fail2ban-alternative/5594/10 "2022-02-14T09:01:41Z")

</div>

According to this is should do what Fail2ban does so it doesn’t make sense to keep F2B alive …

[![](https://img.youtube.com/vi/-GxUP6bNxF0/maxresdefault.jpg "Open Source & Collaborative Security with CrowdSec and Traefik - CrowdSec & Traefik Tutorial") ](https://www.youtube.com/watch?v=-GxUP6bNxF0)

nano /usr/local/hestia/conf/hestia.conf

replace FIREWALL\_EXTENSION=‘’

And apt remove fail2ban

I am a fan of implementing in the future but need to investigate it a lot more…

---

<div class="post-metadata">

**Author:** ![liamgibbins](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/liamgibbins/32/916_2.png) [@liamgibbins](https://forum.hestiacp.com/u/liamgibbins)\
**Post date:** [February 14, 2022, 9:12am UTC](https://forum.hestiacp.com/t/have-you-seen-the-fail2ban-alternative/5594/11 "2022-02-14T09:12:42Z")

</div>

That’s how I found out about it. Lol

---

<div class="post-metadata">

**Author:** ![pluto](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/p/f08c70/32.png) [@pluto](https://forum.hestiacp.com/u/pluto)\
**Post date:** [February 15, 2022, 3:46am UTC](https://forum.hestiacp.com/t/have-you-seen-the-fail2ban-alternative/5594/12 "2022-02-15T03:46:05Z")

</div>

Looks interesting. Will have a play with it.

---

<div class="post-metadata">

**Author:** ![liamgibbins](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/liamgibbins/32/916_2.png) [@liamgibbins](https://forum.hestiacp.com/u/liamgibbins)\
**Post date:** [February 15, 2022, 3:59am UTC](https://forum.hestiacp.com/t/have-you-seen-the-fail2ban-alternative/5594/13 "2022-02-15T03:59:03Z")

</div>

I will be doing the same at weekend, i will be doing some tests on 3 vm’s to see if i get consistent results.  
easy install and it comes with premade jails (so to speak)  
[https://hub.crowdsec.net/browse/#bouncers](https://hub.crowdsec.net/browse/#bouncers)

The monitors are here.  
[https://hub.crowdsec.net/browse/#collections](https://hub.crowdsec.net/browse/#collections)

Premade configuration files  
[https://hub.crowdsec.net/browse/#configurations](https://hub.crowdsec.net/browse/#configurations)

Just to name a few:  
Dovecot  
Mariadb  
Docker  
Nginx logs  
Myself  
Postfix configs

There’s loads of premade configs.

It is also worth mentioning that if you install hestiacp without fail2ban and lastly install crowdsec it will auto detect the services that are already installed on the system and auto the files necessary for the installed services, makes it even simpler.

---

<div class="post-metadata">

**Author:** ![jlguerrero](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/jlguerrero/32/954_2.png) [@jlguerrero](https://forum.hestiacp.com/u/jlguerrero)\
**Post date:** [February 15, 2022, 11:36am UTC](https://forum.hestiacp.com/t/have-you-seen-the-fail2ban-alternative/5594/14 "2022-02-15T11:36:50Z")

</div>

> [@liamgibbins](#):
>
> It is also worth mentioning that if you install hestiacp without fail2ban and lastly install crowdsec it will auto detect the services that are already installed on the system and auto the files necessary for the installed services, makes it even simpler.

So it is trivial to install.

I love the idea of using crowdsec. We could all benefit from it BUT there is the issue with poisoning.

I have not seen **clear information on how crowdsec handles** a potential attack of denial of service by **poisoning** the network with false positives.

---

<div class="post-metadata">

**Author:** ![liamgibbins](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/liamgibbins/32/916_2.png) [@liamgibbins](https://forum.hestiacp.com/u/liamgibbins)\
**Post date:** [February 15, 2022, 10:40pm UTC](https://forum.hestiacp.com/t/have-you-seen-the-fail2ban-alternative/5594/15 "2022-02-15T22:40:57Z")

</div>

This is the answer I got on there forum…

Hi

To understand how CrowdSec mitigates this, you will need an understanding of how the consensus engine that assesses reveived CTI, works. To my knowledge there is not a whitepaper describing this yet but there is (at least one) video on YouTube with our CEO Philipe describing [how it works](https://www.youtube.com/watch?v=d9NgZBldnos&t=183s&ab_channel=CrowdSec). He does so from around 8m10s.

Let me know if you have more questions.

---

<div class="post-metadata">

**Author:** ![system](https://forum.hestiacp.com/uploads/default/original/1X/d9a5b68bf50ced83e880b56452e592b204761b19.png) [@system](https://forum.hestiacp.com/u/system)\
**Post date:** [March 17, 2022, 10:40pm UTC](https://forum.hestiacp.com/t/have-you-seen-the-fail2ban-alternative/5594/16 "2022-03-17T22:40:58Z")

</div>

Closed on March 17, 2022, 10:40pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
