Skip to content

banip: logging with limits also limits packet drops #27990

@jorti

Description

@jorti

Package Name

banip

Maintainer

@dibdot

OpenWrt Version

24.10.4

OpenWrt Target/Subtarget

mediatek/mt7622

Steps to Reproduce

  1. Enable some banIP feeds for the input table, for example firehol1
  2. Enable logging for inbound

The created rules in nftables are like this:

ip saddr @firehol1.v4 log prefix "banIP/inbound/drop/firehol1.v4: " limit rate 10/second burst 5 packets counter packets 5176 bytes 223292 drop

Actual Behaviour

If my understanding of limit in nftables is correct, the limit is also applying to the drop instance, so it's dropping only 10 packets/second.

I think this should be split into 2 rules: logging (with limits) and dropping.

Confirmation Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions