|Think about Loose Coupling|
Seeking CPAN module I used once to merge CIDR blocksby blue_cowdawg (Monsignor)
|on Apr 06, 2015 at 16:59 UTC||Need Help??|
blue_cowdawg has asked for the wisdom of the Perl Monks concerning the following question:
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.