Profile
Back to NewsBack
GitHub Trending 2 min
Reader Mode
123jjck/cdn-ip-ranges: IP address ranges for proxying

123jjck/cdn-ip-ranges: IP address ranges for proxying

14 hours ago

cdn_ip_ranges

🌐 Language / Язык: English | Русский


cdn_ip_ranges collects IPv4/IPv6 subnet lists for popular CDN and hosting providers and stores them inside per-provider folders. Each folder (e.g., aws/, hetzner/) contains:

  • _plain.txt – one subnet per line (IPv4 + IPv6).
  • _plain_ipv4.txt – the same, but IPv4-only.
  • _amnezia_ipv4.json – JSON for Amnezia VPN (IPv4-only, array of objects with hostname/ip fields).
  • _geoip.dat – binary V2Ray GeoIP format (IPv4 + IPv6).
  • _geoip_ipv4.dat – the same, but IPv4-only.
  • _singbox.srs – binary sing-box ruleset format (IPv4 + IPv6).
  • _singbox_ipv4.srs – the same, but IPv4-only.

Quick start

| List | Folder | Contents | |---|---|---| | all | all/ | Every active provider in this repo — CDN, hosting, Discord Voice, Telegram, Meta, and others. Use this if you want the widest possible coverage. | | cdn-only | cdn-only/ | CDN and hosting providers only (excludes Discord Voice, Telegram, Meta, and deprecated providers). Use this if you only need traffic routing for CDN infrastructure. |

Most common files (IPv4 plain text):

  • all/all_plain_ipv4.txt
  • cdn-only/cdn-only_plain_ipv4.txt

Providers

| Provider | AS | In all | In cdn-only | |---|---|:---:|:---:| | Akamai | AS20940, AS63949 | ✅ | ✅ | | AWS | ip-ranges.json | ✅ | ✅ | | Bunny | AS200325 | ✅ | ✅ | | BuyVM | AS53667 | ✅ | ✅ | | CDN77 | AS60068 | ✅ | ✅ | | Cloudflare | AS13335 | ✅ | ✅ | | Cogent | AS174 | ✅ | ✅ | | Constant | AS20473 | ✅ | ✅ | | Contabo | AS51167, AS141995 | ✅ | ✅ | | DataCamp | AS212238 | ✅ | ✅ | | DigitalOcean | AS14061 | ✅ | ✅ | | Discord Voice | crt.sh + DNS resolve | ✅ | ❌ | | Fastly | AS54113 | ✅ | ✅ | | GCore | AS199524, AS202422 | ✅ | ✅ | | GleSYS | AS42708 | ✅ | ✅ | | GTHost | AS63023 | ✅ | ✅ | | Hetzner | AS24940, AS213230, AS212317, AS215859 | ✅ | ✅ | | MelBiCom | AS8849, AS56630 | ✅ | ✅ | | Meta | AS32934 | ✅ | ❌ | | Oracle | AS31898, AS6142, AS20054, AS54253 | ✅ | ✅ | | OVH | AS16276 | ✅ | ✅ | | Railway | AS400940 | ✅ | ✅ | | Roblox | AS22697 (Deprecated) | ❌ | ❌ | | Scaleway | AS12876, AS29447 | ✅ | ✅ | | Scalaxy | AS58061 | ✅ | ✅ | | Telegram | AS62041, AS62014, AS211157, AS44907, AS59930 | ✅ | ❌ | | Vercel | NetworksDB API | ✅ | ✅ |

Usage

Guides for different apps are available in the wiki: https://github.com/123jjck/cdn-ip-ranges/wiki/Usage-(EN)

[!NOTE]
Also check out mihomo-configurator — a convenient browser tool for easy Mihomo configuration.

Refreshing the data

Run python3 scripts/update_cdn_lists.py locally to pull the latest ranges and rewrite the text files.

Automation

GitHub Actions (.github/workflows/update-cdn-lists.yml) executes the script every 12 hours and commits changes whenever new prefixes appear.

Chat with me