rport-0.2.57 is not a library.
RPort - WebRTC-based remote port forwarding tool written in Rust
RPort is a modern, WebRTC-based remote port forwarding tool written in Rust. It enables secure peer-to-peer connections for port forwarding, remote access, and network tunneling without requiring complex NAT traversal configurations.
It is built on top of rustrtc, a pure Rust WebRTC implementation.
Features
- 🚀 WebRTC-based P2P connections - Direct peer-to-peer tunneling
- 🔒 Secure tunneling - End-to-end encrypted connections over DTLS signaling + WebRTC data channels
- 📁 Configuration file support - TOML-based configuration with CLI override
- 🔧 Multiple operation modes - Agent (
-A), client (-L), and ProxyCommand modes - 🔄 Background daemon support - Run as a system daemon with
-dand custom log files - 📊 Structured logging - Comprehensive logging with tracing support
- ⚡ High performance - Built with Tokio async runtime
Quick Start
1. Install
2. Run Agent (Remote machine)
3. Connect Client (Local machine)
# Now you can SSH through the tunnel
Configuration
RPort loads configuration from ~/.rport.toml:
= "secret-token"
= "your-server.com:8443"
[[]]
= ["stun:stun.l.google.com:19302"]
Advanced Usage
- Daemon Mode:
rport -A 22 -i my-server -k token -s server.com:8443 -d --log-file rport.log - Multiple forwards:
rport -L 8080:127.0.0.1:80 -L 2222:127.0.0.1:22 -i my-server -k token -s server.com:8443 - Troubleshooting: Use
--debugfor verbose logs.
Security Considerations
- Use strong tokens and restrict configuration file permissions (
chmod 600). - Agent listing functionality is disabled to prevent information disclosure.
Build