將所有連接埠反向 SSH 隧道連接到 LAN

將所有連接埠反向 SSH 隧道連接到 LAN

如何反向 SHH 隧道遠端伺服器上的所有端口,以便遠端伺服器發出的任何請求都通過客戶端?

例如

client ssh into server 
server requests google.com
request goes from the server to the client over ssh then out to google.com
google.com responds to client which is forward to server over ssh tunnel

我想對所有連接埠以及互聯網和 LAN 連接執行此操作。它不必是永久的,只需在 ssh 連線開啟時即可。

相關內容