Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: ability to interpret lookup string as subnet #59

Open
geertn444 opened this issue Apr 28, 2018 · 1 comment
Open

Feature request: ability to interpret lookup string as subnet #59

geertn444 opened this issue Apr 28, 2018 · 1 comment

Comments

@geertn444
Copy link

Expand the functionality by not just matching on the lookup field:

"1.1.1.1"

but have the ability to define the lookup dictionary as "subnets" and interprete them likewise.
Then do subnets lookups instead of simple matches:

"1.0.0.0/24":"D"

ie source field of "1.1.1.1", "1.1.1.2" etc will all match the lookup entry and return "D".
As usual in networking, the highest specific match should be returned:
"1.0.0.0/8":"A"
"1.1.1.0/24":"B"

1.1.1.1 should return B
Matches can be done lighning fast by binary AND masking of ip and mask and compare that to subnet.

@lisaens
Copy link

lisaens commented May 8, 2020

My group would like to have this too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants