Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

radioactiveAHM/LTP

Repository files navigation

Logo

Lazy Tcp Port-Forwarding


Extreme Performance Async Multi-Threaded TCP and UDP Port Forwarding in Rust with Tokio Runtime

Key Features

  • 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.

Built With

Build

  1. Clone the repository:
    1. git clone https://github.com/radioactiveAHM/LTP.git
    2. cd LTP
  2. Build LTP:
    • cargo build --release
  3. The compiled binary will be located at /target/release/LTP.

Usage

  1. Configure config.json: Edit the config.json file to set up any necessary configurations for LTP.
  2. Run LTP.

Config

{
 "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
}

License

Distributed under the Apache License Version 2.0. See LICENSE for more information.

About

Lazy Tcp Port-Forwarding

Resources

License

Stars

Watchers

Forks

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /