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

Add support for CIDR wildcard masks so that domain ranges can be provided #1

Open
jhubert opened this issue Jul 21, 2015 · 0 comments

Comments

@jhubert
Copy link

jhubert commented Jul 21, 2015

A network may have a specific domain range that it wants to whitelist. Instead of specifying all or none (ie: n or *), it would great if they could use the CIDR standard to define their range.

For example 192.168.0.1/24 would allow all 192.168.0.* addresses, but 192.168.0.0/30 would only match 192.168.0.[0-3].

The NetAddr gem has a CIDR class the provides a simple matches? method to handle the comparison. This would also have the added benefit of supporting IPv6 addresses.

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

No branches or pull requests

1 participant