DPI bypass tool - eBPF on Linux, TUN on macOS/Windows.
DPI bypass tool - eBPF on Linux, TUN on macOS/Windows.
DPI bypass tool. Injects fake TLS ClientHello packets to desynchronize Deep Packet Inspection middleboxes. Includes built-in DoH DNS resolver.
Linux: eBPF sock_ops - hooks directly into the kernel TCP stack. No proxy, no traffic redirection.
macOS/Windows: TUN-based transparent proxy - intercepts all traffic at the IP layer via a virtual network interface.
sudo gecit runDisclaimer: This project is for educational and research purposes only. gecit demonstrates eBPF and network programming capabilities in the context of TLS protocol analysis. It does NOT hide your IP address, encrypt your traffic, or provide anonymity. Use is entirely at your own risk. Users are responsible for complying with all applicable laws in their jurisdiction.
App connects to target:443
↓
gecit intercepts the connection
Linux: eBPF sock_ops fires (inside kernel, before app sends data)
macOS/Windows: TUN device captures packet, gVisor netstack terminates TCP
↓
Fake ClientHello with SNI "www.google.com" sent with low TTL
↓
Fake reaches DPI → DPI records "google.com" → allows connection
Fake expires before server (low TTL) → server never sees it
↓
Real ClientHello passes through → DPI already desynchronizedSome ISPs inspect the TLS ClientHello SNI field to identify and block specific domains. gecit sends a fake ClientHello with a different SNI (www.google.com) and a low TTL before the real one. The DPI processes the fake and lets the connection through. The fake packet expires before reaching the server due to its low TTL.
Additionally, some ISPs poison DNS responses. gecit includes a built-in DoH (DNS-over-HTTPS) server that resolves domains through encrypted HTTPS, bypassing DNS-level blocking.
| Linux | macOS | Windows | |
|---|---|---|---|
| OS | Kernel 5.10+ | macOS 12+ (Monterey) | Windows 10+ |
| Privileges | root / sudo | root / sudo | Administrator |
| Dependencies | None | None | Npcap |
Win32/Wacapew.A!ml (false positive). gecit creates a TUN interface, modifies DNS, and uses raw sockets - Defender flags this behavior. Add an exception: Windows Security → Virus & threat protection → Exclusions → Add gecit.exe..\gecit.exe run.Download from releases:
…The MSI installs gecit to C:\Program Files\gecit, registers it as a Windows
service, adds it to PATH, and writes a default config. Grab
gecit--amd64.msi from releases.
Install Npcap first. Its license forbids redistribution, so the MSI cannot bundle it and refuses to install without it.
The installer asks whether gecit should start at boot, and for the DoH upstream and fake TTL. Uncheck the box to register the service without running it.
For an unattended install:
msiexec /i gecit-0.1.4-amd64.msi /qn DOHUPSTREAM=quad9 FAKETTL=12
msiexec /i gecit-0.1.4-amd64.msi /qn AUTOSTART=0Uninstall from Add/Remove Programs, or msiexec /x gecit-0.1.4-amd64.msi /qn.
Uninstalling restores DNS and routes first. Your config file and logs are left
in place.
Requires Go 1.24+. Linux builds need kernel 5.10+, clang, and llvm-strip for BPF compilation. Windows builds are pure Go and cross-compile from any host.
git clone https://github.com/boratanrikulu/gecit.git
cd gecit
make gecit-linux-amd64 # Linux x86_64
make gecit-linux-arm64 # Linux ARM64
make gecit-darwin-arm64 # macOS Apple Silicon
make gecit-darwin-amd64 # macOS Intel
make gecit-windows-amd64 # Windows x86_64
sudo ./bin/gecit-linux-arm64 rungecit sets up everything automatically:
127.0.0.1:53 (bypasses DNS poisoning)Press Ctrl+C to stop - everything is restored (DNS, routes, BPF programs). Windows requires Npcap for full DPI bypass support.
If gecit crashes, run sudo gecit cleanup to restore system settings.
# Default (TTL=8, Cloudflare DoH)
sudo gecit run
# Use Google DoH
sudo gecit run --doh-upstream google
# Multiple upstreams (fallback order)
sudo gecit run --doh-upstream cloudflare,quad9
# Custom DoH URL
sudo gecit run --doh-upstream https://8.8.8.8/dns-query
# Custom TTL
sudo gecit run --fake-ttl 12
# Check system capabilities
sudo gecit status
# Restore system settings after a crash
sudo gecit cleanupgecit service install # register with Windows, start at boot
gecit service start
gecit service status
gecit service stop
gecit service restart
gecit service set-start --manual # stop starting at boot
gecit service uninstallThe MSI does this for you. These commands are for a plain gecit.exe without
the installer, and for changing an installed service afterwards.
The service logs to C:\ProgramData\gecit\gecit.log, rotating at 10 MB and
keeping 3 files. Start, stop and start failures also land in the Windows
Application event log under the source gecit.
A service started by Windows has no command line, so gecit reads settings from a file. Flags you pass still win over it.
| Platform | Path |
|---|---|
| Linux, macOS | /etc/gecit/config.yaml |
| Windows | C:\ProgramData\gecit\config.yaml |
gecit config path # print the path in use
gecit config init # write a commented default, never overwrites
gecit --config ./my.yaml runWith no config file, gecit runs on its built-in defaults.
config init needs root or Administrator: the file configures a process that
runs as root or LocalSystem, so it is written where an unprivileged user
cannot reach it. On Windows the directory is created with an explicit ACL for
the same reason.
doh_upstream must name a preset or an https URL. A cleartext upstream would
hand every lookup on the machine to whoever is on the path, and gecit has
already pointed the system resolver at itself.
| Flag | Default | Description |
|---|---|---|
--doh |
true |
Enable the built-in DoH DNS resolver |
--doh-upstream |
cloudflare |
DoH upstream: preset name or URL. Comma-separated for fallback. |
--fake-ttl |
8 |
TTL for fake packets (must reach DPI but expire before server) |
--mss |
88 |
TCP MSS for ClientHello fragmentation (Linux) |
--restore-after-bytes |
600 |
Restore normal MSS after N bytes (Linux) |
--restore-mss |
0 |
Restored MSS value, 0 = auto/1460 (Linux) |
--cgroup |
/sys/fs/cgroup |
cgroup v2 path (Linux) |
--ports |
443 |
Target destination ports |
--interface |
auto | Network interface |
-v |
off | Verbose/debug logging |
--config |
per-platform | Config file path (see Config file above) |
| Preset | Upstream |
|---|---|
cloudflare |
https://1.1.1.1/dns-query |
google |
https://8.8.8.8/dns-query |
quad9 |
https://9.9.9.9:5053/dns-query |
nextdns |
https://dns.nextdns.io/dns-query |
adguard |
https://dns.adguard-dns.com/dns-query |
The fake packet TTL must be high enough to reach the DPI (typically 2-4 hops) but low enough to expire before the server (typically 10+ hops).
traceroute -n target.comThe DPI is usually at the first few ISP hops. Default TTL=8 works for most networks.
| Linux | macOS | Windows | |
|---|---|---|---|
| Engine | eBPF sock_ops | TUN + gVisor netstack | TUN + gVisor netstack |
| Connection detection | BPF perf events | TUN packet interception | TUN packet interception |
| Fake injection | Raw socket | Raw socket | Raw socket via Npcap |
| DNS bypass | DoH + /etc/resolv.conf |
DoH + networksetup |
DoH + netsh |
| App configuration | None needed | None needed (all apps via TUN) | None needed (all apps via TUN) |
| Root required | Yes (CAP_BPF) |
Yes (TUN + raw socket) | Yes (Administrator) |
Does this hide my IP address? No. Your ISP can still see which IP addresses you connect to. gecit only prevents the ISP from reading the domain name (SNI) in the TLS handshake.
Does this work against all DPI? It works against DPI systems that inspect individual TCP segments without full reassembly. More sophisticated systems (like those used in China) may detect and block this technique.
Is this a VPN? No. There is no tunnel, no encryption of traffic, and no remote server involved. gecit operates entirely locally. On macOS/Windows, it uses a TUN interface (similar to VPN plumbing) but traffic goes directly to the internet - no remote server.
Why eBPF on Linux? eBPF hooks into the kernel's TCP stack synchronously - the fake packet is sent before the application can write any data. This guarantees correct ordering without needing a proxy or packet interception. Only the handshake touches userspace; data flows through the kernel at full speed.
Why TUN on macOS/Windows? These platforms don't expose kernel-level hooks like eBPF. A TUN virtual interface intercepts all traffic at the IP layer, providing the same coverage as eBPF but with traffic flowing through userspace.
Why not WinDivert? Most Windows DPI bypass tools use WinDivert, but its code signing certificate expired in 2023. This triggers Windows Defender warnings and blocks driver installation on some systems. gecit uses a TUN-based approach instead, which relies on properly signed drivers and avoids these issues.
……GPL-3.0. See LICENSE.
Copyright (c) 2026 Bora Tanrikulu \
No open issues yet, or sync has not completed.