Skip to content
Mahdi Heidari edited this page Feb 8, 2023 · 2 revisions

Generating vmess url with CDN IPs as address and our domain as host & sni

usage: cdnGen [-h] [--cdn {arvan,cloudflare}] [-f FILE] [--url URL] [-n NUMBER] [-v] [-o OUTPUT] link

positional arguments:
  link                  vmess link

options:
  -h, --help            show this help message and exit
  --cdn {arvan,cloudflare}
                        cdn name
  -f FILE, --file FILE  file contains cdn IPs
  --url URL             url to get cdn IPs
  -n NUMBER, --number NUMBER
                        number of IP to generate (default: all)
  -v, --verbose         increase output verbosity
  -o OUTPUT, --output OUTPUT
                        output file

example :

  • Generate 400 IP from cloudflare and check them with v2rayChecker
    cdnGen "vmess://blahblah" -n 400 --cdn cloudflare | v2rayChecker --stdin -T 50 -x -v
  • Generate 100 IP from specified file and check them with v2rayChecker
    cdnGen "vmess://blahblah" -n 100 -f cdnsIP.txt | v2rayChecker --stdin -T 10 -x -v
  • Generate 100 IP from specified url and check them with v2rayChecker
    cdnGen "vmess://blahblah" -n 100 --url 'https://www.site.xyz/cdnsIp.txt'| v2rayChecker --stdin -T 10 -x -v