Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Tor
  3. tun2tor

tun2tor

MITRust

A Rust library that creates a utun interface and routes traffic through Tor for secure network tunneling.

GitHubGitHub
105 stars16 forks0 contributors

What is tun2tor?

tun2tor is a Rust library that creates a virtual utun (userspace tunnel) interface and routes network traffic through Tor or other stream-based proxies. It solves the problem of securely tunneling network data for applications requiring privacy and anonymity, such as those in the iCepa project.

Target Audience

Developers working on privacy-focused applications, especially those embedding secure tunneling in iOS or macOS projects, or anyone needing a lightweight library to route traffic through Tor.

Value Proposition

Developers choose tun2tor for its simplicity, embeddability, and direct integration with Tor, offering a specialized solution over generic tunneling tools. Its use of Rust ensures memory safety and performance, while Tokio provides efficient async handling.

Overview

A rust library to provide a virtual utun interface to Tor

Use Cases

Best For

  • Embedding secure tunneling in iOS/macOS applications
  • Routing network traffic through Tor for anonymity
  • Debugging and testing utun-based network setups
  • Building privacy-focused mobile apps like iCepa
  • Creating lightweight proxies for stream-based data
  • Cross-platform network tunneling experiments

Not Ideal For

  • New projects requiring long-term maintenance and active development
  • Applications needing cross-platform support beyond macOS and iOS
  • Systems requiring flexible, runtime configuration without code changes

Pros & Cons

Pros

Efficient Async IO

Utilizes Tokio for asynchronous input/output, providing high-performance network handling as highlighted in the README.

Direct Tor Integration

Connects seamlessly to Tor for secure and anonymized traffic routing, ideal for privacy-focused applications like iCepa.

Lightweight Embeddability

Designed as a minimal library for embedding in projects, offering a small footprint for tunneling needs.

Apple Platform Support

Full support for macOS and iOS with cross-compilation tools, making it suitable for Apple ecosystem development.

Cons

Abandonment Risk

The README explicitly warns that the project will probably be discontinued and recommends leaf, indicating poor future support.

Limited Cross-Platform

Only supports macOS and iOS currently, with Linux support in development, restricting its use in broader environments.

Hardcoded Configurations

Settings like IP addresses and ports are hardcoded in main.rs, requiring source modifications for any changes.

Frequently Asked Questions

Quick Stats

Stars105
Forks16
Contributors0
Open Issues7
Last commit4 years ago
CreatedSince 2015

Tags

#proxy#privacy#async-io#tor#embedded-library#cross-platform#rust#network-tunneling

Built With

R
Rust
T
Tokio

Included in

Tor87
Auto-fetched 1 day ago

Related Projects

dnscrypt-proxydnscrypt-proxy

dnscrypt-proxy 2 - A flexible DNS proxy, with support for encrypted DNS protocols.

Stars13,358
Forks1,109
Last commit3 days ago
TorBotTorBot

Dark Web OSINT Tool

Stars4,090
Forks674
Last commit4 months ago
kalitorifykalitorify

Transparent proxy through Tor for Kali Linux OS

Stars1,225
Forks256
Last commit2 years ago
rotating-proxyrotating-proxy

Rotating TOR proxy with Docker

Stars1,209
Forks252
Last commit2 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub