github.com/dtcookie/ipmatch


Install
go get github.com/dtcookie/ipmatch

Documentation

ipmatch

Utility that reads IP addresses from one file, and Subnets (CIDR Format) from another file and prints out the IP Addresses that match any of the given subnets.

Usage

ipmatch -i <addressfile> -n <subnetfile> [-r]