- 中文主页: README-cn.md
EpTUN is a Windows GUI/tray app for traffic hijacking and routing based on tun2socks.
Use EpTUN when you need one or more of these scenarios:
- You have a local proxy core (for example v2rayA/v2ray-core) and want system-level traffic hijack via TUN, not per-app manual proxy setup.
- You want a GUI/tray workflow to start, stop, and reload routing behavior instead of running
netshand route commands by hand. - You need split behavior where selected traffic stays direct (for example CN routes from
cn.dat) while other traffic goes through proxy. - You need dynamic bypass for upstream/proxy-node addresses (such as v2rayA discovered endpoints) to avoid routing loops and unstable connections.
- You want runtime observability and safer operations for route-based networking changes on Windows.
EpTUN is usually unnecessary if browser/app-level proxy settings already satisfy your needs and you do not require system-wide routing control.
- Usage Guide (English): docs/USAGE.md
- 使用文档(中文): docs/USAGE-cn.md
The usage guides focus on configuration fields, term definitions, and runtime reload behavior.
- tun2socks
- Wintun
- v2rayA (optional)
- v2fly/geoip (
cn.dat, optional)
- Prepare
appsettings.json(seeappsettings.example.json). - Put
tun2socks.exeandwintun.dllnext toEpTUN.exe. - Run
EpTUN.exeas administrator and use the GUI.
dotnet build .\EpTUN.csproj -c Releasedotnet publish .\EpTUN.csproj -c Release -r win-x64 --self-contained true `
-p:PublishSingleFile=true `
-p:IncludeNativeLibrariesForSelfExtract=true `
-o .\bin\EpTUNPortable