A ngrok-style secure tunnel server written in Rust and Open Source

rustunnel is a high-performance, open-source secure tunnel server that allows developers to expose local services to the internet via encrypted WebSockets. Built with Rust, it offers a self-hosted alternative to ngrok with built-in monitoring and TLS support.
A ngrok-style secure tunnel server written in Rust. Expose local services through a public server over encrypted WebSocket connections with TLS termination, HTTP/TCP proxying, a live dashboard, Prometheus metrics, and audit logging.
You can self-host or use our managed service. rustunnel provides a high-performance architecture using yamux multiplexed streams to connect a public edge server with a local client. It supports both HTTP tunnels with custom subdomains and raw TCP tunnels for services like databases.
Key requirements for building include Rust 1.76+, pkg-config, and libssl-dev. For production deployment, a Linux environment with systemd and wildcard DNS is recommended. The project also features a built-in REST API and AI agent integration via MCP server.
Quick start with the hosted service:
- Request a token via GitHub Issues.
- Run
rustunnel setup. - Use
rustunnel http <port>to expose your local web server.
The client will provide a public HTTPS URL immediately upon connection. For developers, a local development setup with Docker-based PostgreSQL and self-signed certificates is also supported for testing purposes.
Source: Hacker News










