Mapping ip address to specific network

One other candidate could also be the jdbc static filter, based on a table with expanded IP-network mappings.