Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

无法连接到服务器,提示Connection is not alive #29

Open
MadIcecream opened this issue Feb 14, 2018 · 6 comments
Open

无法连接到服务器,提示Connection is not alive #29

MadIcecream opened this issue Feb 14, 2018 · 6 comments

Comments

@MadIcecream
Copy link

使用的是最新的dragonite-proxy
服务端
./dragonite-proxy -s -k secret -p 443
客户端

{
  "addr": "example.com",
  "password": "secret",
  "port": 443,
  "up": 20,
  "down": 100,
  "socks5port": 16666
}

服务端输出

02:26:59(-05) [INFO] Dragonite Proxy Version: v0.3.1
02:26:59(-05) [INFO] SDK Version: v0.3.3
02:26:59(-05) [INFO] Mux Version: v0.3.0
02:26:59(-05) [INFO] Checking for updates...
02:27:01(-05) [INFO] You are already using the latest version.
02:27:01(-05) [INFO] Using commandline arguments

客户端输出

15:32:50(+08) [INFO] Dragonite Proxy Version: v0.3.1
15:32:50(+08) [INFO] SDK Version: v0.3.3
15:32:50(+08) [INFO] Mux Version: v0.3.0
15:32:50(+08) [INFO] Checking for updates...
15:32:54(+08) [INFO] You are already using the latest version.
15:32:54(+08) [INFO] Using commandline arguments
15:33:05(+08) [ERROR] Unable to connect to remote server: com.vecsight.dragonite.sdk.exception.ConnectionNotAliveException: Connection is not alive
15:33:05(+08) [ERROR] Unable to initialize: com.vecsight.dragonite.sdk.exception.ConnectionNotAliveException: Connection is not alive

同样的操作,其实有时候又可以连接到服务器,并正常提供代理,但时好时坏的
使用ssh可以连通服务器,所以应该不是网络问题

@tobyxdd
Copy link
Collaborator

tobyxdd commented Feb 14, 2018

SSH用的是TCP协议 dragonite是UDP 可能你的网络UDP不太稳定?我建议你试试用iperf3之类的先测试下UDP联通情况

@MadIcecream
Copy link
Author

确实如此,是udp被掐死了
我用udp2raw包了一下,又可以连通了,但是速度掉很多,之前是30Mbits,现在只有5Mbits,不清楚到底是CPU不够用,还是udp2raw的损耗,或者是别的原因

dragonite以后有计划做自己的fake tcp吗?大流量的udp,被掐断的可能性挺高的。

@wangyu-
Copy link

wangyu- commented Feb 16, 2018

试一下给两边udp2raw加上 --cipher none --auth none

@MadIcecream
Copy link
Author

有改善,5Mbits变成10Mbits了

@wangyu-
Copy link

wangyu- commented Feb 17, 2018

@MadIcecream 测速的时候用top看一下cpu占用率

@MadIcecream
Copy link
Author

top里看到的比较波动,有时很低,有时很高
高的时候差不多是这样的
qq 20180220152820

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants