A collection of IP address prefixes grouped together for a specific purpose. If you know a prefix that is missing please submit an issue.
$ git clone https://github.com/PeymanHR/ipset.git
$ cd ipset
You can generate ip address list configuration for ipset, mikrotik, apache, nginx and cisco
cat prefixes/<path_to_prefixes_file> | python3 bin/prefix_list_processor.py <format> --name <name>
cat prefixes/iran/iran_prefixes.txt | python3 bin/prefix_list_processor.py cisco
permit 2.144.0.0/14 0.3.255.255
permit 2.176.0.0/12 0.15.255.255
permit 5.1.43.0/24 0.0.0.255
permit 5.104.208.0/21 0.0.7.255
...
cat prefixes/iran/iran_prefixes.txt | python3 bin/prefix_list_processor.py mikrotik --name ir
add address=2.144.0.0/14 list=ir
add address=2.176.0.0/12 list=ir
add address=5.1.43.0/24 list=ir
add address=5.104.208.0/21 list=ir
...
$ cat prefixes/<path_to_prefixes_file> | python3 bin/lookup.py <ip address>
$ cat prefixes/iran/iran_prefixes.txt | python3 bin/lookup.py 5.210.205.201
5.210.0.0/16