Added tunnel script
This commit is contained in:
parent
0688fe49dc
commit
d4b470989f
9
bin/.local/bin/tunnel
Executable file
9
bin/.local/bin/tunnel
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
PORT=$1
|
||||||
|
DOMAIN=$2
|
||||||
|
INTERNAL_PORT=$(shuf -i 1024-65535 -n 1)
|
||||||
|
|
||||||
|
echo $PORT $DOMAIN $INTERNAL_PORT
|
||||||
|
|
||||||
|
ssh -tR $INTERNAL_PORT:localhost:$PORT tunnel@10.0.0.2 -p 2222 $INTERNAL_PORT $DOMAIN
|
Loading…
Reference in New Issue
Block a user