Add support for netblocks.

Netblocks are much more convenient to specify multiple IP addresses over the
command line.