Complete guide to zapret-openwrt, an anti-DPI tool for OpenWrt routers. Covers project architecture, configuration, DPI bypass strategies, LuCI web UI, scripts, updates, diagnostics, custom.d hooks, host lists, nfqws parameters, and procd service management.
Ships in zapret DPI Bypass on OpenWrt. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Zapret is an anti-DPI (Deep Packet Inspection) tool for OpenWrt routers. It is not a VPN — zapret does not change your IP address and does not hide traffic. Instead it modifies network packets to get past deep packet inspection systems.
Repository: https://github.com/remittor/zapret-openwrt
Upstream: https://github.com/bol-van/zapret
Current version: v72.20260307 (2026-03-07; nfqws/tpws from bol-van/zapret commit ef637c4, between v72.10 and v72.12). zapret2 flavour: v0.9.20260307 (bol-van/zapret2 d3b3011). Verified 2026-10-15.
Branches: zap1 (default) — zapret + luci-app-zapret; master — zapret2 + luci-app-zapret2.
Since then (unreleased in remittor as of 2026-10-15): updater uses apk add --force-non-repository (2026-04-22), Image Builder init fix, ipset exclude list refresh. Upstream bol-van v72.12 (armv7 crash fix), v72.13 (2026-07-21: Discord media port range in init.d), nfqws partial-root fix (2026-10-04) are not yet packaged; bol-van/zapret2 is at v1.0.5.2 (2026-09-15) while remittor ships 0.9.20260307.
The project consists of two packages:
| Package | Purpose |
|---|---|
zapret | Main package: the nfqws daemon, configs, scripts, ipset lists |
luci-app-zapret | Web UI for management via LuCI |
/opt/zapret/
├── nfq/nfqws # Main DPI desync daemon
├── ip2net/ip2net # IP-to-subnet converter
├── mdig/mdig # DNS utility
├── config # Working config (runtime)
├── config.default # Default template
├── def-cfg.sh # Strategies and defaults
├── sync_config.sh # UCI -> config sync
├── restore-def-cfg.sh # Reset settings
├── update-pkg.sh # Package updates
├── dwc.sh # DPI checker
├── comfunc.sh # Shared functions
├── init.d.sh # Init script (procd)
├── ipset/ # Host and IP lists
│ ├── zapret-hosts-google.txt
│ ├── zapret-hosts-user.txt
│ ├── zapret-hosts-user-exclude.txt
│ ├── zapret-hosts-auto.txt
│ ├── zapret-ip-exclude.txt
│ ├── zapret-ip-user.txt
│ ├── zapret-ip-user-exclude.txt
│ └── cust[1-4].txt
├── files/fake/ # Fake packet templates (.bin)
└── init.d/openwrt/custom.d/ # User hook scripts
├── 10-script.sh
├── 20-script.sh
├── 50-script.sh # Example: Discord/STUN
├── 60-script.sh
└── 90-script.sh
Zapret uses a dual configuration system:
/etc/config/zapret) — stores the settings edited via LuCI/opt/zapret/config) — used by the nfqws daemonOn every start/restart sync_config.sh runs and syncs the UCI values into the main config.
zapret and luci-app-zapret packagesv6_by_StressOzz or v7_by_StressOzz recommended)Full reference for all config parameters: read references/config.md in this skill's directory.
Key parameter groups:
Full description of all strategies: read references/strategies.md in this skill's directory.
Available strategies (defined in def-cfg.sh):
| Strategy | TCP ports | UDP ports | Notes |
|---|---|---|---|
| empty | 80,443 | 443 | Empty, no desync |
| v1_by_StressOzz | 80,443 | 443 | fake,multidisorder + QUIC fake |
| v2_by_StressOzz | 80,443 | 443 | fake,fakeddisorder + seqovl |
| v3_by_StressOzz | 80,443 | 443 | Like v2, different TLS template (t2.bin) |
| v4_by_StressOzz | 80,443 | 443 | fake,multisplit + 3 --new sections |
| v5_by_StressOzz | 80,443 | 443 | ip-id=zero + multisplit |
| v6_by_StressOzz | 80,443,2053,2083,2087,2096,8443 | 443,19294-19344,50000-50100 | Discord + STUN support |
| v7_by_StressOzz | 80,443,2053,2083,2087,2096,8443 | 443,19294-19344,50000-50100 | Improved v6, more repeats |
| v9_by_StressOzz | 80,443,2053,2083,2087,2096,8443 | 443,19294-19344,50000-50100 | hostfakesplit variant |
| ALT7_by_Flowseal | 80,443 | 443 | ip-id=zero, multisplit + seqovl |
| TLS_AUTO_ALT3_by_Flowseal | 80,443 | 443 | fooling=ts, more repeats |
Default strategy: v6_by_StressOzz
Full UI reference: read references/ui.md in this skill's directory.
The LuCI UI lives at Services -> Zapret and has 5 pages:
service.js) — service control, status, enable/disable/start/stop/restart/reset buttons, diagnostics, updatessettings.js) — settings in 5 tabs: Main settings, NFQWS options, AutoHostList, Host lists, custom.ddmnlog.js) — live daemon logs (polled every second)diagnost.js) — DPI check and Sites check via dwc.shupdater.js) — check for and install updates from GitHubFull scripts reference: read references/scripts.md in this skill's directory.
| Script | Purpose |
|---|---|
comfunc.sh | Shared functions: paths, PID, config validation, init_before_start |
init.d.sh | Procd init script (START=21, USE_PROCD=1) |
sync_config.sh | UCI -> config sync on start/restart |
def-cfg.sh | Strategy definitions and default values |
restore-def-cfg.sh | Reset the config to defaults |
update-pkg.sh | Package updates from GitHub (options: -c, -p, -u, -f, -t) |
dwc.sh | DPI checker (TCP 16-20 test, site checks) |
script-exec.sh | Run scripts in the background with logging |
renew-cfg.sh | Refresh the config at boot |
uci-def-cfg.sh | Create the UCI config at install time |
| File | Purpose | Format |
|---|---|---|
zapret-hosts-google.txt | YouTube/Google domains (default) | One domain per line |
zapret-hosts-user.txt | User domains <HOSTLIST> | One domain per line |
zapret-hosts-user-exclude.txt | Exclusions | One domain per line |
zapret-hosts-auto.txt | Automatically detected hosts | Filled by autohostlist |
zapret-ip-exclude.txt | Excluded IPs/subnets | IP or CIDR (128.199.0.0/16) |
zapret-ip-user.txt | User IPs | IP or CIDR |
zapret-ip-user-exclude.txt | Excluded user IPs | IP or CIDR |
cust[1-4].txt | Custom files (up to 4) | Free-form |
<HOSTLIST> — expands to --hostlist and --hostlist-exclude from the standard lists; works in hostlist and autohostlist modes<HOSTLIST_NOAUTO> — the same, but zapret-hosts-auto.txt is added as a regular (non-auto) listHooks run on service start/stop in numeric order:
10-script.sh — early init20-script.sh — early main phase50-script.sh — main phase (example: Discord/STUN4ALL)60-script.sh — late main phase90-script.sh — final phaseEnabled with DISABLE_CUSTOM=0 (UI: custom.d tab -> "Use custom.d scripts").
Builds run on GitHub Actions (.github/workflows/build.yml):
v[0-9]+* tag or a manual runFull troubleshooting: read references/troubleshooting.md in this skill's directory.
Quick checks:
service zapret status)zapret-openwrt/
├── zapret/ # Main package
│ ├── Makefile # OpenWrt SDK build
│ ├── config.default # Config template
│ ├── *.sh # Shell scripts
│ ├── custom.d/ # custom.d hooks
│ ├── files/fake/ # .bin packet templates
│ ├── ipset/ # Host/IP lists
│ └── patches/ # Patches for upstream
└── luci-app-zapret/ # LuCI package
├── Makefile
├── htdocs/luci-static/resources/view/zapret/
│ ├── env.js # Paths and constants
│ ├── tools.js # Utilities, RPC, dialogs
│ ├── service.js # Service page
│ ├── settings.js # Settings page
│ ├── diagnost.js # Diagnostics
│ ├── updater.js # Updater
│ ├── dmnlog.js # Log viewer
│ └── styles.css # Styles
└── root/usr/share/
├── luci/menu.d/ # Menu definition
└── rpcd/acl.d/ # ACL rules
if [ "$strat" = "strategy_name" ] block to def-cfg.shenv.js — all paths, file names, URLs (loaded first)tools.js — RPC calls, POLLER, fileEditDialog, longstrEditDialog, decode_svc_infoview.extend() or baseclass.extend()Russian version: references/README.ru.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
/zapret-openwrt-guide:zapret-openwrt-guidefrom zapret DPI Bypass on OpenWrt
npx claudepluginhub nordz0r/skills --plugin zapret-openwrt-guide2 plugins in one repository ship this exact skill · first indexed Nov 15, 2026