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

Blacklisting an IPv6 range doesn't work #5879

Closed
BartVB opened this issue Aug 15, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@BartVB
Copy link

commented Aug 15, 2017

https://community.nodebb.org/topic/11127/block-ipv6

I was trying to blacklist a block of IPv6 adresses (an IPv6 prefix actually) but that results in a 'rule is invalid' message when I try to enter something like:

2001:db8::/64

This with the latest NodeBB release (1.5.3)

var isCidrSubnet = /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$/;

seems to be limited to IPv4 subnets.

@julianlam julianlam closed this in 1159abf Aug 18, 2017

@julianlam julianlam self-assigned this Sep 14, 2017

@julianlam julianlam added the bug label Sep 14, 2017

@julianlam julianlam added this to the 1.6.0 milestone Sep 14, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.