- Asynchronous and Multi-Threaded: The port forwarding engine is designed to handle multiple connections concurrently, making efficient use of system resources.
- TCP and UDP Support: Forward traffic for both TCP and UDP protocols seamlessly.
- Configurable: Easily customize port mappings, source and destination addresses, and other settings.
- Performance Optimized: Leverage Rust’s memory safety and Tokio’s async capabilities to achieve outstanding performance.
- Clone the repository:
git clone https://github.com/radioactiveAHM/LTP.gitcd LTP
- Build LTP:
cargo build --release
- The compiled binary will be located at
/target/release/LTP.
- Configure
config.json: Edit the config.json file to set up any necessary configurations for LTP. - Run LTP.
{
"log_error": false,
"listen_ip": "0.0.0.0",
"tcp_proxy": ["1.1.1.1:443"],
"udp_proxy": [],
"udptimeout": 120,
"tcptimeout": 300,
"tcp_fill_buffer": false,
"tcp_buffer_size": null,
"udp_buffer_size": null,
"udp_channel_buffer_size": 12
}Distributed under the Apache License Version 2.0. See LICENSE for more information.