jumaris / sshtunnel

Automatically exported from code.google.com/p/sshtunnel
GNU General Public License v3.0
1 stars 0 forks source link

请求支持通过10.0.0.172:80代理连接ssh #74

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
目前我就是在电脑上cmwap拨号(TD网络),使用Tunnelier通过代理��
�接远程的ssh,创建ssh隧道,然后上网的,效果很好。

希望"sshtunnel"也能支持通过代理连接ssh 
server,这样可以方便很多cmwap包月用户。尤其是本软件可以针
对应用分别进行设置,某种程度上比openvpn方便很多,而且不�
��要tun模块。

希望能考虑一下,感激啊!

Original issue reported on code.google.com by nadoo...@gmail.com on 7 Sep 2011 at 3:27

GoogleCodeExporter commented 8 years ago
有些公司需要设置代理才可以上internet,但是android很多应用��
�支持代理。

sshtunnel支持这个功能后,手机上网就畅通无阻了...

初期先支持http代理就好,代理ip和端口可自行设置,这样应��
�能解决不少问题,谢谢!...

Original comment by nadoo...@gmail.com on 7 Sep 2011 at 3:32

GoogleCodeExporter commented 8 years ago

Original comment by max.c...@gmail.com on 8 Sep 2011 at 4:28

GoogleCodeExporter commented 8 years ago
感谢!!!

TD网络虽然很烂,但是在信号好的地方,下载也有100多KB/s,��
�上美国的ssh后,下载天空软件站的东西还有60KB/s.

有了这个之后,openvpn,cmwrap都可以不用了。 再次感谢!

Original comment by nadoo...@gmail.com on 8 Sep 2011 at 4:44

GoogleCodeExporter commented 8 years ago
1.5.3RC,帮忙测试一下

Original comment by max.c...@gmail.com on 8 Sep 2011 at 5:40

Attachments:

GoogleCodeExporter commented 8 years ago
老大太神速了!!谢谢!

测试成功,终于可以删掉cmwrap了。

需要把主机地址改成ip,使用域名会提示"连接失败:无法连��
�到主机",不过这个不影响使用。

Original comment by nadoo...@gmail.com on 8 Sep 2011 at 7:40

GoogleCodeExporter commented 8 years ago
修正了一下这个问题

Original comment by max.c...@gmail.com on 8 Sep 2011 at 7:55

Attachments:

GoogleCodeExporter commented 8 years ago
这次OK了,edge和td-hsdpa下都正常。 正在seesmic中,舒服。

Original comment by nadoo...@gmail.com on 8 Sep 2011 at 8:12

GoogleCodeExporter commented 8 years ago
另外,10.0.0.172:80代理是否会自动断开? 
例如一段时间没有数据传输之后? 

感觉隔段时间会断开一下,能够保持连接吗?

Original comment by nadoo...@gmail.com on 8 Sep 2011 at 9:09

GoogleCodeExporter commented 8 years ago
测试了一下:

youtube客户端,找了个15分钟的视频,下载速度和播放速度差��
�多,一直有数据传输,ssh一直没有断。

豆瓣音乐,下载速度比播放速度快,当一首歌下载完,还没��
�听完的时候,没有数据传输,有很大的几率断开。

Original comment by nadoo...@gmail.com on 8 Sep 2011 at 9:27

GoogleCodeExporter commented 8 years ago
测试了几次,使用cmwap代理连接ssh 
server,无数据传输自动断开的时间大概是60秒。 
wifi连接ssh貌似不会断。

Original comment by nadoo...@gmail.com on 9 Sep 2011 at 10:18

GoogleCodeExporter commented 8 years ago
移动网络环境下,如果你开了“按需打开数据”(大部分HTC��
�机默认),一定会自动断开。wifi下则不会断。

Original comment by max.c...@gmail.com on 9 Sep 2011 at 10:21

GoogleCodeExporter commented 8 years ago
我的手机是三星i9008L,似乎没有相关的设置。我用cmnet直连试
了几次,貌似都不会自动断开。所以猜测是10.0.0.17:80主动断��
�的。

Original comment by nadoo...@gmail.com on 9 Sep 2011 at 12:13

GoogleCodeExporter commented 8 years ago
如果是cmwap会经常断,怀疑是移动在他们的代理上限制了TCP长
连接时间和数量。

Original comment by max.c...@gmail.com on 9 Sep 2011 at 1:09

GoogleCodeExporter commented 8 years ago
在手机上,如果一直有数据传输(上面的youtube测试),是不会��
�的。

另外在电脑上通过10.0.0.172:80代理 连接ssh 
server,或者连接openvpn server也都不会断。

Original comment by nadoo...@gmail.com on 9 Sep 2011 at 3:42

GoogleCodeExporter commented 8 years ago
电信是限制了idle的TCP长连接数,像是在电脑上,背景数据是�
��直会有的,因此不会断开。但是手机上为了节约电能,休眠
后就不会再传输数据了,因此TCP连接处于idle状态,从而被代�
��服务器关闭。

Original comment by max.c...@gmail.com on 13 Sep 2011 at 1:03

GoogleCodeExporter commented 8 years ago
你说的对,又在电脑上测试,cmwap连ssh,如果ssh隧道确实没有
数据传输,1分钟之后也会自动被断开。

Tunnelier提示:“Server disconnected without sending a disconnect 
message.”,估计是被移动的代理给断开的。

能否设定一个间隔时间,每隔一段时间可以给ssh 
server发送一个空指令,或者无效的数据?给这个功能加个开��
�?

Original comment by nadoo...@gmail.com on 14 Sep 2011 at 2:24

GoogleCodeExporter commented 8 years ago
好像启用上级代理10.0.0.172:80不行 
cmwap下还是不能用,提示无法连接到服务器 
服务器已经换成IP地址了

Original comment by starki...@gmail.com on 18 Sep 2011 at 1:59

GoogleCodeExporter commented 8 years ago
你的ssh服务器端口是多少

Original comment by max.c...@gmail.com on 18 Sep 2011 at 4:00

GoogleCodeExporter commented 8 years ago
我的可以的,ssh服务器端口是22,成都地区。

另:我看到Tunnelier里有个keep-alive功能,说明是:"Keeps 
connection alive by sending empty packet every 60 seconds."  
可惜这个60秒不能改,刚好等于cmwap网关自动断开的时间。

Original comment by nadoo...@gmail.com on 18 Sep 2011 at 1:11

GoogleCodeExporter commented 8 years ago
1.7 测试版

怎么没有加入 ”启用上级代理“(10.0.0.172:80)  选项了。

可以加入,谢谢~

Original comment by log1...@gmail.com on 16 Oct 2011 at 6:13

GoogleCodeExporter commented 8 years ago

Original comment by max.c...@gmail.com on 18 Jan 2012 at 6:21