We are happy to announce that the
iptools package is now on CRAN. Formerly only available on GitHub,
iptools now compiles under Debian/Ubuntu, Fedora/CentOS/RedHat and Mac OS X (we’re still working on that other operating system).
Oliver (the package co-author and on-CRAN instigator) wrote some excellent vignettes that cover the functionality of the package in-depth, but here’s a short-list of what you can find/expect in
- wicked-fast IP conversions (
148milliseconds for converting 1,000,000 addresses to integers and
700milliseconds the other way ‘round)
- IP classification with
ip_classifywhich can distinguish IPv4, IPv6 and non-IP address inputs
- hostname resolution (both ways) with
plus, ways to handle CIDR blocks and generate random (but valid) IPv4 addresses.
We’ve also included some core IANA datasets and provided routines to refresh them.
If you manage to get it working well on Windows, drop us a note in the comments (you’ll get a free copy of Data-Driven Security) and if you’ve use
iptools in any cool projects hit us up here or on Twitter so we can get you on the podcast.