View Single Post
IceCucumber
Member
Join Date: Dec 2011
Old 11-10-2014 , 11:19   Re: CIDR Block - Block IP ranges for countries, hackers
Reply With Quote #5

I think there's something wrong with the comments detection. With
Quote:
# 1.2.3.4/32 = blocks 1.2.3.4 - 1.2.3.4
# 1.2.3.4/24 = blocks 1.2.3.0 - 1.2.3.255
# 1.2.3.4/16 = blocks 1.2.0.0 - 1.2.255.255
# 1.2.3.4/8 = blocks 1.0.0.0 - 1.255.255.255
123.123.123.123/24
I trigger the LogError("CIDR prefix 0, clamping to 32. %s", cidr_string) at line 133, whereas just
Quote:
123.123.123.123/24
works fine.
IceCucumber is offline