Remote port forwarding (reverse tunneling) with Russh to serve an Axum application.
Find a file
2024-09-04 20:27:14 -03:00
src Initial commit 2024-09-04 20:27:14 -03:00
.gitignore Initial commit 2024-09-04 20:27:14 -03:00
Cargo.lock Initial commit 2024-09-04 20:27:14 -03:00
Cargo.toml Initial commit 2024-09-04 20:27:14 -03:00
README.md Initial commit 2024-09-04 20:27:14 -03:00

Russh + Axum + tcpip_forward!

A Rust project demonstrating how to serve Axum's HTTP server on a remote host's port, using SSH tunneling and streaming to avoid opening a socket on the client.

Tokio, Tower, hyper, and async are responsible for gluing everything together. They are pretty awesome! The hardest part to implement was Axum's half; mainly, figuring out how to accept a streaming socket instead of the default TcpListener.