Skip to content
TheChatArchiveThe Chat Archive
o1-preview-2024-09-12· OpenAIAi2 WildChat-4.8M (AI2)

How does it work Passive DPI Most Passive DPI send HTTP 302 Redirect if you try to…

  1. User

    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, incorrect checksum or incorrect TCP Sequence/Acknowledgement numbers 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.

  2. Assistant

    GoodbyeDPI is a software tool designed to bypass internet censorship mechanisms that rely on Deep Packet Inspection (DPI). DPI is a technology used by some internet service providers and governments to monitor and control the data flowing through their networks. It examines the contents of data packets at a granular level to identify and potentially block or redirect certain types of traffic, such as access to specific websites or services.

    How GoodbyeDPI Works:

    GoodbyeDPI employs several techniques to prevent DPI systems from correctly identifying and blocking internet traffic without violating the TCP/IP and HTTP protocols. It essentially modifies the network packets in ways that are permissible under protocol standards but unexpected by DPI systems. Here’s a breakdown of how it addresses both Passive and Active DPI systems:


    1. Passive DPI Circumvention

    Passive DPI Behavior:

    • HTTP Traffic: When accessing a blocked website over HTTP (unencrypted), Passive DPI may send an HTTP 302 Redirect response to redirect the user to a censorship or warning page.
    • HTTPS Traffic: For HTTPS (encrypted) connections, Passive DPI might send a TCP Reset (RST) packet to terminate the connection prematurely.
    • Identification: Packets from Passive DPI often have an IP Identification field set to 0x0000 or 0x0001.

    GoodbyeDPI’s Approach:

    • Blocking DPI Packets: The software identifies these DPI-generated packets based on their unique characteristics and blocks them. This allows the original connection to proceed to the intended destination without interruption.

    2. Active DPI Circumvention

    Active DPI systems interact more aggressively with network traffic and require more sophisticated methods to bypass. GoodbyeDPI uses a combination of techniques to prevent Active DPI from detecting and blocking connections.

    Techniques Used:

    1. TCP-Level Fragmentation of Initial Data Packets:

      • What It Does: Splits the first data packet of a TCP connection into smaller fragments.
      • Why It Works: DPI systems often have difficulty reassembling fragmented packets, causing them to miss the signature they are looking for.
    2. TCP-Level Fragmentation for Persistent HTTP Sessions:

      • What It Does: Continues to fragment packets in long-lived HTTP connections that use keep-alive.
      • Why It Works: Maintains fragmentation throughout the session to prevent DPI detection at any point.
    3. HTTP Protocol Modifications:

      • Modifying the 'Host' Header:
        • Upper/Lower Case Changes: Alters the case of letters in the 'Host' header (e.g., changing "Host" to "hoSt").
        • Removing Spaces: Eliminates the space between the header name and value.
        • Adding Spaces: Inserts additional spaces where they are typically not used, such as between the HTTP method and the URI.
        • Why It Works: DPI systems rely on standard patterns in HTTP headers. Small deviations can prevent them from recognizing the traffic properly.
    4. Sending Fake Packets to Confuse DPI:

      • Low Time-To-Live (TTL) Values: Sends packets that expire before reaching their destination, causing DPI to process packets that the actual server never sees.
      • Incorrect Checksums: Deliberately introduces errors in the packet's checksum.
      • Invalid TCP Sequence/Acknowledgment Numbers: Alters sequence numbers to make the packet invalid in the eyes of the DPI.
      • Why It Works: DPI systems may process these fake packets and mistakenly believe the connection is different from what it actually is, allowing legitimate packets to pass through unnoticed.

    Technical Implementation:

    • WinDivert Driver: GoodbyeDPI uses the WinDivert library to interact with the Windows Filtering Platform. This allows it to capture, modify, and inject network packets at a low level.
    • User Space Packet Modification: Captured packets are diverted to the user space, where GoodbyeDPI applies the above modifications before sending them on to their destination.
    • Operation: The software runs as a console application. It remains active as long as the console window is open and terminates when the window is closed.

    Compatibility and Compliance:

    • Protocol Standards: The methods used by GoodbyeDPI adhere to TCP/IP and HTTP standards, meaning they should not interfere with normal network operations or cause issues with compliant servers and services.
    • Website Functionality: While most websites should function normally, there is a possibility that some may not handle the unconventional packet structures or HTTP header modifications well, although such occurrences are rare.

    Important Considerations:

    • Legal Implications: The use of software like GoodbyeDPI to circumvent internet censorship may be subject to legal restrictions in certain countries. Users should be aware of and comply with all applicable laws and regulations in their jurisdiction.
    • Ethical Use: It is important to use such tools responsibly and consider the potential consequences of bypassing network restrictions, both legally and ethically.

    By employing these techniques, GoodbyeDPI effectively helps users bypass certain types of network censorship without disrupting normal internet functionality. It does so by outmaneuvering DPI systems that are not designed to handle the atypical packet structures and slight protocol deviations introduced by the software.