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
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
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

2026-05-18