mirror of
https://github.com/cbeuw/Cloak.git
synced 2026-04-26 13:05:56 +03:00
[GH-ISSUE #41] Problem while setting up #34
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#34
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 (Aug 3, 2019).
Original GitHub issue: https://github.com/cbeuw/Cloak/issues/41
Hello, i set up the SS server with Cloak, but got an error when running
ss-serverthe error info line :
ck-server.go:254: Configuration file error: Failed to unmarshal: invalid character '}' looking for beginning of object key stringMy
ckserver.jsonlooks like this :{
"ProxyBook":{
"shadowsocks":"127.0.0.1:1488",
},
"RedirAddr":"54.222.60.218:443",
"PrivateKey":"myprivatekey",
"AdminUID":"myadminuid",
"DatabasePath":"home/peiper/cloak/userinfo.db"
}
I cpoied the json file in your github code and edit it. Anything wrong with it ?
@cbeuw commented on GitHub (Aug 3, 2019):
I think it's due to the trailing comma after shadowsocks' entry in ProxyBook, try removing it
@obvioususername commented on GitHub (Aug 3, 2019):
It worked. Thank you. The SS-server started successfully and the client is running as well, however the proxy is not actually working.
Here is the log of shadowsocks' client :
[2019-08-03 23:38:10] Started SIP003 plugin for ...:8388 on 127.0.0.1:54797 - PID: 2624
[2019-08-03 23:38:10] ...:8388 timed out
[2019-08-03 23:38:10] Started SIP003 plugin for ...:8388 on 127.0.0.1:54801 - PID: 6300
[2019-08-03 23:38:11] ...:8388 timed out
[2019-08-03 23:38:11] Started SIP003 plugin for ...:8388 on 127.0.0.1:54806 - PID: 4828
[2019-08-03 23:38:11] ...:8388 timed out
[2019-08-03 23:38:11] Started SIP003 plugin for ...:8388 on 127.0.0.1:54811 - PID: 3460
[2019-08-03 23:38:11] Started SIP003 plugin for ...:8388 on 127.0.0.1:54816 - PID: 1848
[2019-08-03 23:38:11] Started SIP003 plugin for ...:8388 on 127.0.0.1:54824 - PID: 3736
[2019-08-03 23:38:12] ...:8388 timed out
[2019-08-03 23:38:12] Started SIP003 plugin for ...:8388 on 127.0.0.1:54830 - PID: 5492
[2019-08-03 23:38:12] ...:8388 timed out
[2019-08-03 23:38:12] ...:8388 timed out
[2019-08-03 23:38:12] Started SIP003 plugin for ...:8388 on 127.0.0.1:54839 - PID: 1676
[2019-08-03 23:38:12] System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接
。
在 Shadowsocks.Util.Sockets.WrappedSocket.EndConnect(IAsyncResult asyncResult)
在 Shadowsocks.Proxy.DirectConnect.EndConnectDest(IAsyncResult asyncResult)
在 Shadowsocks.Controller.TCPHandler.ConnectCallback(IAsyncResult ar)
[2019-08-03 23:38:12] System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接
。
在 Shadowsocks.Util.Sockets.WrappedSocket.EndConnect(IAsyncResult asyncResult)
在 Shadowsocks.Proxy.DirectConnect.EndConnectDest(IAsyncResult asyncResult)
在 Shadowsocks.Controller.TCPHandler.ConnectCallback(IAsyncResult ar)
[2019-08-03 23:38:13] ...:8388 timed out
[2019-08-03 23:38:13] ...:8388 timed out
[2019-08-03 23:38:13] System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接
。
在 Shadowsocks.Util.Sockets.WrappedSocket.EndConnect(IAsyncResult asyncResult)
在 Shadowsocks.Proxy.DirectConnect.EndConnectDest(IAsyncResult asyncResult)
在 Shadowsocks.Controller.TCPHandler.ConnectCallback(IAsyncResult ar)
[2019-08-03 23:38:13] Started SIP003 plugin for ...:8388 on 127.0.0.1:54844 - PID: 4460
[2019-08-03 23:38:13] Started SIP003 plugin for ...:8388 on 127.0.0.1:54849 - PID: 6640
[2019-08-03 23:38:13] System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接
。
在 Shadowsocks.Util.Sockets.WrappedSocket.EndConnect(IAsyncResult asyncResult)
在 Shadowsocks.Proxy.DirectConnect.EndConnectDest(IAsyncResult asyncResult)
在 Shadowsocks.Controller.TCPHandler.ConnectCallback(IAsyncResult ar)
[2019-08-03 23:38:14] ...:8388 timed out
[2019-08-03 23:38:14] System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接
。
在 Shadowsocks.Util.Sockets.WrappedSocket.EndConnect(IAsyncResult asyncResult)
在 Shadowsocks.Proxy.DirectConnect.EndConnectDest(IAsyncResult asyncResult)
在 Shadowsocks.Controller.TCPHandler.ConnectCallback(IAsyncResult ar)
[2019-08-03 23:38:14] Started SIP003 plugin for ...:8388 on 127.0.0.1:54854 - PID: 3596
[2019-08-03 23:38:15] System.Net.Sockets.SocketException (0x80004005): 由于目标计算机积极拒绝,无法连接
。
在 Shadowsocks.Util.Sockets.WrappedSocket.EndConnect(IAsyncResult asyncResult)
在 Shadowsocks.Proxy.DirectConnect.EndConnectDest(IAsyncResult asyncResult)
在 Shadowsocks.Controller.TCPHandler.ConnectCallback(IAsyncResult ar)
[2019-08-03 23:38:16] Started SIP003 plugin for ...:8388 on 127.0.0.1:54861 - PID: 6680
[2019-08-03 23:38:17] ...:8388 timed out
[2019-08-03 23:38:17] Started SIP003 plugin for ...:8388 on 127.0.0.1:54866 - PID: 4280
[2019-08-03 23:38:18] ...:8388 timed out
Here is the Shadowsocks server's config.json :
{
"server":"myserver'sIP",
"server_port":8388,
"local_port":1080,
"password":"mypassword",
"timeout":1,
"method":"chacha20-ietf-poly1305",
"plugin":"/home/peiper/cloak/ck-server-linux-amd64-1.1.2",
"plugin_opts":"/home/peiper/cloak/ckserver.json"
}
And here's my ckserver.json :
{
"ProxyBook":{
"shadowsocks":"myserver'sIP:8388"
},
"RedirAddr":"54.222.60.218:443",
"PrivateKey":"myprivatekey",
"AdminUID":"myUID",
"DatabasePath":"/home/peiper/cloak/userinfo.db"
}
Besides, i tried run
sudo ck-server -c <path to ckserver.json>, but i got an error saysck-server.go:244: Must specify localAddr@Klaaktu commented on GitHub (Aug 9, 2019):
@cbeuw Does ProxyBook setting matter if ck-server is started as a shadowsocks plugin? Or should I also configure ss to listen on local only, and put local address in ProxyBook?
@obvioususername As far as I can tell, the error suggests something like localhost:1080 in ckserver.json instead of public ip. Also the timeout in shadowsocks' config might be too short https://github.com/shadowsocks/shadowsocks-libev/issues/2#issuecomment-17932222 .
@cbeuw commented on GitHub (Aug 9, 2019):
@klaaktu The ProxyBook entry for "shadowsocks" is ignored if ck-server is started as a plugin, so you don't need to put shadowsocks' listening address in ProxyBook
@Klaaktu commented on GitHub (Aug 11, 2019):
@cbeuw In shadowsocks plugin mode section, the wiki says
"plugin_opts": "-c <path to ckserver.json>". I think it's just"plugin_opts": "<path to ckserver.json>"without the-cright?Also ck-client is getting false positive in windows.
@cbeuw commented on GitHub (Aug 12, 2019):
@klaaktu Yup that's right. Good catch!
Do you mean anti-virus false positive?
@Klaaktu commented on GitHub (Aug 12, 2019):
@cbeuw yea, anti-virus, the pc with latest update of windows defender's intelligence. In windows defender and chrome's download (which is also scanned by windows iirc).
@cbeuw commented on GitHub (Aug 12, 2019):
@klaaktu Windows Smartscreen did pick it up because "very few people have downloaded it". It did the same for all the previous versions as well though so I think it probably flags every .exe that's not frequently seen by it. I scanned it with Windows Defender and it didn't pick up anything. https://www.virustotal.com/gui/file/f65f2d58bc02641db99fc192c2a7c4e5d25a27fb0bc1bc83cc07568379bce2f1/detection appears mostly fine.
@gabrix73 commented on GitHub (Oct 27, 2023):
Cloak is on debian bullseye vps.
And ....
Port 443:
And this is ckserver.json