tun2proxy is a Rust-based networking tool that routes traffic from a TUN interface through HTTP or SOCKS proxies. It allows system-level traffic to be redirected through a proxy even when individual applications do not support proxy configuration. The project supports Linux, Android, macOS, iOS, and Windows, making it broadly useful across desktop, mobile, and embedded-style environments. It includes HTTP, SOCKS4, SOCKS5, SOCKS4a, and SOCKS5h support, along with authentication options depending on the proxy type. tun2proxy can automatically configure routing in supported environments, or it can be used with manual TUN setup for more controlled deployments. It also includes DNS handling, IPv4 and IPv6 support, SOCKS5 UDP support, and Android-specific session information features for per-app routing scenarios.

Features

  • TUN interface routing through HTTP and SOCKS proxies
  • SOCKS4, SOCKS5, SOCKS4a, and SOCKS5h support
  • Linux, Android, macOS, iOS, and Windows compatibility
  • IPv4 and IPv6 traffic support
  • Virtual DNS and DNS-over-TCP behavior
  • Android per-app routing session information support

Project Samples

Project Activity

See All Activity >

Categories

Tunneling

License

MIT License

Follow tun2proxy

tun2proxy Web Site

Other Useful Business Software
Gemini 3 and 200+ AI Models on One Platform Icon
Gemini 3 and 200+ AI Models on One Platform

Access Google's best plus Claude, Llama, and Gemma. Fine-tune and deploy from one console.

Build, govern, and optimize agents and models with Gemini Enterprise Agent Platform.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of tun2proxy!

Additional Project Details

Operating Systems

Apple iPhone, Linux, Mac, Windows

Programming Language

Rust

Related Categories

Rust Tunneling Software

Registered

2 days ago