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

Issue with some CIDR #101

Open
remagio opened this issue Jul 30, 2014 · 3 comments
Open

Issue with some CIDR #101

remagio opened this issue Jul 30, 2014 · 3 comments

Comments

@remagio
Copy link

remagio commented Jul 30, 2014

Any suggest to know exactly which IP are "expanded" from CIDR and the full set of IP monitored?
Not sure if related with #40 b/c I don't get any error but it fail in recognizing IP to monitor with wikipedia updates.
I tried out too some IP/CIDR I know are incorrect, they require additional cfgs. Online IP CIDR fail too in getting that kind. I expected to get some errors. Nothing.

@edsu
Copy link
Owner

edsu commented Aug 1, 2014

I'm having trouble understanding what to do with this ticket. Could you please include your configuration settings, and what IP addresses you are expecting it to match?

@remagio
Copy link
Author

remagio commented Aug 1, 2014

Doing data mining on huge historical meta db with network&org whois I found thousands government's IPs. I reduced it creating lists of CIDR, Then before populating the config.json I checked with my other code some IP CIDR calculator so I found that many cannot be "encoded" like CIDR, B/c many, really, are multiple subnet of the same range, sequentially but not really a subrange also if sequentially. But multiple smallest subnets, it happens when adding more IPs subnet of same class of a C level that goes free over time. Than got by same government org from telcos.
That said, if the anon's func explode the lists of a CIDR (using that CIDR like strings) I think it works fine anyway. But if the anon's func use IP CIDR's maths it will not work. Same way, online IP CIDR calculator, fails in evaluating that CIDR.
In this case, if it uses CIDR's math, in my opinion, or that subnet will not evaluated or it fails in checking it, skipping it. Or it could fail too with the entire sets of config.json. It depends how errors are managed.
Before going live I converted all CIDR back to ranges like found on config.json examples.

Starting from the point that not all anon supporters are network manager, it could be useful to understand this and address it:

  • by example in my initial comment I asked if there is a way to debug and get the real list of IPs anon will check on wikipedia updates.
  • another solution could be to output on the log (like you did for TW parameters with you last commit) the IPs not parsed, or wrongly evaluated by anon, when reading the config.json.
    Is it clear what I mean?

@edsu
Copy link
Owner

edsu commented Jan 4, 2018

I'm sorry I still don't understand what you are asking for :-( I'm going to leave this open in case someone else does.

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

2 participants