Skip to content

NukaColaM/WinTProxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WinTProxy

Transparent SOCKS5 proxy for Windows. WinTProxy intercepts IPv4 TCP and UDP traffic with WinDivert, classifies packets by process and destination, and applies ordered proxy/direct/block rules.

Features

  • Rule-based transparent proxying by process name, IP range, port, and protocol.
  • TCP forwarding through SOCKS5 CONNECT.
  • UDP forwarding through SOCKS5 UDP ASSOCIATE.
  • Optional DNS hijacking to a configured IPv4 resolver.
  • Fixed-size hot-path tables for connection tracking, DNS NAT, process lookup, and relay state.

Quick Start

Cross-compile with MinGW from WSL2 or Linux:

sudo apt install gcc-mingw-w64-x86-64
cmake -B build -DCMAKE_TOOLCHAIN_FILE=cmake/mingw-toolchain.cmake
cmake --build build

Place WinDivert.dll and WinDivert64.sys next to WinTProxy.exe, then run from an elevated Windows shell:

WinTProxy.exe --config config.example.json

Usage

WinTProxy.exe [options]

Options:
  --config <path>     Path to JSON config file
  --proxy <addr:port> SOCKS5 proxy address (default: 127.0.0.1:7890)
  --dns <addr:port>   Enable DNS hijacking (redirect to addr:port)
  --log <path>        Write logs to file (in addition to stderr)
  -v, --verbose       Increase verbosity (repeat for more: -vv, -vvv, -vvvv)
  --version           Show version
  -h, --help          Show help

Command-line options override config file values.

Documentation

License

Third-party components:

About

Transparent SOCKS5 proxy for Windows. Intercepts TCP/UDP traffic at the packet level via WinDivert.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors