Skip to content

Instantly share code, notes, and snippets.

@HeGanjie
Last active June 20, 2018 10:45
Show Gist options
  • Save HeGanjie/c0006bc5a9ca679bcc6c5416ebdfb473 to your computer and use it in GitHub Desktop.
Save HeGanjie/c0006bc5a9ca679bcc6c5416ebdfb473 to your computer and use it in GitHub Desktop.
# https://unix.stackexchange.com/questions/10428/simple-way-to-create-a-tunnel-from-one-local-port-to-another
ssh -L -R # limit for 0.0.0.0
watch -n0 busybox nc -l -p 3389 -e /bin/nc 127.0.0.1 8000 # have restart time gap
socat tcp-listen:443,reuseaddr,fork tcp:localhost:8080 # need install
# can not install socat, compile yourself? https://github.com/cornerpirate/socat-shell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment