cloudflare.cr v1.0.1

🚧 Under evaluation - Crystal Cloudflare Radar and Booster

Cloudflare.cr - Cloudflare Radar and Booster

Description

  • High-performance, reliable, and stable Cloudflare Edge Radar and Booster.
  • This repository is under evaluation and will replace Coffee.cr.
  • More description to be added.

Features

  • Radar
  • Scanner

Usage

  • Please check the examples folder.

Radar

  • Radar Configuration File (Standard Concurrent).
---
outputPath: $HOME/output.yml
quirks:
  concurrentCount: 230
  scanIpAddressType: ipv4_only
  numberOfScansPerIpBlock: 50
  maximumNumberOfFailuresPerIpBlock: 15
  skipRange:
    - 2
    - 4
excludes:
  - - LosAngeles_UnitedStates
  - - SanJose_UnitedStates
  - - LosAngeles_UnitedStates
    - SanJose_UnitedStates
endpoint:
  method: GET
  path: /__down?bytes=64
  port: 80
  headers:
    - User-Agent: "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50"
      Accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
      Accept-Language: "en-US,en;q=0.5"
      Connection: "keep-alive"
      Host: "speed.cloudflare.com:$PORT"
      Upgrade-Insecure-Requests: "1"
  _tls:
    hostname: speed.cloudflare.com
    verifyMode: peer
    options:
      - no_ssl_v2
      - no_ssl_v3
      - no_tls_v1
      - no_tls_v1_1
      - no_tls_v1_2
attempt:
  connect: 1
timeout:
  read: 2
  write: 2
  connect: 2
  • Radar Configuration File (Concurrent + SubProcess Parallel).
---
outputPath: $HOME/output.yml
quirks:
  concurrentCount: 230
  scanIpAddressType: ipv4_only
  numberOfScansPerIpBlock: 50
  maximumNumberOfFailuresPerIpBlock: 15
  skipRange:
    - 2
    - 4
excludes:
  - - LosAngeles_UnitedStates
  - - SanJose_UnitedStates
  - - LosAngeles_UnitedStates
    - SanJose_UnitedStates
endpoint:
  method: GET
  path: /__down?bytes=64
  port: 80
  headers:
    - User-Agent: "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50"
      Accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
      Accept-Language: "en-US,en;q=0.5"
      Connection: "keep-alive"
      Host: "speed.cloudflare.com:$PORT"
      Upgrade-Insecure-Requests: "1"
  _tls:
    hostname: speed.cloudflare.com
    verifyMode: peer
    options:
      - no_ssl_v2
      - no_ssl_v3
      - no_tls_v1
      - no_tls_v1_1
      - no_tls_v1_2
parallel:
  executableName: cloudflare
  calleeCount: 4
  listenAddress: tcp://0.0.0.0:4832
  type: sub_process
attempt:
  connect: 1
timeout:
  read: 2
  write: 2
  connect: 2
  • Radar Configuration File (Concurrent + Distributed Parallel).
parallel:
  calleeCount: 4
  type: distributed
  • Radar Configuration File (Concurrent + Hybrid (SubProcess & Distributed) Parallel).
parallel:
  calleeCount: 4
  subProcessCalleeCount: 2
  type: hybrid

Used as Shard

Add this to your application's shard.yml:

dependencies:
  cloudflare:
    github: 636f7374/cloudflare.cr

Installation

$ git clone https://github.com/636f7374/cloudflare.cr.git
$ cd cloudflare.cr && make build && make install

Development

$ make test

Credit

Contributors

Name Creator Maintainer Contributor
636f7374

License

  • GPLv3 License
Repository

cloudflare.cr

Owner
Statistic
  • 2
  • 0
  • 0
  • 0
  • 1
  • 6 months ago
  • February 26, 2021
License

GNU General Public License v3.0

Links
Synced at

Sun, 05 May 2024 14:16:34 GMT

Languages