chisel-forward/entrypoint.sh

6 lines
196 B
Bash
Raw Normal View History

2024-08-30 11:28:33 +00:00
#!/bin/bash
socat TCP4-LISTEN:$LOCAL_PORT,fork,reuseaddr TCP4:TCP4:$LOCAL_HOST:$LOCAL_PORT &
chisel client --auth "$USER:$TOKEN" "$HOST" "R:$LOCAL_HOST:$LOCAL_PORT:127.0.0.1:$REMOTE_PORT" &
wait