# Excessive Logging

**URL:** <https://community.ipfire.org/t/excessive-logging/8868>\
**Category:** Firewall Rules\
**Created:** [2 November 2022 03:09 UTC](https://community.ipfire.org/t/excessive-logging/8868 "2022-11-02T03:09:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![trish](https://community.ipfire.org/user_avatar/community.ipfire.org/trish/32/16001_2.png) [@trish](https://community.ipfire.org/u/trish)\
**Post date:** [2 November 2022 03:09 UTC](https://community.ipfire.org/t/excessive-logging/8868/1 "2022-11-02T03:09:41Z")

</div>

Is there a way to suppress excessive logging of incoming packets on the RED interface?

I want to suppress incoming DROP\_HOSTILE, BLKLST\_CIARMY etc…

Outgoing DROP\_HOSTILE are useful on the other hand.

I am concerned that it is causing too much wear on the storage. Once the storage fails, firewall will be disabled.

I see 10-20k incoming packets that are dropped by the Firewall, and there is no way for me to analyze 10-20k entries per day.

My Firewall Rules are simple, block all incoming,  
Location block is blocking all incoming

I started using IP Blocklist.but that just increased the logging. IPS log went down 👍

99.99% is just DROP\_HOSTILE or CIARMY

 ![FWlLogbefore](https://community.ipfire.org/uploads/default/original/2X/4/47a844b6ff90608a5c41356dc2d58ea085752796.jpeg)

 ![FWlogAfter](https://community.ipfire.org/uploads/default/original/2X/4/4118281157f245587d15013867b5b522222c041b.jpeg)

Firewall options:

 ![FW options](https://community.ipfire.org/uploads/default/original/2X/d/dc046778129a53af2e6884dad39bbccf6241b9de.jpeg)

---

<div class="post-metadata">

**Author:** ![jon](https://community.ipfire.org/user_avatar/community.ipfire.org/jon/32/16838_2.png) [@jon](https://community.ipfire.org/u/jon)\
**Post date:** [2 November 2022 03:17 UTC](https://community.ipfire.org/t/excessive-logging/8868/2 "2022-11-02T03:17:25Z")

</div>

> [@trish](#):
>
> I want to suppress incoming DROP\_HOSTILE, BLKLST\_CIARMY etc…

for **BLKLST\_CIARMY** uncheck the **Log dropped packets**

 ![Screenshot 2022-11-01 at 10.13.12 PM](https://community.ipfire.org/uploads/default/original/2X/6/6eaf08b47e4f11b9d6ff984d2cce12fe3e6eb423.png)

on this WebGUI page:  
[https://ipfire.localdomain:444/cgi-bin/ipblocklist.cgi](https://ipfire.localdomain:444/cgi-bin/ipblocklist.cgi)

for the **DROP\_HOSTILE** there is not a way to disable but it is a good idea!

---

<div class="post-metadata">

**Author:** ![trish](https://community.ipfire.org/user_avatar/community.ipfire.org/trish/32/16001_2.png) [@trish](https://community.ipfire.org/u/trish)\
**Post date:** [2 November 2022 04:53 UTC](https://community.ipfire.org/t/excessive-logging/8868/3 "2022-11-02T04:53:24Z")

</div>

> [@jon](#):
>
> for **BLKLST\_CIARMY** uncheck the **Log dropped packets**

This surely suppressed BLKLST\_CIARMY entries. 😍

> [@jon](#):
>
> for the **DROP\_HOSTILE** there is not a way to disable but it is a good idea!

I am wondering if there is a practical difference between using:

- IP Blocklist to block **SPAMHAUS\_DROP**  
and

- Firewall Options: **Firewall options for RED interface**  
Drop packets from and to hostile networks (listed at [Spamhaus DROP] etc.)

- Location Block : **XD Hostile networks safe to drop**

---

<div class="post-metadata">

**Author:** ![bonnietwin](https://community.ipfire.org/user_avatar/community.ipfire.org/bonnietwin/32/12350_2.png) [@bonnietwin](https://community.ipfire.org/u/bonnietwin)\
**Post date:** [2 November 2022 08:57 UTC](https://community.ipfire.org/t/excessive-logging/8868/4 "2022-11-02T08:57:42Z")

</div>

> [@trish](#):
>
> I am wondering if there is a practical difference between using:
> 
> - IP Blocklist to block **SPAMHAUS\_DROP**  
> and
> - Firewall Options: **Firewall options for RED interface**  
> Drop packets from and to hostile networks (listed at [Spamhaus DROP] etc.)
> - Location Block : **XD Hostile networks safe to drop**

Yes.

Location Block XD is only incoming but spamhaus and others.

IP Blocklist is only incoming with only spamhaus.

Drop packets to and from hostile networks is incoming and outgoing with Spamhaus and others.

See the wiki page

[https://wiki.ipfire.org/configuration/firewall/options#drop-packets-from-and-to-hostile-networks](https://wiki.ipfire.org/configuration/firewall/options#drop-packets-from-and-to-hostile-networks)

and this post from @pmueller

[https://community.ipfire.org/t/drop-hostile-is-inaccurate/8699/3](https://community.ipfire.org/t/drop-hostile-is-inaccurate/8699/3)

There is of course overlap on these three options. Probably if you are using drop hostile you don’t need IP Blocklist spamhaus or Location Block XD but that is my surmise, not checked or confirmed by looking at the lists used, although drop hosile and location block use the same list (XD).

If you turn off the logging of Dropped Input Packets then that should remove the drop hostile. You have to decide if logging input packets that are dropped anyway buys you anything useful from the info point of view, especially if you have that many attempts with drop hostile alone.

---

<div class="post-metadata">

**Author:** ![trish](https://community.ipfire.org/user_avatar/community.ipfire.org/trish/32/16001_2.png) [@trish](https://community.ipfire.org/u/trish)\
**Post date:** [3 November 2022 04:37 UTC](https://community.ipfire.org/t/excessive-logging/8868/5 "2022-11-03T04:37:26Z")

</div>

> [@bonnietwin](#):
>
> If you turn off the logging of Dropped Input Packets then that should remove the drop hostile.

For me turning off Logging Dropped input packets (FW Options) DOESN’T remove drop hostile. As you can see above in my screenshots. It is weird but it doesn’t stop logging incoming packets.  
If you think it supposed to I will open a bug report.

- So IP blocklist SPAMHOUSE DROP is incoming only?
- Location block is incoming only.as well.
- At least IPS will be blocking outgoing.packets

---

<div class="post-metadata">

**Author:** ![bonnietwin](https://community.ipfire.org/user_avatar/community.ipfire.org/bonnietwin/32/12350_2.png) [@bonnietwin](https://community.ipfire.org/u/bonnietwin)\
**Post date:** [3 November 2022 09:22 UTC](https://community.ipfire.org/t/excessive-logging/8868/6 "2022-11-03T09:22:39Z")

</div>

> [@trish](#):
>
> For me turning off Logging Dropped input packets (FW Options) DOESN’T remove drop hostile. As you can see above in my screenshots.

Sorry, I missed that you already had logging for dropped input turned off.

> [@trish](#):
>
> It is weird but it doesn’t stop logging incoming packets.  
> If you think it supposed to I will open a bug report.

I don’t know if the code was written with the intention of also turning of the drop hostile incoming. As that option was added later it might be separate from the other coding.

As quite a few people seem to be inundated with drop hostile messages it seems reasonable to add an option for dropping logging of drop hostile for incoming.

I would raise a bug on it but maybe put “improvement suggestion” into the title.

> [@trish](#):
>
> - So IP blocklist SPAMHOUSE DROP is incoming only?
> - Location block is incoming only.as well.

Yes, both of those are incoming only.

> [@trish](#):
>
> At least IPS will be blocking outgoing.packets

It will as long as the involved signature is a drop signature. Not all are. Some are just to provide info of suspicious traffic that might or might not be something to drop.

---

<div class="post-metadata">

**Author:** ![cbrown](https://community.ipfire.org/user_avatar/community.ipfire.org/cbrown/32/16342_2.png) [@cbrown](https://community.ipfire.org/u/cbrown)\
**Post date:** [3 November 2022 11:14 UTC](https://community.ipfire.org/t/excessive-logging/8868/7 "2022-11-03T11:14:38Z")

</div>

> [@trish](#):
>
> out

The **IP Address Blocklist** feature does drop outgoing.packets.

---

<div class="post-metadata">

**Author:** ![bonnietwin](https://community.ipfire.org/user_avatar/community.ipfire.org/bonnietwin/32/12350_2.png) [@bonnietwin](https://community.ipfire.org/u/bonnietwin)\
**Post date:** [3 November 2022 11:56 UTC](https://community.ipfire.org/t/excessive-logging/8868/8 "2022-11-03T11:56:13Z")

</div>

Thanks @cbrown for that clarification. I was not aware of that. I based my comment on my belief without checking the code 🤪

---

<div class="post-metadata">

**Author:** ![trish](https://community.ipfire.org/user_avatar/community.ipfire.org/trish/32/16001_2.png) [@trish](https://community.ipfire.org/u/trish)\
**Post date:** [11 November 2022 05:59 UTC](https://community.ipfire.org/t/excessive-logging/8868/9 "2022-11-11T05:59:51Z")

</div>

I see there is a 10/sec limit on logging of **HOSTILE\_DROP** as well as CIARMY\_DROP tables. Could I modify the limit for example 10/hour limit

```auto

**Chain HOSTILE_DROP** (0 references)
target prot opt in out source destination 	
										
LOG all -- * * 0.0.0.0/0 0.0.0.0/0 limit: avg 10/sec burst 5 LOG flags 0 level 4 prefix "DROP_HOSTILE "
DROP all -- * * 0.0.0.0/0 0.0.0.0/0 /* DROP_HOSTILE */

```
