How indeecfox/zapret4rocket works
Project type and purpose
• This is an open-source, cross-platform shell-script utility (“z4r”) whose goal is to install and configure the “zapret” blocking-circumvention service on Linux VPS and various router firmwares (OpenWRT, MerlinWRT, Keenetic/Entware).
• It bundles:
• A CLI-driven installer/updater (z4r) with interactive menu and strategy autobuyer
• A library of traffic-diversion strategies (extra_strats)
• Fake-packet binaries (fake/) to simulate TLS/QUIC/SYN handshakes
• Host-lists (lists/) of domains/IPs to route through zapret
• Entrypoint configuration (config.default, 3proxy.cfg)
File structure
• Top-level script: z4r (shell), merlin_wan_restart_zapret.sh, extra utility scripts (user_test2.sh, etc.)
• “Entware/” folder: platform-specific bootstrap scripts for routers running Entware
• “extra_strats/”: multiple directories (TCP, UDP) each containing per-strategy text files for RKN, YouTube, User-defined, etc.
• “fake/”: pre-built .bin files used by the installer to generate fake handshake traffic
• “lists/”: domain/IP lists used by zapret config (cloudflare, Telegram CIDRs, etc.)
• README.md: describes installation, update flow, supported platforms, dependencies
README for insights
• The installer uses curl (or wget) to pull the latest zapret release from GitHub, unpacks it in memory or /opt, and deploys its config and fakes.
• It detects OS (Ubuntu/Debian vs OpenWRT/Keenetic vs MerlinWRT), applies platform patches (iptables vs nftables, kernel modules), and offers an interactive menu for stopping/starting zapret, selecting strategies, editing config, and uninstalling.
Detail and clarity
• Grouping:
[z4r script]
├─ Core Logic (install, update, menu)
├─ Asset Store
└─ Platform Adapters