-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Input matcher that checks that an IP belongs to a list of CIDR ranges #16568
Copy link
Copy link
Closed
Labels
enhancementFeature requests. Not bugs or questions.Feature requests. Not bugs or questions.stalestalebot believes this issue/PR has not been touched recentlystalebot believes this issue/PR has not been touched recently
Description
Title: An input matcher that checks that an IP{v4,v6} belongs to a list of CIDR ranges
Description:
This input matcher takes an IPv4 or v6 address as input and returns true if it belongs to a list of given CIDR ranges. It uses the existing LcTrie facility.
The configuration is simple and looks like this:
cidr_ranges:
- address_prefix: "1.1.1.0"
prefix_len: 24
- address_prefix: "2.2.0.0"
prefix_len: 16
...
I have implemented it here: curiefense@e4601bb
If it can be sponsored, I will open the associated PR!
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementFeature requests. Not bugs or questions.Feature requests. Not bugs or questions.stalestalebot believes this issue/PR has not been touched recentlystalebot believes this issue/PR has not been touched recently