Go to file
2017-05-20 12:27:43 +03:00
goodbyedpi-rc.rc Initial commit 2017-05-16 22:33:24 +03:00
goodbyedpi.c Replace char* with const char* where appropriate 2017-05-20 12:25:20 +03:00
goodbyedpi.exe.manifest Initial commit 2017-05-16 22:33:24 +03:00
icon.ico Update README, Makefile and icon 2017-05-17 21:44:19 +03:00
LICENSE Initial commit 2017-05-16 21:48:52 +03:00
Makefile Update README, Makefile and icon 2017-05-17 21:44:19 +03:00
README.md Update Readme 2017-05-20 12:27:43 +03:00

GoodbyeDPI — Passive Deep Packet Inspection blocker and Active DPI circumvention utility

This software designed to bypass Deep Packet Inspection systems found in many Internet Service Providers which block access to certain websites.

It handles DPI connected using optical splitter or port mirroring (Passive DPI) which do not block any data but just replying faster than requested destination, and Active DPI connected in sequence.

Windows 7, 8, 8.1 and 10 with administrator privileges required.

How to use

Download latest version from Releases page and run.

Usage: goodbyedpi.exe [OPTION...]
 -p          block passive DPI
 -r          replace Host with hoSt
 -s          remove space between host header and its value
 -f [value]  set HTTP fragmentation to value
 -e [value]  set HTTPS fragmentation to value

 -1          enables all options, -f 2 -e 2 (most compatible mode, default)
 -2          enables all options, -f 2 -e 40 (better speed yet still compatible)
 -3          all options except HTTP fragmentation, -e 40 (even better speed)
 -4          all options except fragmentation (best speed)

Try to run goodbyedpi.exe without any arguments first. If you can open blocked websites it means your ISP has DPI which can be circumvented. This is the slowest mode.

Then try goodbyedpi.exe -2. It should be faster for HTTPS sites. Mode -3 speed ups HTTP websites.

Use goodbyedpi.exe -4 if it works for your ISP's DPI. This is the fastest mode but not compatible with every DPI.

How does it work

Passive DPI

Most Passive DPI send HTTP 302 Redirect if you try to access blocked website over HTTP and TCP Reset in case of HTTPS, faster than destination website. Packets sent by DPI have always have IP Identification field equal to 0x0000 or 0x0001, as seen with Russian providers. These packets, if they redirect you to another website (censorship page), are blocked by GoodbyeDPI.

Active DPI

Active DPI is more tricky to fool. Currently the software uses 3 methods to circumvent Active DPI:

  • TCP-level fragmentation for first data packet
  • Replacing Host header with hoSt
  • Removing space between header name and value in Host header

These methods do not break any website as are fully compatible with TCP and HTTP standards, yet it's sufficient to prevent DPI data classification and to circumvent censorship.

The program loads WinDivert driver which uses Windows Filtering Platform to set filters and redirect packets to the userspace. It's running as long as console window is visible and terminates when you close the window.

How to build from source

This project can be build using GNU Make and mingw. The only dependency is WinDivert.

To build x86 exe run:

make CPREFIX=i686-w64-mingw32 WINDIVERTHEADERS=/path/to/windivert/include WINDIVERTLIBS=/path/to/windivert/x86

And for x86_64:

make CPREFIX=x86_64-w64-mingw32 WINDIVERTHEADERS=/path/to/windivert/include WINDIVERTLIBS=/path/to/windivert/amd64

Similar projects

zapret by @bol-van (for Linux).

Kudos

Thanks @basil00 for WinDivert. That's the main part of this program.

Thanks for every BlockCheck contributor. It would be impossible to understand DPI behaviour without this utility.