Skip to main content

blockchecks

Asynchronous DPI (Deep Packet Inspection) strategy testing framework for nfqws2 / zapret2.

It runs thousands of desync strategies against target domains inside isolated network namespaces, using a browser-grade TLS fingerprint (JA4 via curl_cffi), and reports which combinations actually work on a given network. Results are stored in SQLite and can be exported to ready-to-use nfqws2 configuration files for Keenetic / OpenWrt / Linux routers.

Features

  • Fast: ~1 test/sec (33× faster than the reference blockcheck.sh) via asyncio + a reused netns pool.
  • Accurate: browser-grade JA4 TLS fingerprint (Chrome BoringSSL), content validation, DPI fake-detection.
  • TCP + UDP: TCP strategy families, HTTP :80, QUIC/HTTP3, and Discord Voice UDP endpoint discovery (STUN + IP Discovery).
  • Resilient: checkpoint/resume, SQLite state, adaptive priority queue.
  • Tooling: static strategy validator (offline, 9+ rules), custom Lua registry, MCP server for LLM agents.
  • Portable: installs on x86_64, arm64 and armv7l (Raspberry Pi 2+) without compiling native dependencies.

Requirements

  • Linux with root (needed for network namespaces + iptables)
  • Python 3.10+
  • nfqws2 / zapret2 (auto-fetched on first run)

Quick start

pip install blockchecks

# First scan — ~30 strategies against discord.com
sudo bs scan -d discord.com --generate --parallel 4

# Resume after interruption (checkpoint/resume)
sudo bs scan -d discord.com --generate --resume

Export a router config

# default: ~/.local/share/blockcheckS/export/nfqws2_<ts>.conf (+ raw, user.list)
bc-nfconf --db logs/run.db --out-dir /path/to/out

# optional: add an IP filter from the DNS cache (no DNS needed on the router)
bc-nfconf --db logs/run.db --out-dir /path/to/out --ipset

Documentation

License

MIT — see LICENSE.

Disclaimer

This software is an open-source analytical tool for educational, academic and network-research purposes, intended for network administrators and systems engineers to study DPI behaviors. Use entirely at your own risk.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

blockchecks-1.3.6.tar.gz (350.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

blockchecks-1.3.6-py3-none-any.whl (362.8 kB view details)

Uploaded Python 3

File details

Details for the file blockchecks-1.3.6.tar.gz.

File metadata

  • Download URL: blockchecks-1.3.6.tar.gz
  • Upload date:
  • Size: 350.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for blockchecks-1.3.6.tar.gz
Algorithm Hash digest
SHA256 4c3de31169e88d2382dadde9605176f8982cc064b510dc5b27f0a7f2020d441f
MD5 c6be2a5c64ca8cbf57adfbaf87b999d7
BLAKE2b-256 9c2b2c5460eb950036f161b1161ad05acb6edb96318d6d187dd3e29835de7a26

See more details on using hashes here.

File details

Details for the file blockchecks-1.3.6-py3-none-any.whl.

File metadata

  • Download URL: blockchecks-1.3.6-py3-none-any.whl
  • Upload date:
  • Size: 362.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for blockchecks-1.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6ceb8128992b9fa7ac8e398be97be7c5b271b20f1c20ea68fc0ed3a8518cd743
MD5 8efb470d5266542a9f1641b293d7fcb0
BLAKE2b-256 56fae137e9401a2ffc0ef3190acf98849530760af5f65f1ed6a1a9ce313d231a

See more details on using hashes here.

Release history Release notifications | RSS feed

1.4.1

2 files

1.4.0

2 files

1.3.7

2 files

This release

1.3.6 This release

2 files

1.3.5

2 files

1.3.4

2 files

1.3.3

2 files

1.3.2

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page