I have to block many netblocks and IPs, using my lists and scripts and this script gathering bluetack datasAs I understand, the best tools is ipset.To check if some IP addresses are already added to ipsets there is the command :ipset testbut it isn't scalable to exec the command before adding each entry from thousands.Is there any API callable from userland ?
iptables ipset : test api
iptables;api