mirror of
https://github.com/cbeuw/Cloak.git
synced 2026-04-28 05:55:56 +03:00
[GH-ISSUE #37] SS with Cloak constantly stops working #28
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Cloak#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @obvioususername on GitHub (Jul 4, 2019).
Original GitHub issue: https://github.com/cbeuw/Cloak/issues/37
My SS-Server OS : Ubuntu 18.04 LTS (GNU/Linux 4.15.0-20-generic x86_64)
My Local OS : Windows 7 Home
My applications version : Shaowsocks-libev server 3.3.0 with Cloak plugin
Shadowsocks Windows client 4.1.6 with Cloak plugin
The problem is that the proxy speed drops dramatically(can't load web pages at all) every few minutes or just time out.
Sometimes the proxy wouldn't work when i open the browser even i never turn off the ss client.
Two workaround i found are :
A. Switch my SS client proxy mode from Global to Pac then switch back. Sometimes i have to switch'em back and forth until it works lol .
B. Restart Shadowsocks client, but it doesn't work every time.
If i leave it be and do nothing about it, it sometimes it goes back to normal in few minutes, sometime it just stay dead until i perform CPR(the workround lol) to it.
Besides, i found out that when the SS proxy goes extremely slow or failed, so does the SSH connection to my remote server. However, the connectivity testing result of my remote server is all good.
PS. i have set the Timeout on ss server and client into 5 sec, it's better than before a little bit, but the problem's still there.
@malikshi commented on GitHub (Jul 7, 2019):
does windows 7 support system proxy GLOBAL mode ?
@cbeuw commented on GitHub (Jul 7, 2019):
Can you run Cloak in standalone mode in cmd and see the log?
@obvioususername commented on GitHub (Jul 7, 2019):
I have no idea, should it ?
@obvioususername commented on GitHub (Jul 7, 2019):
Ok , how do i run standalone mode and where can i find the log ?
@cbeuw commented on GitHub (Jul 7, 2019):
In shadowsocks client, duplicate the current profile you are using and change the server to 127.0.0.1, the port to one of your liking (say 8388). Clear the plugin and plugin_opts fields
Open up cmd, go into the directory of ck-client.exe, run ck-client -s [IP of your server] -l 8388 -c [path to config file]
Logs will then be printed to the cmd window
@obvioususername commented on GitHub (Jul 7, 2019):
Here's the log :
2019/07/07 16:31:07 ck-client.go:131: Starting standalone mode
2019/07/07 16:31:07 ck-client.go:168: Listening for ss on 127.0.0.1:8388
2019/07/07 16:31:07 ck-client.go:174: Attemtping to start a new sessi
2019/07/07 16:31:09 ck-client.go:204: Session 1438396682 established
2019/07/07 16:32:06 ck-client.go:174: Attemtping to start a new sessi
2019/07/07 16:32:06 ck-client.go:225: broken session
2019/07/07 16:32:10 ck-client.go:204: Session 1570754861 established
2019/07/07 16:33:56 ck-client.go:174: Attemtping to start a new sessi
2019/07/07 16:33:56 ck-client.go:225: broken session
2019/07/07 16:33:57 ck-client.go:204: Session 558097203 established
2019/07/07 16:34:46 ck-client.go:174: Attemtping to start a new sessi
2019/07/07 16:34:46 ck-client.go:225: broken session
2019/07/07 16:34:52 ck-client.go:204: Session 1394925037 established
2019/07/07 16:45:38 ck-client.go:231: write tcp 192.168.1.101:56253->
6:443: use of closed network connection
2019/07/07 16:46:53 ck-client.go:231: write tcp 192.168.1.101:56254->
6:443: use of closed network connection
2019/07/07 16:46:53 ck-client.go:231: write tcp 192.168.1.101:56254->
6:443: wsasend: An existing connection was forcibly closed by the remote host.
2019/07/07 16:46:54 ck-client.go:231: write tcp 192.168.1.101:56255->
6:443: wsasend: An existing connection was forcibly closed by the rem
2019/07/07 16:46:54 ck-client.go:231: write tcp 192.168.1.101:56255->
6:443: use of closed network connection
2019/07/07 16:46:54 ck-client.go:231: write tcp 192.168.1.101:56255->
6:443: use of closed network connection
2019/07/07 16:46:59 ck-client.go:174: Attemtping to start a new sessi
2019/07/07 16:46:59 ck-client.go:225: broken session
2019/07/07 16:47:00 ck-client.go:204: Session 1446117769 established
2019/07/07 16:47:44 ck-client.go:174: Attemtping to start a new sessi
2019/07/07 16:47:44 ck-client.go:225: broken session
2019/07/07 16:47:45 ck-client.go:204: Session 1131773671 established
The problem's still there during standalone mode. By the way i'm experencing a weird thing that a certain youtube page i visit very often can't be opened without serveral try in most of the time, while any ohther youtube pages are fine.
PS. From 16:45:38 to 16:46:54 i did a speed test, that's probably why those text pops up.
@cbeuw commented on GitHub (Jul 7, 2019):
It looks like your computer is having trouble maintaining the underlying TCP connections with the server. Can you try to use Cloak on another network, like the wifi of a cafe or something and see if the problem still exists?
@obvioususername commented on GitHub (Jul 7, 2019):
I'd like to do that but i can't at this moment or in near future :-(
@obvioususername commented on GitHub (Jul 7, 2019):
Is there another way?
@cbeuw commented on GitHub (Jul 7, 2019):
Here's another idea: pick a website that normally gets a decent amount a traffic (e.g. YouTube), set
WebServerAddrfield of ck-server to be the IP address of this website (use ping to find out it's IP), then edit the host file on your win7 computer so that the domain of the website points to the IP of your SS server. Browse this website for a while and see how stable it is. If this also has issues then I suspect that maybe the ISP is disrupting the traffic to and from your SS server@obvioususername commented on GitHub (Jul 7, 2019):
Ok, do i need to edit
ServerNamein ckclient.json to Youtube ?@cbeuw commented on GitHub (Jul 7, 2019):
Yup that as well
@obvioususername commented on GitHub (Jul 8, 2019):
I did that and the proxy's not working at all, every webpage i opened just keep loading until it time out.
Here's the SS log if you wanna take a look :
2019-07-08 06:36:46 INFO: plugin "/home/peiper/cloak/ck-server-linux-amd64-1.1.1"
enabled
2019-07-08 06:36:46 INFO: initializing ciphers... chacha20-ietf-poly1305
2019-07-08 06:36:46 INFO: tcp server listening at 127.0.0.1:37091
2019-07-08 06:36:46 INFO: running from root user
2019/07/08 06:36:46 ck-server.go:265: Listening on ...:443
2019/07/08 06:36:53 ck-server.go:142: write tcp ...:443->...:10304: write:
connection reset by peer
2019/07/08 06:36:53 ck-server.go:142: write tcp ...:443->...:10240: write:
connection reset by peer
2019/07/08 06:36:53 ck-server.go:142: write tcp ...:443->...:10432: write:
connection reset by peer
2019/07/08 06:39:54 ck-server.go:142: write tcp ...:443->...:9408: write:
connection reset by peer
2019/07/08 06:39:54 ck-server.go:142: write tcp ...:443->...:9472: write:
connection reset by peer
@chenshaoju commented on GitHub (Jul 12, 2019):
I have the same issue.
Sometimes, The proxy connect is get stuck, After 5min~40 min It can back to normal. At the server, The log says:
Jul 11 23:47:08 debian-s-1vcpu-1gb-lon1-01 ss-server[2071]: 2019-07-11 23:47:08 ERROR: server recv: Connection reset by peerSame
ServerNameconfig never happens in GoQuite.It looks like server-side ss-server <-> ck-server have a communication issue or something else.
@yangwe1 commented on GitHub (Jul 24, 2019):
Totally same here. I started using Cloak last night and a few moment later the issue came out.
The server was setup by using this script in tutorial. The only modified param is NumConn which I'm not sure the meanning of was set to 40.
Here's the log:
The scanners or rebots or something keeps annoying me...so I need a plugin like this to protect my ss server
@zhiming-xu commented on GitHub (Jul 29, 2019):
As far as I know, the error
Connection reset by peeroften results from your ISP or firewall's attacks.@chenshaoju commented on GitHub (Aug 24, 2019):
After using Cloak 2.0.2, Everying is working fine.
Thanks.