
Multi-platform DPI bypass toolkit using packet-level TCP/UDP desync, segmentation, and fake-packet techniques to evade deep packet inspection on Linux, OpenWrt, BSD, macOS, and Windows.
This software is free and open source under MIT license. If anyone demands you to download this software only from their webpage, telegram channel, forces you to delete links, videos, makes copyright claims, you are dealing with scammers. However, donations are welcome.
zapret 1 is EOL (End-Of-Life). Will be no more new features, no PR will be accepted. Current version is zapret2.
A stand-alone (without 3rd party servers) DPI circumvention tool. May allow to bypass http(s) website blocking or speed shaping, resist signature tcp/udp protocol discovery.
The project is mainly aimed at the Russian audience. Some features of the project are russian reality specific (such as getting list of sites blocked by Roskomnadzor), but most others are common.
Mainly OpenWRT targeted but also supports traditional Linux, FreeBSD, OpenBSD, Windows, partially MacOS.
Most features are also supported in Windows.
In the simplest case you are dealing with passive DPI. Passive DPI can read passthrough traffic, inject its own packets, but cannot drop packets.
If the request is prohibited the passive DPI will inject its own RST packet and optionally http redirect packet.
If fake packets from DPI are only sent to client, you can use iptables commands to drop them if you can write correct filter rules. This requires manual in-deep traffic analysis and tuning for specific ISP.
This is how we bypass the consequences of a ban trigger.
If the passive DPI sends an RST packet also to the server, there is nothing you can do about it. Your task is to prevent ban trigger from firing up. Iptables alone will not work. This project is aimed at preventing the ban rather than eliminating its consequences.
To do that send what DPI does not expect and what breaks its algorithm of recognizing requests and blocking them.
Some DPIs cannot recognize the http request if it is divided into TCP segments.
For example, a request of the form GET / HTTP / 1.1 \ r \ nHost: kinozal.tv ......
we send in 2 parts: first go GET, then / HTTP / 1.1 \ r \ nHost: kinozal.tv ......
Other DPIs stumble when the Host: header is written in another case: for example, host:.
Sometimes work adding extra space after the method: GET / => GET /
or adding a dot at the end of the host name: Host: kinozal.tv.
There is also more advanced magic for bypassing DPI at the packet level.
In short, the options can be classified according to the following scheme:
For options 2 and 3, tpws and nfqws programs are implemented, respectively. You need to run them with the necessary parameters and redirect certain traffic with iptables or nftables.
This program is a packet modifier and a NFQUEUE queue handler. For BSD systems there is dvtws. Its built from the same source and has almost the same parameters (see bsd.en.md). nfqws takes the following parameters:
@<config_file> ; read file for options. must be the only argument. other options are ignored.