Crates.io | tcp-relay-rust |
lib.rs | tcp-relay-rust |
version | 0.1.0 |
source | src |
created_at | 2023-05-22 09:17:01.528643 |
updated_at | 2023-05-22 09:17:01.528643 |
description | Simple `tcp-relay` command (can create proxy to tcp and unix socket). |
homepage | |
repository | |
max_upload_size | |
id | 870504 |
size | 23,415 |
Simple tcp relay using rust and tokio
cargo build --release
To create local tcp relay to google.com:443
from localhost:3333
.
./target/release/tcp-relay-rust google.com:443 localhost:3333
To try:
curl https://localhost:3333/ -k
docker run --rm -p 6379:6379 redis
./target/release/tcp-relay-rust localhost:6379 localhost:3333
redis-cli -p 3333
./target/release/tcp-relay-rust /var/run/docker.sock localhost:3333
(danger, its not safe to share docker.sock)curl localhost:3333
./target/release/tcp-relay-rust /var/run/docker.sock
(danger, its not safe to share docker.sock)