# Adding in abuseipdb into the firewall

**URL:** <https://forum.hestiacp.com/t/adding-in-abuseipdb-into-the-firewall/15044>\
**Category:** Firewall\
**Created:** [July 10, 2024, 9:33am UTC](https://forum.hestiacp.com/t/adding-in-abuseipdb-into-the-firewall/15044 "2024-07-10T09:33:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewnewby](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/a/bcef8e/32.png) [@andrewnewby](https://forum.hestiacp.com/u/andrewnewby)\
**Post date:** [July 10, 2024, 9:33am UTC](https://forum.hestiacp.com/t/adding-in-abuseipdb-into-the-firewall/15044/1 "2024-07-10T09:33:39Z")

</div>

Hi

I’ve found a cool list with IPs coming in from abuseipdb:

> **[GitHub - borestad/blocklist-abuseipdb: Aggregated AbuseIPDB blocklists with...](https://github.com/borestad/blocklist-abuseipdb)**
>
> Aggregated AbuseIPDB blocklists with worst IPv4 & IPv6 offenders (~100% confidence) - borestad/blocklist-abuseipdb

It has nearly 10000k of them in abuseipdb-s100-60d.ipv4 (100% certinty, for the last 60 days)

My question - I have put the file in: /usr/local/hestia/install/common/firewall/ipset/abuseipdb-s100-60d.ipv4

When creating the firewall rule at [https://2024.foo.com:9183/add/firewall/ipset/](https://2024.foo.com:9183/add/firewall/ipset/) , so I just set the source as the path to the file? I’ve not done it like this before (normally I just use the pre-set ones)

Thanks!

Andy

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [July 10, 2024, 9:40am UTC](https://forum.hestiacp.com/t/adding-in-abuseipdb-into-the-firewall/15044/2 "2024-07-10T09:40:08Z")

</div>

Hi @andrewnewby,

No, to add an ipset list use this doc [How do I setup an IPSet blacklist or whitelist?](https://hestiacp.com/docs/server-administration/firewall.html#how-do-i-setup-an-ipset-blacklist-or-whitelist)

The url you should add for `abuseipdb-s100-60d.ipv4` is this:

```auto
https://raw.githubusercontent.com/borestad/blocklist-abuseipdb/main/abuseipdb-s100-60d.ipv4

```

---

<div class="post-metadata">

**Author:** ![andrewnewby](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/a/bcef8e/32.png) [@andrewnewby](https://forum.hestiacp.com/u/andrewnewby)\
**Post date:** [July 10, 2024, 9:56am UTC](https://forum.hestiacp.com/t/adding-in-abuseipdb-into-the-firewall/15044/3 "2024-07-10T09:56:48Z")

</div>

Awesome, even easier then 🙂 Thanks! How do I verify its setup? I created the rule as “abusedb” , but I can’t see anything in iptables to that end:

**iptables --list -n | grep abuse**

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [July 10, 2024, 10:00am UTC](https://forum.hestiacp.com/t/adding-in-abuseipdb-into-the-firewall/15044/4 "2024-07-10T10:00:22Z")

</div>

That rule is using `ipset:abusedb` ? If the answer is yes:

```t
v-update-firewall
iptables -S | grep abuse

```

---

<div class="post-metadata">

**Author:** ![andrewnewby](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/a/bcef8e/32.png) [@andrewnewby](https://forum.hestiacp.com/u/andrewnewby)\
**Post date:** [July 10, 2024, 11:12am UTC](https://forum.hestiacp.com/t/adding-in-abuseipdb-into-the-firewall/15044/5 "2024-07-10T11:12:00Z")

</div>

Oops - I missed a step =) I created the ipset LIST , but didn’t actually apply it to a rule - so I added a TCP drop on all ports for the 2 sets, and it works:

```auto
iptables -S | grep set
-A INPUT -p tcp -m set --match-set abusedb src -j DROP
-A INPUT -p tcp -m set --match-set maliciousipv4 src -j DROP

```

Thanks 🕶

---

<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:** [July 12, 2024, 8:41am UTC](https://forum.hestiacp.com/t/adding-in-abuseipdb-into-the-firewall/15044/6 "2024-07-12T08:41:16Z")

</div>

Would you have to create a cron to update that list say every month?

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [July 12, 2024, 8:45am UTC](https://forum.hestiacp.com/t/adding-in-abuseipdb-into-the-firewall/15044/7 "2024-07-12T08:45:39Z")

</div>

When you create the ipset, you have the option to enable the auto update and it will be updated every day, there is no need to add any additional cron job to do it.

---

<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:** [August 11, 2024, 8:46am UTC](https://forum.hestiacp.com/t/adding-in-abuseipdb-into-the-firewall/15044/8 "2024-08-11T08:46:03Z")

</div>

Closed on August 11, 2024, 8:46am UTC

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