https://unix.stackexchange.com/questions/293304/using-netcat-for-port-forwarding
https://medium.com/notes-and-tips-in-full-stack-development/netcat-with-ssh-port-forwarding-148177b2e850
1.
sudo su
cd
mkfifo pip
nc -l -p 2266 < pip | ssh gw_to_private_net -p 22 "nc 192.168.12.230 22" > pip
2.
nc -l -p 58888 < pip |ssh gw_to_private_net -p 22 "ncat -l 5555 --proxy-type http ; nc 127.0.0.1 5555" > pip
curl -kv -x 127.0.0.1:58888 https://192.168.123.47:3000/
留言
張貼留言