Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Ideas solicited: Using Perl to sort through Toxic CIDR blocks

by Anonymous Monk
on May 30, 2014 at 00:12 UTC ( [id://1087900]=note: print w/replies, xml ) Need Help??


in reply to Ideas solicited: Using Perl to sort through Toxic CIDR blocks

I don't know puppet so I don't know it's input requirements, but I'm not seeing the issue. iptables (on Linux) accepts CIDR blocks as arguments to --source and your input is CIDR blocks, how about print or say?

As for the other, less obvious "question" (Given a CIDR block, how do I see who owns it?), all that comes to mind is brute force: look up each and every IP address in each of every CIDR block. The reason you need to do ALL of them is because people who sell hosting resell individual IPs from from CIDR blocks. On the other hand, you might find some of ARIN's web tools of use, if you're not worried about being wrong sometimes (e.g. resold IPs).

Even if he is getting a bit snarky, I agree with boftx that "you're a saint, you shouldn't have to be reminded to give examples of input and output."

  • Comment on Re: Ideas solicited: Using Perl to sort through Toxic CIDR blocks

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1087900]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2024-04-24 11:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found