I'm looking for some pointers to send me in the right direction. I have a list of about 60 variable subnets which reside on various firewalls around the globe.
10.10.10.0/24 Firewall-Denver
10.10.20.0/25 Firewall-NewYork
10.10.30.0/28 Firewall-China
etc ...
I have another (very long) list of IP addresses which I would like to check against the list of subnets (I assume a python module would be best placed to do this?) and then I want to return the firewall which that subnet is associated with.
10.10.10.1
10.10.10.174
10.10.20.3
10.10.30.19
So return something like
10.10.10.1 Firewall-Denver
10.10.10.174 Firewall-Denver
10.10.20.3 Firewall-NewYork
10.10.30.19 Firewall-China
Thank you for your advice in advance. So I am not just looking for the IP/Subnet but a different key to be returned.