All Projects → ValdikSS → Goodbyedpi

ValdikSS / Goodbyedpi

Licence: apache-2.0
GoodbyeDPI—Passive Deep Packet Inspection blocker and Active DPI circumvention utility (for Windows)

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Goodbyedpi

Powertunnel Android
Simple, scalable, cross-platform and effective solution against government censorship for Android
Stars: ✭ 157 (-96.82%)
Mutual labels:  anticensorship, dpi, censorship-circumvention
Dpitunnel
DPITunnel is an android app made for censorship bypass
Stars: ✭ 179 (-96.37%)
Mutual labels:  anticensorship, dpi, censorship-circumvention
SpoofDPI
A simple and fast anti-censorship tool written in Go
Stars: ✭ 170 (-96.56%)
Mutual labels:  dpi, censorship-circumvention, deep-packet-inspection
Powertunnel
Simple, scalable, cross-platform and effective solution against government censorship
Stars: ✭ 157 (-96.82%)
Mutual labels:  anticensorship, dpi, censorship-circumvention
Ndpi
Open Source Deep Packet Inspection Software Toolkit
Stars: ✭ 2,705 (-45.2%)
Mutual labels:  dpi, deep-packet-inspection
Reqrypt
A censorship circumvention tool
Stars: ✭ 337 (-93.17%)
Mutual labels:  anticensorship, censorship-circumvention
Awesome Anti Censorship
curated list of open-source anti-censorship tools
Stars: ✭ 521 (-89.44%)
Mutual labels:  anticensorship, censorship-circumvention
Notsodeep
Active DPI circumvention utility for Linux
Stars: ✭ 56 (-98.87%)
Mutual labels:  dpi, censorship-circumvention
Orbot
The Github home of Orbot: Tor on Android (Also available on gitlab!)
Stars: ✭ 629 (-87.26%)
Mutual labels:  anticensorship, censorship-circumvention
Tinylist
Tiny version of gfwlist, focusing on common websites ONLY
Stars: ✭ 139 (-97.18%)
Mutual labels:  anticensorship, censorship-circumvention
shapeshifter-transports
Shapeshifter Transports is a set of Pluggable Transports implementing the Go API from the Pluggable Transports 2.0 specification
Stars: ✭ 31 (-99.37%)
Mutual labels:  anticensorship, censorship-circumvention
bebasdns
Membantumu berselancar dengan aman dan tidak terbatas!.
Stars: ✭ 56 (-98.87%)
Mutual labels:  anticensorship, censorship-circumvention
Greentunnel
GreenTunnel is an anti-censorship utility designed to bypass the DPI system that is put in place by various ISPs to block access to certain websites.
Stars: ✭ 2,477 (-49.82%)
Mutual labels:  dpi, deep-packet-inspection
Blockcheck
Russian ISP blocking type checker NOTE: NOT WORKING CURRENTLY. ВНИМАНИЕ: НЕ РАБОТАЕТ НА ТЕКУЩИЙ МОМЕНТ
Stars: ✭ 1,218 (-75.32%)
Mutual labels:  dpi, censorship-circumvention
Zapret
Обход DPI в linux
Stars: ✭ 1,148 (-76.74%)
Mutual labels:  dpi, censorship-circumvention
Gfwlist
The one and only one gfwlist here
Stars: ✭ 19,033 (+285.6%)
Mutual labels:  anticensorship, censorship-circumvention
Trojan
An unidentifiable mechanism that helps you bypass GFW.
Stars: ✭ 15,248 (+208.91%)
Mutual labels:  anticensorship, censorship-circumvention
gotapdance
Moved to https://github.com/refraction-networking/gotapdance
Stars: ✭ 29 (-99.41%)
Mutual labels:  anticensorship, censorship-circumvention
Bebasid
bebasid dapat membantu membuka halaman situs web yang diblokir oleh pemerintah Indonesia dengan memanfaatkan hosts file.
Stars: ✭ 372 (-92.46%)
Mutual labels:  anticensorship, censorship-circumvention
ArchLinuxTutorial
✨Arch Linux安装使用教程 每日实时更新! | 包含ArchLinux从安装到日常使用、娱乐、编程、媒体制作的各个方面,让Arch成为你的常用系统吧! | 提供在线网页文档 ✨
Stars: ✭ 513 (-89.61%)
Mutual labels:  censorship-circumvention

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
 -m          mix Host header case (test.com -> tEsT.cOm)
 -f [value]  set HTTP fragmentation to value
 -k [value]  enable HTTP persistent (keep-alive) fragmentation and set it to value
 -n          do not wait for first segment ACK when -k is enabled
 -e [value]  set HTTPS fragmentation to value
 -a          additional space between Method and Request-URI (enables -s, may break sites)
 -w          try to find and parse HTTP traffic on all processed ports (not only on port 80)
 --port        [value]    additional TCP port to perform fragmentation on (and HTTP tricks with -w)
 --ip-id       [value]    handle additional IP ID (decimal, drop redirects and TCP RSTs with this ID).
                          This option can be supplied multiple times.
 --dns-addr    [value]    redirect UDP DNS requests to the supplied IP address (experimental)
 --dns-port    [value]    redirect UDP DNS requests to the supplied port (53 by default)
 --dnsv6-addr  [value]    redirect UDPv6 DNS requests to the supplied IPv6 address (experimental)
 --dnsv6-port  [value]    redirect UDPv6 DNS requests to the supplied port (53 by default)
 --dns-verb               print verbose DNS redirection messages
 --blacklist   [txtfile]  perform HTTP tricks only to host names and subdomains from
                          supplied text file. This option can be supplied multiple times.
 --set-ttl     [value]    activate Fake Request Mode and send it with supplied TTL value.
                          DANGEROUS! May break websites in unexpected ways. Use with care.
 --wrong-chksum           activate Fake Request Mode and send it with incorrect TCP checksum.
                          May not work in a VM or with some routers, but is safer than set-ttl.

 -1          -p -r -s -f 2 -k 2 -n -e 2 (most compatible mode, default)
 -2          -p -r -s -f 2 -k 2 -n -e 40 (better speed for HTTPS yet still compatible)
 -3          -p -r -s -e 40 (better speed for HTTP and HTTPS)
 -4          -p -r -s (best speed)

To check if your ISP's DPI could be circumvented, run 3_all_dnsredir_hardcore.cmd first. This is the most hardcore mode which will show if this program is suitable for your ISP and DPI vendor at all. If you can open blocked websites with this mode, it means your ISP has DPI which can be circumvented. This is the slowest and prone to break websites mode, but suitable for most DPI.

Try goodbyedpi -1 to see if it works too.

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 usually 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 7 methods to circumvent Active DPI:

  • TCP-level fragmentation for first data packet
  • TCP-level fragmentation for persistent (keep-alive) HTTP sessions
  • Replacing Host header with hoSt
  • Removing space between header name and value in Host header
  • Adding additional space between HTTP Method (GET, POST etc) and URI
  • Mixing case of Host header value
  • Sending fake HTTP/HTTPS packets with low Time-To-Live value or incorrect checksum to fool DPI and prevent delivering them to the destination

These methods should not break any website as they're fully compatible with TCP and HTTP standards, yet it's sufficient to prevent DPI data classification and to circumvent censorship. Additional space may break some websites, although it's acceptable by HTTP/1.1 specification (see 19.3 Tolerant Applications).

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- BIT64=1 WINDIVERTHEADERS=/path/to/windivert/include WINDIVERTLIBS=/path/to/windivert/amd64

How to install as Windows Service

Use service_install_russia_blacklist.cmd, service_install_russia_blacklist_dnsredir.cmd and service_remove.cmd scripts.
Modify them according to your own needs.

Known issues

  • Horribly outdated Windows 7 installations are not able to load WinDivert driver due to missing support for SHA256 digital signatures. Install KB3033929 x86/x64, or better, update the whole system using Windows Update.
  • Some SSL/TLS stacks unable to process fragmented ClientHello packets, and HTTPS websites won't open. Bug: #4, #64.
  • ESET Antivirus is incompatible with WinDivert driver #91. This is most probably antivirus bug, not WinDivert.

Similar projects

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].