Skip to content
CerberoozPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Fade — Load / Resilience Testing Tool

A simple tool for putting realistic Layer 4/7 load on your own infrastructure to see how it (and any DDoS mitigation in front of it) holds up. HTTP, TCP, UDP, packet-rate, and Minecraft Java protocol workloads, driven from a CLI or a local web GUI.

Two guardrails: allowlist.txt and port-allowlist.txt. Every module checks its target IP and destination port against plain-text allowlists before sending anything; an unlisted destination or port is refused. There is no IP spoofing, reflection, amplification, or arbitrary-destination path — the modules use connected sockets and send direct, non-spoofed traffic only. See docs/safety.md.

Quick start

go build -o bin/gui.exe ./apps/gui
bin\gui.exe          # loads both allowlist files, serves http://localhost:8090

Open http://localhost:8090 , pick a module and rate, press Start. Or use the CLI:

go build -o bin/worker.exe ./apps/worker
bin\worker.exe -scenario scenarios/edge-capacity-test.yaml -host 127.0.0.1 -port 8088 -module http

Edit allowlist.txt to list the targets you're allowed to hit and port-allowlist.txt to list their permitted ports. Port entries may be a single port (443) or an inclusive range (8000-8100). If you omit -port, the worker runs the bounded scenario once for every allowed port, expanding ranges inclusively.

Controlled infrastructure test checklist

  1. Confirm the target is a host you own or have explicit permission to test, and use a fixed IP or narrow CIDR in allowlist.txt (not a broad public range) plus only the needed ports or narrow port ranges in port-allowlist.txt.
  2. Start with scenarios/smoke.yaml and observe application, network, and OVH mitigation telemetry before raising the load. Run one workload at a time.
  3. Keep an out-of-band management path available and verify the GUI KILL button or Ctrl-C stops the run before proceeding.
  4. This runner enforces conservative per-run caps: 100 Mbps, 10,000 PPS, 2,000 concurrent connections, 1,000 RPS, and five minutes. Its packet module also requires an active egress firewall and an explicit confirmation flag.
  5. For Minecraft, select the journey (status, login, or play), set pass/fail criteria, and compare each bounded window with VPS, TPS/GC, proxy, database, and log telemetry. See docs/minecraft-capacity-testing.md.
  6. For Layer 3, use an authorized UDP echo responder to measure loss, and compare each bounded window against NIC, softirq, conntrack, and edge telemetry. See docs/layer3-capacity-testing.md.

Repository layout

allowlist.txt     destination IP/CIDR guardrail
port-allowlist.txt destination port/range guardrail
apps/
  gui/            local web UI (single self-contained Go binary)
  worker/         CLI load runner
  controller/     optional metrics + kill-switch endpoint
  dashboard/      React + Vite dashboard (scaffold)
internal/
  allowlist/      the CIDR allowlist check
  portlist/       the destination port/range allowlist check
  workloads/      traffic modules: http, tcp, udp, packet, minecraft
  scenarios/      declarative scenario format + phase/intensity engine
  ratelimit/      token-bucket pacing
  safety/         runaway guard (max lifetime) + kill switch
  scheduler/      regional weighting (for multi-runner use)
  reports/        failure-threshold analysis (Max Sustainable Load, etc.)
  probe/          baseline "legitimate user" probe
  telemetry/      Prometheus metrics
monitoring/       prometheus + grafana config (optional stack)
scenarios/        example scenarios
deployments/      Dockerfiles + optional compose stack
docs/             architecture, safety, development

Status

  • Traffic modules: HTTP, TCP, UDP, packet-rate, Minecraft Java (bounded, connected-socket, no spoofing)
  • IP and port allowlist guardrails (internal/allowlist, internal/portlist)
  • Scenario engine, rate pacing, runaway guard + kill switch
  • Local GUI + CLI runner
  • Failure-threshold analysis, baseline probe, regional scheduler (library code)
  • Prometheus/Grafana wiring (optional)
  • Remaining modules: WebSocket, iperf3/k6 drivers
  • React dashboard (scaffold only)

Build

Requires Go 1.25+.

make build     # gui, worker, controller
make test      # unit + integration tests
make up        # optional: grafana/prometheus stack

See docs/development.md.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages