proxychains 可以使指定的命令走 SSH 通道。
发现工具控节点前三个帖子都是我的。。
tsocks 可以
我用一个工具挺好的,不过是 gui 的,proxifier, 相当好用,配置方式很多
#2 楼 @aNdReW_Qx 我在 windows 下面也用的这个,没想到还有 mac 版,哈哈,非常感谢。 #1 楼 @alvin2ye 谢谢,我回头就试一下
#1 楼 @alvin2ye oh no,这软件竟然快 10 年没有更新了。。 http://tsocks.sourceforge.net/
好用不怕老
sudo ssh -qTfnN -D 127.0.0.1:1234 [email protected] [~] $ tsocks curl whatismyip.org 106.187.42.190
[~] $ cat /etc/tsocks.conf local = 127.0.0.1/255.255.255.255 # Set the IP of your SSH server server = 127.0.0.1 server_type = 5 server_port = 1234 tordns_enable = false
#2 楼 @aNdReW_Qx 收费的?
#7 楼 @sdpfoue 是
最后还是 proxchains 了,不过 2 台机器一台编译 ok,另一台失败 也可以创建文件 ~/.curlrc,内容:socks5 = "socks.socksproxy:port"