2023.1130
ssh -D 12345 -o TCPKeepAlive=yes -o ServerAliveInterval=10 -p 2200 rimmon@ovh3.monster.tw
連進 ovh3 後, 並在本機起一個 12345 port,(LISTEN 12345)

修改 mac 的網路設定,使用 socks proxy

———-
在本機的 4080 建立一個 ssh tunnel 經由 bq.monster.tw 連入到內網 home.monster.tw 的 4080 port, 使用 browser 連 127.0.0.1:4080
ssh -L 4080:home.monster.tw:4080 -o TCPKeepAlive=yes -o ServerAliveInterval=10 -p 2200 rimmon@bq.monster.tw
—
ssh -D 12345 -o TCPKeepAlive=yes -o ServerAliveInterval=10 -p 2200 rimmon@safe.monster.tw
ssh -D 12345 -o TCPKeepAlive=yes -o ServerAliveInterval=10 rimmon@safe.monster.tw
ssh -L 33389:192.168.100.2:3389 -o TCPKeepAlive=yes -o ServerAliveInterval=10 -p 2200 rimmon@safe.monster.tw
# —–
ssh -L 8000:192.168.1.1:80 -o TCPKeepAlive=yes -o ServerAliveInterval=10 -p 2200 rimmon@desktop.monster.tw
說明: 在本機端(port 8000) 建立一個與 desktop.monster.tw 的 ssh (port 2200) 通道, 由 desktop.monster.tw 連向 192.168.1.1 的 port 80
所以只要用 browser 連到本機 http://127.0.0.1:8000 即可連入 192.168.1.1:80
URL: OSX ssh tunnel
用 browser 連到本機 http://127.0.0.1:33890 即可連入 192.168.100.101:3389
ssh -L 33890:192.168.100.101:3389 -o TCPKeepAlive=yes -o ServerAliveInterval=10 -p 2200 rimmon@park.monster.tw