Last active
June 20, 2018 10:45
-
-
Save HeGanjie/c0006bc5a9ca679bcc6c5416ebdfb473 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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