Minimal TCP proxy with an exit-on-idle timeout configuration option. Useful for sparing resources on idling devcontainers.
./target/release/lazyprox --help
lazyprox 0.1.0
USAGE:
lazyprox --listen <LISTEN> --dest <DEST> --idle-timeout-secs <IDLE_TIMEOUT_SECS>
OPTIONS:
-d, --dest <DEST>
Socket address of TCP destination, eg localhost:22
-h, --help
Print help information
-i, --idle-timeout-secs <IDLE_TIMEOUT_SECS>
Number of seconds of idle time before exiting
-l, --listen <LISTEN>
Bind socket address of TCP listener, eg 0.0.0.0:2222
-V, --version
Print version information
Targets |
---|
x86_64-unknown-linux-gnu |
x86_64-unknown-linux-musl |
aarch64-unknown-linux-gnu |
aarch64-unknown-linux-musl |
Example:
curl https://lazyprox.elliotlevin.dev/lazyprox-x86_64-unknown-linux-musl -o lazyprox
chmod +x ./lazyprox
./lazyprox --help