Work

Development of a high-performance distributed reverse proxy in Rust

Year: 2026
Type: other
Abstract: This thesis concerns the design and development of a hybrid reverse-proxy and tunneling platform that enables secure, inbound access to local services behind NAT and Carrier-Grade NAT (CGNAT), without port forwarding or a static public IP. Its purpose is to restore the ordinary user's ability to host services from home, a game server, a website or an API, at a time when IPv4 exhaustion and the spread of CGNAT have made direct reachability impossible for most. The system follows a hybrid architecture, where a central cloud server (the control plane) manages authentication, access and routing, while distributed, multi-region nodes (the data plane) perform the relaying. A local application (the agent) establishes a persistent, outbound and multiplexed connection (a multiplexed tunnel) to the node, encrypted via TLS with fingerprint pinning, allowing the server to expose the service to the internet, routing HTTP by Host and HTTPS by SNI passthrough, while raw TCP/UDP receive a dedicated public port. The implementation was carried out in the Rust language (Tokio, Axum, yamux, rustls) for memory safety, efficient resource management and high speed under many concurrent connections, with durable state in PostgreSQL and Redis and a web management dashboard. Beyond basic NAT traversal, the platform supports region selection, automatic failover, geoblocking, per-tunnel observability and full CI/CD automation.The evaluation, using reproducible end-to-end scenarios and a live two-region deployment, confirms that inbound reachability works for every NAT type, with negligible added latency and relaying performed purely in memory, without writing data to disk.
Language: Greek
Open Access status: green
OpenAlex ID: W7222794217
Cites:
Cited by:
Related to: 10