So, in my role as head Puppeteer I don't get to write much Perl like I used to and sure enough I have a need to. I am writing a script that will download from Stop Forum Spam a huge list of toxic CIDR addresses and using that list go generate a Puppet class to put rules into IPTables to drop connections from those CIDR ranges.
I wrote something like this back around 2005 and I remember using a CPAN module that would take a huge list like that, sort the CIDR blocks and merge CIDR blocks as made sense. Worked great. Lasted a long time and as far as I know my client is still using that script.
Problem is as I get older I now realize that memory is the second thing you lose (I forgot what the first was) and I can't remember which CPAN moudle I used to do that. I searched CPAN and I can't find it.
Anyone out there know which module it is?
Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net;
Blog: http://blog.berghold.net Warning: No political correctness allowed.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.