This Cloudflare Worker project aims to aggregate and manage Iran-specific CIDR (Classless Inter-Domain Routing) IP address ranges from various sources. It provides a central repository of these ranges for potential use in firewall configurations or access control.
- Iran CIDR Grep: Fetches unique CIDR ranges specific to Iran from multiple sources.
- Merging and Aggregation: Consolidates and merges the obtained CIDR ranges to create a unified and unique list of addresses.
- MikroTik Configuration: Generates commands for adding these CIDR ranges to MikroTik firewall address lists.
- Fetch Iran CIDR: Send an HTTP request to retrieve unique Iran CIDR ranges.
- Endpoint:
/
- Endpoint:
- MikroTik Configuration: Access the endpoint to get MikroTik configuration commands for the obtained CIDR ranges.
- Endpoint:
/mikroTik
- Endpoint:
This project was created by Bun.
bun install
To run:
bun start
To publish:
bun publish
- Generate
dist/worker.js
. - Publish
dist/worker.js
to your Cloudflare Worker through the Cloudflare Dashboard.
curl http://127.0.0.1:8787/ -o ir-cidr.txt
curl http://127.0.0.1:8787/mikroTik -o mikrotik-ir-cidr.rsc
Contributions, bug reports, and feature requests are welcome. Feel free to create issues or pull requests on the project repository.
This project is licensed under the GNU General Public License v3.0 (GPLv3).