6 lines
196 B
Bash
6 lines
196 B
Bash
|
#!/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
|