cdn-ip-ranges

repository·main·Indexed 42 days ago

https://github.com/123jjck/cdn-ip-ranges

A repository that aggregates and formats IPv4/IPv6 subnet lists for popular CDN and hosting providers. It provides data in multiple formats, including plain text, JSON for Amnezia VPN, V2Ray GeoIP binary files, and sing-box rulesets. The project offers two main collections: 'all', covering all active providers including Discord Voice, Telegram, and Meta, and 'cdn-only', focusing exclusively on CDN and hosting infrastructure.

Tokens
731
Snippets
3
Records
5
Agent score
5%

What's inside cdn-ip-ranges

  1. Overview of cdn_ip_ranges data formats

    main

    The cdn_ip_ranges repository collects IPv4 and IPv6 subnet lists for various CDN and hosting providers. Data is organized into per-provider folders. Each provider folder contains several file formats to support different networking tools:

    • <provider>_plain.txt: One subnet per line (IPv4 + IPv6).
    • <provider>_plain_ipv4.txt: One subnet per line (IPv4 only).
    • <provider>_amnezia_ipv4.json: JSON format for Amnezia VPN (IPv4 only, array of objects with hostname and ip fields).
    • <provider>_geoip.dat: Binary V2Ray GeoIP format (IPv4 + IPv6).
    • <provider>_geoip_ipv4.dat: Binary V2Ray GeoIP format (IPv4 only).
    • <provider>_singbox.srs: Binary sing-box ruleset format (IPv4 + IPv6).
    • <provider>_singbox_ipv4.srs: Binary sing-box ruleset format (IPv4 only).
  2. Choose between 'all' and 'cdn-only' lists

    main

    Depending on your use case, you can use one of two main collections:

    • all: Contains every active provider in the repository, including CDNs, hosting, Discord Voice, Telegram, Meta, and others. Use this for maximum coverage.
    • cdn-only: Contains only CDN and hosting providers. It excludes Discord Voice, Telegram, Meta, and deprecated providers. Use this if you only need traffic routing for CDN infrastructure.

    Commonly used IPv4 plain text files:

    • all/all_plain_ipv4.txt
    • cdn-only/cdn-only_plain_ipv4.txt
  3. Quick start with all or cdn-only lists

    main

    Depending on your routing needs, you can choose between two main collections:

    • all/: Contains all active providers in the repository, including CDNs, hosting, Discord Voice, Telegram, Meta, and others. Use this for maximum coverage.
    • cdn-only/: Contains only CDNs and hosting providers. It excludes Discord Voice, Telegram, Meta, and deprecated providers. Use this if you only want to route CDN traffic.

    Commonly used files (IPv4 plain text):

    • all/all_plain_ipv4.txt
    • cdn-only/cdn-only_plain_ipv4.txt
    # Example of selecting a list
    # For maximum coverage:
    # https://github.com/123jjck/cdn-ip-ranges/tree/main/all
    
    # For CDN/Hosting only:
    # https://github.com/123jjck/cdn-ip-ranges/tree/main/cdn-only