How b3hnamr/eztunnel works
EZTunnel pairs two Linux servers to carry forwarded TCP/UDP, SOCKS5, or routed TUN traffic through an authenticated encrypted tunnel. Operators create and manage tunnels with the terminal manager or optional web dashboard; the transport checker measures candidate links, and the runtime connects peers and forwards traffic to destinations. The graph preserves documented transport, Mirage, and dashboard capabilities, but several backend and transport implementations were not excerpted, so their unverified links are dashed or omitted.
Main entry points: mod.rs Terminal manager · engine.rs Tunnel engine · config.rs Tunnel configuration · App.svelte Dashboard interface
Components 26
Operator tools
- Terminal manager
src/manager/mod.rs - Tunnel planning
src/manager/plan.rs - Config and tunnel store
src/manager/store.rs - Managed services
src/manager/service.rs - Transport checker
src/checker/mod.rs
Web dashboard
- Dashboard interface
dashboard-ui/src/App.svelte - Dashboard API client
dashboard-ui/src/lib/api.js - Dashboard server
src/dashboard/http.rs - Dashboard authentication
src/dashboard/auth.rs - Dashboard operations
src/dashboard/ops.rs
Tunnel runtime
- Tunnel configuration
src/config.rs - Tunnel engine
src/engine.rs - Gaming UDP channels
src/gaming.rs - Tunnel statistics
src/stats.rs
Transport and security
- Carrier transports
src/carrier.rs - Transport security
src/transport.rs - Tunnel key and identity
src/tunnel_key.rs - Parallax transport
src/parallax_carrier.rs - Raw packet transport
src/raw_packet.rs - Source spoofing
src/spoof.rs - Spoof sessions
src/spoof_session.rs - Stealth options
src/stealth.rs
Other components
- Server operator
- Peer server
- Destination service or network
- Browser operator
Connections 29
- Server operator → Terminal manager: configures tunnels
README.md - Terminal manager → Tunnel planning: builds plans
src/manager/mod.rs - Tunnel planning → Tunnel configuration: produces config
src/manager/plan.rs - Terminal manager → Transport checker: runs checks
src/manager/mod.rs - Terminal manager → Config and tunnel store: manages saved tunnels
src/manager/mod.rs - Terminal manager → Managed services: starts services
src/manager/mod.rs - Browser operator → Dashboard interface: manages servers
README.md - Dashboard interface → Dashboard API client: requests dashboard data
dashboard-ui/src/App.svelte - Dashboard interface → Dashboard authentication: checks session
dashboard-ui/src/App.svelte - Dashboard API client → Dashboard server: calls dashboard
- Dashboard server → Dashboard authentication: authenticates requests
- Dashboard server → Dashboard operations: dispatches operations
- Dashboard operations → Config and tunnel store: manages tunnel state
- Peer server → Tunnel engine: connects as tunnel peer
README.md - Tunnel engine → Tunnel configuration: loads tunnel settings
src/engine.rs - Tunnel engine → Transport security: opens secure connections
src/engine.rs - Tunnel engine → Carrier transports: uses carriers
src/engine.rs - Tunnel engine → Tunnel statistics: reports traffic
src/engine.rs - Tunnel engine → Gaming UDP channels: supports gaming channels
src/engine.rs - Tunnel engine → Destination service or network: forwards traffic
README.md - Tunnel configuration → Tunnel key and identity: uses tunnel identity
src/config.rs - Tunnel configuration → Stealth options: configures stealth
src/config.rs - Terminal manager → Parallax transport: offers transport options
- Tunnel configuration → Parallax transport: configures carrier
src/config.rs - Tunnel configuration → Raw packet transport: configures raw carrier
src/config.rs - Tunnel configuration → Source spoofing: configures spoofing
src/config.rs - Source spoofing → Raw packet transport: uses raw packets
src/raw_packet.rs - Terminal manager → Spoof sessions: sets up Mirage
- Transport checker → Tunnel planning: uses tunnel plans
src/checker/mod.rs