diff --git a/initMySpace.sh b/initMySpace.sh new file mode 100644 index 0000000..2919fbb --- /dev/null +++ b/initMySpace.sh @@ -0,0 +1,6 @@ +nohup ssh -vL 8081:localhost:8081 root@192.168.29.158 -p 2222 -N > output.log 2>&1 & +sleep 8 +nginx +nohup ssh -NT -o ServerAliveInterval=60 -o ServerAliveCountMax=10 -o ExitOnForwardFailure=yes -v -R 8080:127.0.0.1:8080 root@74.208.17.166 output.log 2>&1 & +sleep 8 +echo "[+] Tunneling process ran successfully!!!" diff --git a/initNavidrome_http.sh b/initNavidrome_http.sh new file mode 100644 index 0000000..39b9ae5 --- /dev/null +++ b/initNavidrome_http.sh @@ -0,0 +1,9 @@ + + EXISTING_SSH_PID=$(pgrep -f "ssh -R 80:localhost:4533 serveo.net") + echo $EXISTING_SSH_PID + + + if ! [ -n "$EXISTING_SSH_PID" ]; then + # Start reverse proxy in the background + nohup caddy reverse-proxy --from :2637 --to :4533 + fi diff --git a/initRVP_http.sh b/initRVP_http.sh new file mode 100644 index 0000000..528ea5a --- /dev/null +++ b/initRVP_http.sh @@ -0,0 +1,12 @@ + + + + EXISTING_SSH_PID=$(pgrep -f "ssh -R 80:localhost:8080 serveo.net") + echo $EXISTING_SSH_PID + + + if ! [ -n "$EXISTING_SSH_PID" ]; then + # Start reverse port forwarding in the background + nohup caddy reverse-proxy --from :2638 --to :8080 + + fi