https://github.com/fusetim/r2lay
A simple TCP relay made in Rust
https://github.com/fusetim/r2lay
cli ipv6 ipv6-support proxy proxy-protocol proxy-server relay rust simple tcp tcp-relay
Last synced: 11 months ago
JSON representation
A simple TCP relay made in Rust
- Host: GitHub
- URL: https://github.com/fusetim/r2lay
- Owner: fusetim
- License: mit
- Created: 2021-03-23T16:33:38.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-03T16:03:57.000Z (almost 5 years ago)
- Last Synced: 2025-03-30T23:51:12.662Z (12 months ago)
- Topics: cli, ipv6, ipv6-support, proxy, proxy-protocol, proxy-server, relay, rust, simple, tcp, tcp-relay
- Language: Rust
- Homepage:
- Size: 7.81 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# R2lay
> Short for Rust Relay
A simple TCP relay made in Rust.
## Should support
- [x] CLI
- [x] IPv6 support
- [x] IPv4/IPv6 tunnel
- [x] TCP Proxy Protocol
* [x] Version 1
* [x] Version 2
## Usage
If you need logging, just use the env `RUST_LOG=` (for instance: `RUST_LOG=debug`).
```
r2lay 0.0.1
A simple TCP relay made in Rust.
USAGE:
r2lay [OPTIONS]
FLAGS:
-h, --help
Prints help information
-V, --version
Prints version information
OPTIONS:
-P, --proxy-protocol
Enable Proxy Protocol
Add Proxy Protocol header to each connection to the server. [default: disabled] [possible values: Disabled,
V1, V2]
ARGS:
The listening TCP address with IP(v4/v6) and port
Back-end TCP address with IP(v4/v6) and port
```
## License
Copyright 2021 - FuseTim
Available under MIT license terms.