How xmodern54/zapret-bf works
Purpose and Platform
Zapret-BF is a Windows distribution of packet-filtering launch profiles for restoring Battlefield 6 matchmaking connectivity when ISP DPI filtering interferes with game-server handshakes. It is a fork-oriented bundle, not an application with source modules: strategy scripts invoke a bundled packet-processing executable and driver.
User and Service Entry Points
Users launch one of the root strategy batch files, beginning with the recommended profiles:
• General-BF (SIMPLE FAKE).bat
• General-BF (ALT8).bat
• General-BF.bat
A selected working strategy can be installed for persistent execution through service.bat. The batch files are therefore the primary control plane and encapsulate differing interception/desynchronization parameters.
Packet Interception Runtime
The operational boundary is the bundled Windows-native runtime:
• bin/winws.exe
• bin/WinDivert64.sys
• bin/game_filter.enabled
winws.exe applies filtering and packet modification rules; the signed WinDivert driver provides kernel-level traffic capture/diversion on 64-bit Windows. This requires elevated permissions and may be flagged by endpoint security products. After the connection setup phase, traffic is intended to proceed directly rather than through a proxy or tunnel.
Handshake Manipulation Inputs
Strategies alter signatures of early packets for match connections so DPI permits session establishment. Reusable binary payloads support protocol-specific fake/modified handshakes:
• bin/tls_clienthello_www_google_com.bin
• bin/quic_initial_www_google_com.bin
The architecture is selective: it targets connection-establishment traffic, especially TCP/TLS/QUIC/UDP variants, rather than routing all Battlefield traffic through an intermediary.
Targeting Data and Strategy Matrix
Static lists scope the destinations and ports affected:
• lists/ipset-all.txt
• lists/list-general.txt
• lists/port-bf.txt
Root profiles provide broadly usable fake-TLS and alternate strategies. The Debug tree is a structured experimental matrix for Battlefield 6, separating packet filters from launcher profiles:
• Debug/filters/wf-bf6-443.txt
• Debug/filters/wf-bf6-hybrid.txt
• Debug/profiles/General-BF (BF6 B TCP+QUIC443).bat
This enables testing combinations of transport selection, port ranges, local/wide UDP scope, and protocol-specific handshake methods without changing the core runtime.
Diagnostics and Validation
Developer-oriented utilities support inspecting connectivity and validating candidate strategies:
• Debug/net.py
• Debug/tools/run_handshake.py
• Debug/profiles-test/README.txt
These form a separate experimentation boundary from release-ready root profiles. build.py likely assembles the distributable bundle, while release artifacts depend on upstream Zapret WinWS/WinDivert binaries rather than locally implemented packet-processing code.
External Dependencies and Boundaries
The package relies on Windows networking/kernel driver facilities and upstream binaries from bol-van/zapret-win-bundle. It interacts with ISP DPI behavior and Battlefield infrastructure hosted on AWS, but does not expose a web service, proxy endpoint, or game API integration. Strategy effectiveness is explicitly provider- and region-dependent.
Main entry points: winws.exe WinWS packet processor · General-BF (SIMPLE FAKE).bat Recommended strategy profiles · General-BF (BF6 B TCP+QUIC443).bat BF6 TCP+QUIC profile · General-BF.bat General BF profile
Components 18
Release profiles
User-facing launch and installation control plane.
- Recommended strategy profiles · Select fake-TLS or ALT8 packet-handling parameters.
General-BF (SIMPLE FAKE).bat - General BF profile
General-BF.bat - Persistent service installer · Installs a selected strategy for persistent execution.
service.bat - Target IP and port lists · Scopes affected Battlefield destinations and ports.
lists/ipset-all.txt
Packet runtime
Native Windows interception boundary.
- WinWS packet processor · Applies filtering and packet-modification rules.
bin/winws.exe - WinDivert kernel driver · Captures and diverts traffic on 64-bit Windows.
bin/WinDivert64.sys - Game filter switch
bin/game_filter.enabled - Fake TLS ClientHello
bin/tls_clienthello_www_google_com.bin - Fake QUIC Initial
bin/quic_initial_www_google_com.bin
Debug matrix
Experimental filters, profiles, and validation tools.
- BF6 packet filters · Transport and port-selection experiments.
Debug/filters/wf-bf6-443.txt - BF6 TCP+QUIC profile
Debug/profiles/General-BF (BF6 B TCP+QUIC443).bat - Network diagnostics
Debug/net.py - Handshake validator · Validates candidate handshake strategies.
Debug/tools/run_handshake.py - Profile test notes
Debug/profiles-test/README.txt
Other components
- Windows user
- ISP DPI filtering · The handshake manipulation is intended to evade this filtering.
- Battlefield infrastructure · Receives direct traffic after connection setup.
- Distribution builder · Assembles the distributable bundle.
build.py
Connections 21
- Windows user → Recommended strategy profiles: launches
- Windows user → General BF profile: launches
- Recommended strategy profiles → Persistent service installer: can install
- Recommended strategy profiles → Target IP and port lists: uses
- General BF profile → Target IP and port lists: uses
- Recommended strategy profiles → WinWS packet processor: invokes
- General BF profile → WinWS packet processor: invokes
- Persistent service installer → WinWS packet processor: runs persistently
- WinWS packet processor → WinDivert kernel driver: uses for interception
- Game filter switch → WinWS packet processor: enables game filter
- Fake TLS ClientHello → WinWS packet processor: supplies fake handshake
- Fake QUIC Initial → WinWS packet processor: supplies fake handshake
- WinWS packet processor → ISP DPI filtering: modifies setup traffic through
- WinWS packet processor → Battlefield infrastructure: permits direct session traffic to
- BF6 packet filters → BF6 TCP+QUIC profile: parameterizes
- BF6 TCP+QUIC profile → WinWS packet processor: invokes experimentally
- Network diagnostics → Handshake validator: supports validation
- Handshake validator → BF6 TCP+QUIC profile: evaluates
- Profile test notes → BF6 TCP+QUIC profile: documents tests for
- Distribution builder → Recommended strategy profiles: packages
- Distribution builder → WinWS packet processor: bundles upstream runtime