Skip to content
Projects

About

Tunnel: Discord без блокировок — переключатель обхода (zapret) прямо в окне звонка. Windows 10/11.

Systems & Infrastructure

How these counts are measured

Measured star growth

in 24h
-1
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.en.md

Original
Tunnel — Discord without blocking, with the switch right in the call panel

Windows 10 | 11 .NET 10 License: MIT Languages CI

Русский · English


Tunnel panel in Discord  Tunnel window

What it is

Tunnel runs a DPI bypass (Flowseal's zapret) for Discord only, and only while Discord is running. It is controlled from inside Discord: a plate above the call buttons and a shield next to the microphone. No .bat files, no consoles. One file, Tunnel.exe, installs, repairs and removes everything. It is not a VPN: your IP address stays the same.

[!NOTE] Status: early version (1.0.1). So far Tunnel has been installed and run on one PC only, the author's own (Windows 11). It has not been tried on real machines with Windows 10, a standard (non-admin) account, third-party antivirus or other ISPs: everything below describes how Tunnel is designed and what its automated tests cover. A zapret strategy that helps with one ISP may not help with another.

Features

Built into Discord A plate in the call panel (on/off, strategy, ping) and a shield by the mic that opens the full panel. Follows Discord's colours, fonts and light/dark theme.
Turns itself on and off The bypass starts as soon as Discord runs and stops 10 seconds after Discord quits (Discord in the tray counts as running).
Picks a strategy by itself Auto tests every zapret strategy and keeps the fastest. If Discord stops loading (three checks in a row) or voice drops for more than 10 seconds during a call, Tunnel switches strategy on its own (at most 3 times in 10 minutes).
Discord only Only Discord's connections are modified. zapret's rules for YouTube, games and other sites are not run (details in the FAQ).
Stable, PTB, Canary Installs into any installed Discord flavour; after a Discord update the service puts the panel back.
Clear errors A coloured status and plain text: service not running, antivirus removed files, another bypass program is in the way, DNS problem. Diagnostics packs the logs into one zip.
Russian and English The panel follows Discord's language, the Tunnel window follows Windows'.
Clean uninstall Uninstall removes the service, the files and the line in Discord, and restores the Windows settings (see Uninstall).

Screenshots

Call plate
Plate above the call buttons
Service not running
Service not running: what to press (Russian UI)
Light theme
Discord's light theme (Russian UI)
Install options
Discord flavours and the Defender exclusion

Install

[!WARNING] Modifying the Discord client violates Discord's Terms of Service. You use Tunnel at your own risk; see the FAQ.

  1. Download Tunnel.exe (one file, about 100 MB) from Releases.
  2. If the browser or Defender deleted it: Start → Windows Security → Virus & threat protection → Protection history → the Tunnel.exe entry → Actions → Allow (or Restore). Download again if the file is still gone. Third-party antivirus: add the file to its exclusions.
  3. Quit Discord completely: tray icon → Quit Discord.
  4. Run Tunnel.exe. It is unsigned, so Windows shows "Windows protected your PC": press More info → Run anyway.
  5. Press Install. Windows asks for administrator rights once (UAC).
  6. Tick the Discord flavours (only installed ones are listed) and press Install again.
    • Add a Microsoft Defender exclusion (on by default) excludes only C:\ProgramData\Tunnel\zapret; without it Defender may delete the zapret driver. It is removed on uninstall.
    • Third-party antivirus (Kaspersky, ESET, Avast, …): exclude C:\ProgramData\Tunnel\zapret by hand.
  7. Internet required: during the install Tunnel downloads zapret (about 1.5 MB) from Flowseal's official GitHub release (github.com/Flowseal/zapret-discord-youtube): the "Downloading zapret…" step. Tunnel.exe itself contains neither zapret nor WinDivert. The archive is installed only if its SHA-256 matches the checked one built into Tunnel.exe. If GitHub is unreachable, see the FAQ "Could not download zapret from GitHub".
  8. Tunnel installs the service, picks a working strategy (1–3 minutes) and starts Discord. The plate appears above the call buttons, the shield next to the mic.

A standard (non-admin) Windows account works through an administrator's UAC credentials; Discord, the panel and diagnostics stay yours. This path is covered by automated tests only and has never been run on a real PC: if anything is off, open Tunnel from your own account and press Repair.

Use

  • Call plate (above Camera / Screen during a call): bypass switch, strategy, ping. Dot colour: green = working, yellow = off or probing, red = error, grey = service unreachable.
  • Shield by the mic (always visible) opens the full panel: switch, strategy list with the last test results, Auto (asks first during a call: voice drops for about a minute), Switch strategy automatically, zapret updates, Diagnostics. general (ALT5) is greyed out: it cannot be limited to Discord.
  • Tunnel window: Start → Tunnel. Opens without admin rights: status, on/off, Save diagnostics, Repair, Uninstall (the last two ask for UAC). Its switch is greyed out while Discord is not running. Use it if the Discord panel ever disappears.
  • Something wrong? Diagnostics saves Tunnel-diagnostics-*.zip to the Desktop. Send it to whoever gave you Tunnel or attach it to an issue. Issues are public and the zip contains your PC name and Windows user name; see Security for what is inside.

Uninstall

Start → Tunnel → Uninstall (one UAC prompt). Removes the service, C:\ProgramData\Tunnel, %LOCALAPPDATA%\Tunnel, the Defender exclusion and the Tunnel line in Discord's files, and restores the previous TCP timestamps setting. The WinDivert driver is stopped unless another program uses it. Discord is left as it was; no restart needed. The one thing left until the next restart is a file C:\Windows\Temp\Tunnel-removed-*: a running Tunnel.exe cannot delete itself, so its copy is moved there and removed on restart.

[!IMPORTANT] Do not delete the folders by hand: the service would stay registered and Discord's files would keep the Tunnel line. Tunnel is not listed in Settings → Apps; use the Uninstall button.

FAQ

Can my Discord account be banned?

Yes, it can. Any client modification is against Discord's Terms of Service, and Discord is entitled to ban the account. Tunnel does not remove that risk and guarantees nothing.

What is known: mods that only add UI (BetterDiscord, Vencord) have existed for many years, and we are not aware of mass bans for them. That is an observation, not a promise: Discord can change its rules or how it enforces them at any time, and Tunnel itself has only run on one PC so far.

What Tunnel does inside Discord: adds one line to index.js, draws the panel, reads the call state (voice connected or not, and the ping, from Discord's internal data, read-only) and once a minute checks whether Discord's servers load, with separate requests that carry no cookies and no account. What it does not do: read your token, send messages, or act on your behalf. If the risk is not acceptable to you, do not install Tunnel on an account you are afraid to lose.

I already run my own zapret (or GoodbyeDPI). Will they clash?

Two WinDivert bypasses cannot run at once. Tunnel detects winws.exe / winws2.exe and the services zapret, GoodbyeDPI, discordfix_zapret, winws1, winws2, does not start, and says "Another bypass program is in the way". Stop it stops that program and sets its service to manual start; nothing is deleted. Or close that program yourself; Tunnel starts within ~10 s.

Smart App Control, SmartScreen, Defender
  • SmartScreen: More info → Run anyway (the file is unsigned).
  • Defender / antivirus often flags WinDivert as a hacking tool. Restore the download from Protection history; the install-time exclusion protects the zapret files. If they are removed later, the panel says "zapret files are missing": press Repair, and Tunnel downloads them from GitHub again (internet required). While the files are present and unchanged, Repair downloads nothing.
  • Smart App Control (Windows 11) blocks unsigned programs outright and has no per-file allow. With it on, Tunnel will most likely not start; whether to turn it off is your decision.
The installer says "Could not download zapret from GitHub"

Tunnel downloads zapret during the install from Flowseal's release: https://github.com/Flowseal/zapret-discord-youtube/releases/download/1.10.4/zapret-discord-youtube-1.10.4.zip (the exact address is also in the error details). With no internet, or when GitHub does not answer:

  • check the connection and press Try again;
  • if GitHub is blocked or does not open for you, get that archive some other way (another network, a phone, a friend), press Choose a downloaded archive… and pick the file. Tunnel installs it only if its SHA-256 matches the checked one (291af673bd0238506f9548e0e94ca0abf244000f4c9a06960544fb01c5f97b34 for 1.10.4); any other or modified archive is refused.

zapret is downloaded before the service is stopped, so a failed Repair leaves the existing install running.

The plate is gone after a Discord update

After a self-update Discord may load the fresh files before the service re-adds the Tunnel line; the panel then misses that one session and is back on the next Discord start. The bypass keeps working. If not, Start → Tunnel → Repair. If Discord's UI changed so much that the panel cannot find its spot, the shield becomes a floating button, and the Tunnel window always works.

How is zapret updated? What is the approved-versions list?

Tunnel installs only Flowseal versions the project owner reviewed and listed in approved-versions.json together with the SHA-256 of the release zip. Current builds read that list from this repository. In builds made before the list's address was set, the panel says "Updates are not set up in this Tunnel build": such a build downloads nothing by itself, and a newer zapret comes with a newer Tunnel.exe (run it and press Repair). With updates on, "Ask me" (default) offers a new version and "Automatic" installs it, never during a call.

Why does all web traffic pass through Tunnel if it is for Discord only?

That is how WinDivert works: while the bypass is on, the whole PC's outbound packets to web ports (TCP 80, 443 and a few more, UDP 443 and Discord's voice port ranges) pass through winws.exe. Connections to other sites pass unchanged: the rules apply to Discord's domains. One caveat: Discord voice is recognised by packet type (Discord/STUN) on the voice UDP ports, not by address, so the same kind of packet from another program on those ports is modified too. With Discord closed, winws.exe is not running at all.

What does Tunnel change in Windows?

The TunnelService service ("Tunnel for Discord"), the folders C:\ProgramData\Tunnel and %LOCALAPPDATA%\Tunnel, a Start menu shortcut, one line in Discord's index.js and, if you leave the box ticked, a Defender exclusion. While the bypass runs, the WinDivert driver is loaded. One system-wide setting is changed: TCP timestamps are turned on (Flowseal's zapret does the same). Uninstall reverts all of that. The exception: if you pressed Stop it for another bypass program, its service stays on manual start.

How it works

flowchart LR
    subgraph D["Discord (your user)"]
        UI["Panel and shield<br>(renderer)"] -- "IPC, fixed<br>command set" --> M["Mod: main process<br>loader.js"]
    end
    M <-- "Windows named pipe<br>(JSON)" --> S["TunnelService<br>(LocalSystem)"]
    A["Tunnel.exe<br>installer and window"] <-- "same pipe" --> S
    S -- "runs in a Job Object,<br>only while Discord runs" --> W["winws.exe<br>(zapret)"]
    W --> K["WinDivert<br>(driver)"]
    S -. "re-patches index.js<br>after Discord updates" .-> D
  • TunnelService watches Discord's processes, runs winws.exe with a Flowseal strategy cut down to Discord (Discord domains for TCP, the Discord/STUN filter for voice) and stops it 10 s after Discord quits. winws.exe lives in a Job Object and cannot outlive a crashed service.
  • The mod is one line in Discord's index.js that loads the loader from %LOCALAPPDATA%\Tunnel\mod. If the loader is missing or throws, Discord starts normally. The UI is added through the DOM; Discord's CSP is not touched. The call state (voice connected or not, ping) is only read from Discord's internal data; if it cannot be read it counts as unknown and triggers nothing.
  • Strategy tests run from inside Discord (same TLS fingerprint as the client), or from the service while Discord is not running.
  • Flowseal's .bat files are never run: Tunnel parses them as data and starts winws.exe directly, without a shell. An unknown format marks the strategy unsupported instead of guessing.

Security

  • Runs as SYSTEM: only the TunnelService service ("Tunnel for Discord") and what it starts: winws.exe (which loads the WinDivert driver) and short calls of Windows' own netsh.exe for the TCP timestamps setting. The Tunnel window runs without admin rights; UAC is needed only for Install, Repair and Uninstall.
  • Locked folder: C:\ProgramData\Tunnel gets its own ACL at install (SYSTEM and Administrators write, Users read). The service runs code only from there and never writes into user folders as SYSTEM (index.js is patched while impersonating the user).
  • Control channel is a named pipe, not a port: websites and browsers cannot open it, network access is explicitly denied, and only the users Tunnel was installed for and administrators can connect. The command set is fixed (status, on/off, strategy by ID, Auto, enum settings, update, diagnostics, "Stop it" for a hardcoded conflict list); no command takes a path, URL, command line or file content. A program already running as you can do what the panel can, but no more.
  • Approved versions + SHA-256: the zapret version is pinned and its SHA-256 is checked against GitHub's digest and approved-versions.json at build time; Tunnel.exe carries only that version and SHA-256, not the zip. The installer downloads the zip from github.com and installs it like an update: only with that SHA-256, extracted safely, with a valid WinDivert64.sys signature. An update is installed only if its version and zip SHA-256 are on the owner's list, it extracts safely, WinDivert64.sys has a valid signature and at least one strategy parses; a release that fails while the previous one works is rolled back.
  • Only the owner controls the approved list. The service reads it from approved-versions.json on this repository's main branch (TunnelConstants.ApprovedVersionsUrl = https://raw.githubusercontent.com/saintaddyy/discord-tunnel/main/approved-versions.json). In builds made before that address was set, updates are off: such a service makes no update request at all.
  • Network: Tunnel sends nothing to the author: no statistics, no reports. On its own it contacts Discord's servers (discord.com, gateway.discord.gg, cdn.discordapp.com, updates.discord.com) and two control sites (ya.ru, www.gstatic.com) to tell blocking from a lost connection: while picking a strategy and once a minute while the bypass is on, without cookies. During Install, and during Repair when the zapret files are missing or changed, the installer downloads the pinned zapret zip from github.com (Flowseal's release; GitHub redirects the download to its file host *.githubusercontent.com). It also contacts GitHub for zapret updates: at most once a day (the first time 2 minutes after the service starts) and when you press Check, the service asks api.github.com for Flowseal's latest release and, if that version is new, reads the approved list from raw.githubusercontent.com; the zip itself is downloaded from github.com only when an update is being installed. These requests carry nothing about you or your PC, only the program's name and version (Tunnel-Updater/1.0.1); GitHub sees your IP address, as any website does. Builds without the list's address never contact GitHub for updates (the installer's download above does not depend on it). Tunnel contacts nothing else.
  • Diagnostics is a plain zip, made only when you press the button and never sent anywhere by Tunnel: service logs (7 days), settings (they contain the PC name, the Windows user name, its SID and the profile folder paths), test results, winws output, a DNS check, Discord versions and system info. No Discord token or passwords; Tunnel never reads them. You can open the zip and look before sending it.

Found a vulnerability? Please do not post it in a public issue; report it privately as described in SECURITY.md. Privacy policy: PRIVACY.md.

Code signing policy

This project has applied for free code signing by the SignPath Foundation. Once approved, Windows builds will use free code signing provided by SignPath.io, certificate by SignPath Foundation. Until then Tunnel.exe is unsigned.

  • Only files built from this repository in GitHub Actions (.github/workflows/release.yml) are signed. Third-party files (zapret, WinDivert) are never signed with the project's certificate and are not part of Tunnel.exe: the installer downloads them from Flowseal's release and checks their SHA-256.
  • Team roles: author, reviewer and approver — saintaddyy. Every release is approved manually before signing.
  • Privacy: PRIVACY.md. The program sends no data to the author or third parties beyond the network requests listed there.

For developers

Requirements: Windows x64, .NET SDK 10.0.404 (pinned in global.json), Node.js 26. Mod dependencies are local: npm --prefix mod ci.

git clone https://github.com/saintaddyy/discord-tunnel.git
cd discord-tunnel
npm --prefix mod ci
$env:DOTNET_CLI_UI_LANGUAGE = 'en'
dotnet build Tunnel.slnx -c Debug
dotnet test Tunnel.slnx --filter "Category!=Manual&Category!=Package"
npm --prefix mod test
powershell -NoProfile -ExecutionPolicy Bypass -File build/package.ps1   # -> artifacts\release\Tunnel.exe
powershell -NoProfile -ExecutionPolicy Bypass -File docs/images/make-screenshots.ps1   # panel screenshots

build/package.ps1 runs the tests, downloads the pinned Flowseal release (build/zapret.version) and checks its SHA-256 (a check only: the zip is not embedded), packs the mod, publishes the service, embeds the service, the mod, the zapret version and its SHA-256 from approved-versions.json into Tunnel.exe and runs the payload tests. Releases are built in GitHub Actions: CI builds and tests every push and pull request, and Release, on a vX.Y.Z tag (it must match <Version> in Directory.Build.props), runs build/package.ps1 and publishes Tunnel.exe, Tunnel.exe.sha256 and THIRD-PARTY-NOTICES.md to GitHub Releases with a build provenance attestation (gh attestation verify Tunnel.exe -R saintaddyy/discord-tunnel). Ship Tunnel.exe together with THIRD-PARTY-NOTICES.md. Never run the built Tunnel.exe, TunnelService.exe or winws.exe on the dev machine; test on a VM or a spare PC. Zapret updates are configured to this repository's approved-versions.json. To approve a new Flowseal version, the owner runs build/fetch-zapret.ps1 -Version <v> (prints the zip's SHA-256, exit code 2 while the version is not listed), reviews the release, adds { "version": "<v>", "sha256": "<64 hex>" } to approved-versions.json and pushes it to main. Repository layout and the pinned zapret hash: see the Russian README.

Credits

Full list and license texts: THIRD-PARTY-NOTICES.md. Discord is a trademark of Discord Inc.; Tunnel is not affiliated with Discord.

License

Tunnel's own code is MIT. Third-party components keep their own licenses (see THIRD-PARTY-NOTICES.md).

Explore related projects

Loading…