3

我在 Stackoverflow 上的第一个问题是:我应该怎么做才能让 SSH SOCKS 5 代理 (SSH2) 允许多个连接?

我注意到的是,当我在 Firefox 中加载页面(已经配置为使用 SOCKS 5 代理)时,它会一一加载所有内容。它可以用肉眼感知,我还通过使用 Firebug 的 NET 选项卡确认了这一点,该选项卡记录了已建立的连接。

我已经在about:config页面中配置了一些指令,比如管道、持久代理连接和其他一些东西。但是我仍然得到这种资源的顺序加载,这显然非常慢。

network.http.pipelining;true
network.http.pipelining.maxrequests;8
network.http.pipelining.ssl;true
network.http.proxy.pipelining;true
network.http.max-persistent-connections-per-proxy;100
network.proxy.socks_remote_dns;true

我的 ISP 很糟糕,因为在白天,它故意随机断开连接。因此,如果不需要大量浏览器刷新或按 F5 键,就不可能真正完成有意义的工作。所以,这就是我开始寻找解决方案的原因。

SSH 的动态端口转发是我目前找到的最好的解决方案,因为它有一些非常好的压缩功能,可以节省很多无用的流量,而且也很安全。剩下的唯一一件事就是让它运行多个连接。

感谢所有输入。

4

2 回答 2

0

I think it may have something to do with SSH-over-TCP itself; plus, perhaps, some extra inefficiencies and/or bugs in the implementations. Are you using only OpenSSH on Mac OS X / *BSD / Linux, or is this PuTTY on Windows?

Your situation is actually pretty much exactly why SCTP was developed (as a TCP replacement), which has a notion of multiple streams from within a single connection.

Hopefully, we'll have SSH over SCTP readily available one day. The best part about SCTP is that it'd still work over IPv4, i.e. it is supposedly mostly a matter of only the endhosts having support for it, so, unlike IPv6, you wouldn't have to wait for your lazy ISP (at leasts, theoretically).

于 2014-01-12T04:13:22.153 回答
0

我也有同样的想法,我的结论是它应该已经有多个连接通过 socks 代理。这是因为如果您查看带有-vvv标志的 ssh 连接,您会注意到它为不同的请求打开了不同的端口。

于 2010-09-07T14:25:58.647 回答