IPSet

''IPSet is used to set up, maintain and inspect so called IP sets in the Linux kernel. Depending on the  type of  the  set,  an IP set may store IP(v4/v6) addresses, (TCP/UDP) port numbers, IP and MAC address pairs, IP address and port number pairs, etc.'' - Wikipedia

IPSet is a tool for Iptables successor if IPpool is an administration tool for IP sets which can be added to iptables rules to filter out networks.

Installation
Install :

Filtering
The simple following script can be used to filter IP adresses based on a file that have to be retrieved on the intertubes, and then create or update iptables firewall rules.

The previous script is just a simple way to retrieve different or various IPSet table and make use of an up to date filtering.

The script just create an new table and swap and destroy a previous set if there's one. For a more refined script see:
 * ips.bash - bash version
 * ips.zsh - zsh version

And then save the rules to a file and start ipset init service.

The previous network filtering can be added to iptables with the following command.