🌐 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:
<provider>_plain.txt– one subnet per line (IPv4 + IPv6).<provider>_plain_ipv4.txt– the same, but IPv4-only.<provider>_amnezia_ipv4.json– JSON for Amnezia VPN (IPv4-only, array of objects withhostname/ipfields).<provider>_geoip.dat– binary V2Ray GeoIP format (IPv4 + IPv6).<provider>_geoip_ipv4.dat– the same, but IPv4-only.<provider>_singbox.srs– binary sing-box ruleset format (IPv4 + IPv6).<provider>_singbox_ipv4.srs– the same, but IPv4-only.
| List | Folder | Contents |
|---|---|---|
all |
all/ |
Every provider in this repo — CDN, hosting, Discord Voice, Telegram, Meta, Roblox, 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, Roblox). Use this if you only need traffic routing for CDN infrastructure. |
Most common files (IPv4 plain text):
all/all_plain_ipv4.txtcdn-only/cdn-only_plain_ipv4.txt
| Provider | AS | In all |
In cdn-only |
|---|---|---|---|
| Akamai | AS20940, AS63949 | ✅ | ✅ |
| AWS | ip-ranges.json | ✅ | ✅ |
| 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 | ✅ | ✅ |
| MelBiCom | AS8849, AS56630 | ✅ | ✅ |
| Meta | AS32934 | ✅ | ❌ |
| Oracle | AS31898, AS6142, AS20054, AS54253 | ✅ | ✅ |
| OVH | AS16276 | ✅ | ✅ |
| Roblox | AS22697 | ✅ | ❌ |
| Scaleway | AS12876, AS29447 | ✅ | ✅ |
| Scalaxy | AS58061 | ✅ | ✅ |
| Telegram | AS62041, AS62014, AS211157, AS44907, AS59930 | ✅ | ❌ |
| Vercel | NetworksDB API | ✅ | ✅ |
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.
Run python3 scripts/update_cdn_lists.py locally to pull the latest ranges and rewrite the text files.
GitHub Actions (.github/workflows/update-cdn-lists.yml) executes the script every 12 hours and commits changes whenever new prefixes appear.