# Block list/group from fail2ban

**URL:** <https://forum.suricata.io/t/block-list-group-from-fail2ban/264>\
**Category:** Help\
**Created:** [May 26, 2020, 6:41pm UTC](https://forum.suricata.io/t/block-list-group-from-fail2ban/264 "2020-05-26T18:41:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SignWall](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@SignWall](https://forum.suricata.io/u/SignWall)\
**Post date:** [May 26, 2020, 6:41pm UTC](https://forum.suricata.io/t/block-list-group-from-fail2ban/264/1 "2020-05-26T18:41:45Z")

</div>

Hello!

There is a simple way to integrate fail2ban with suricata?  
For example, my host blcoked some ips and I wish to block those ips on suricata as well.  
I was thinking to create a new group like home\_net to do this.  
It’s possible to manage that?

---

<div class="post-metadata">

**Author:** ![vjulien](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/vjulien/32/4_2.png) [@vjulien](https://forum.suricata.io/u/vjulien)\
**Post date:** [May 26, 2020, 7:14pm UTC](https://forum.suricata.io/t/block-list-group-from-fail2ban/264/2 "2020-05-26T19:14:18Z")

</div>

Using hostbits might be useful for that, see [https://suricata.readthedocs.io/en/suricata-5.0.0/rules/xbits.html?highlight=hostbit#unix-socket](https://suricata.readthedocs.io/en/suricata-5.0.0/rules/xbits.html?highlight=hostbit#unix-socket)

In addition to what you see there you’d need a rule like

```auto
drop ip any any -> any any (hostbits:isset,blacklist,src; sid:1;)

```

This would drop any packet for a host that sits in the host table, with the ‘blacklist’ tag (bit). You can use the unix socket command to add (and remove) them.
