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

Bug: Gives warning and ends up with duplicate IPs in output... #28

Open
Jas0n99 opened this issue Sep 9, 2019 · 0 comments
Open

Bug: Gives warning and ends up with duplicate IPs in output... #28

Jas0n99 opened this issue Sep 9, 2019 · 0 comments

Comments

@Jas0n99
Copy link

Jas0n99 commented Sep 9, 2019

This is probably an edge case, but I figured still worth reporting...

I'm attaching a file combined.txt

which is a concatenation of the cymru full bogons & cidr-report bogons lists.

When you run the command iprange -v combined.txt > combined.ipset.txt

It gives the warning: iprange: WARNING: invalid range reversed start=224.0.0.0 end=0.255.255.255

.. and the end file combined.ipset.txt has loads of duplicate IPs (CIDRs) in it. If you also look at line 3073 you will see it wrote 224.0.0.0 with no CIDR. So I'm guessing the bug is something to do with the next few entries in the original file that bork the processing and it just dumps the rest of the input to output. (There was already a 0.0.0.0/8 at the beginning of the file, the one in the sample below would be the start of the 2nd concatenated file).

224.0.0.0/4
240.0.0.0/4
0.0.0.0/8

If you process them as individual files then it works just fine, ex: iprange -v cymru_full.netset cidr-report.netset > this_works.ipset

Hopefully it's an easy fix... lol

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