跳到主要內容

發表文章

目前顯示的是 5月, 2024的文章

ssh AllowTCPForwarding 禁用 其他port forwarding方式

 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/