Actions
Feature #8124
open
JF
JL
datasets: support subnets
Feature #8124:
datasets: support subnets
Effort:
Difficulty:
Label:
JF Updated by Juliana Fajardini Reichow 12 months ago
- Related to Task #8123: Suricon 2025 Brainstorm added
VJ Updated by Victor Julien 12 months ago
I think one way to support subnet lookups would be to add a mask transform to the rule lang, so you could do something like ip.src; mask:0xffffff00; datasets:isset, ....
JL Updated by Jeff Lucovsky 10 months ago ยท Edited
I've been working on adding a `cidr` type to the datasets.
Here's an example rule:
alert ip any any -> any any (msg:"Traffic from internal network"; ip.src;dataset:isset,internalnetworks,type cidr,load cidr.lst, key ip; sid:1000001;)
The dataset supports IPv4/IPv6 and uses a radix tree for locating the value.
An example dataset
192.168.0.0/16 10.0.0.0/8 172.16.0.0/12 fc00::/7
Would this also satisfy the goal of the issue?
VJ Updated by Victor Julien 10 months ago
How does it behave wrt concurrency?
JL Updated by Jeff Lucovsky 10 months ago
Good question. Given that my proposed solution doesn't have a hashable entity, the concurrency control would have to be applied to the v4 or v6 radix tree. A mitigation would be to have a RW lock with usage geared towards isset operations.
This may be insufficient and a mask approach may be better.
JL Updated by Jeff Lucovsky 3 months ago
- Status changed from Triaged to In Review
- Assignee changed from OISF Dev to Jeff Lucovsky
Actions