[GH-ISSUE #164] AlternativeNames does not work in Cloak_windows 2.5.4 #135

Open
opened 2026-02-26 12:34:04 +03:00 by kerem · 15 comments
Owner

Originally created by @gegehennb on GitHub (Jun 5, 2021).
Original GitHub issue: https://github.com/cbeuw/Cloak/issues/164

{    
   "Transport":"direct",    
    "ProxyMethod":"shadowsocks",    
    "EncryptionMethod":"plain",    
    "UID":"*********************************",  
    "PublicKey":"*********************************",  
    "ServerName":"bing.com",  
    "AlternativeNames": ["cloudflare.com", "github.com"],
    "NumConn":0,
    "BrowserSig":"chrome",
    "StreamTimeout":300
}

This is my json configuration file, but Cloak_Windows 2.5.4 is not working properly.There are a lot of error messages here.

level=error msg="Failed to prepare connection to remote: read tcp ******->******: wsarecv: An existing connection was forcibly closed by the remote host."

I use AlternativeNames on Cloak_Android 2.5.4 and it works fine.If I delete "AlternativeNames": ["cloudflare.com", "github.com"], Cloak_Windows 2.5.4 will work fine.How should I set it up to make AlternativeNames work properly on Cloak_Windows 2.5.4? thank you.

Originally created by @gegehennb on GitHub (Jun 5, 2021). Original GitHub issue: https://github.com/cbeuw/Cloak/issues/164 ``` { "Transport":"direct", "ProxyMethod":"shadowsocks", "EncryptionMethod":"plain", "UID":"*********************************", "PublicKey":"*********************************", "ServerName":"bing.com", "AlternativeNames": ["cloudflare.com", "github.com"], "NumConn":0, "BrowserSig":"chrome", "StreamTimeout":300 } ``` This is my json configuration file, but Cloak_Windows 2.5.4 is not working properly.There are a lot of error messages here. `level=error msg="Failed to prepare connection to remote: read tcp ******->******: wsarecv: An existing connection was forcibly closed by the remote host."` I use AlternativeNames on Cloak_Android 2.5.4 and it works fine.If I delete "AlternativeNames": ["cloudflare.com", "github.com"], Cloak_Windows 2.5.4 will work fine.How should I set it up to make AlternativeNames work properly on Cloak_Windows 2.5.4? thank you.
Author
Owner

@malikshi commented on GitHub (Jun 6, 2021):

It's work fine for me. Can you tell your cloak server version?

<!-- gh-comment-id:855366730 --> @malikshi commented on GitHub (Jun 6, 2021): It's work fine for me. Can you tell your cloak server version?
Author
Owner

@gegehennb commented on GitHub (Jun 6, 2021):

It's work fine for me. Can you tell your cloak server version?

ck-server-linux-amd64-v2.5.4

<!-- gh-comment-id:855386241 --> @gegehennb commented on GitHub (Jun 6, 2021): > It's work fine for me. Can you tell your cloak server version? ck-server-linux-amd64-v2.5.4
Author
Owner

@loyess commented on GitHub (Jun 6, 2021):

Plugin Options:...... ;AlternativeNames=cloudflare.com,github.com

<!-- gh-comment-id:855402305 --> @loyess commented on GitHub (Jun 6, 2021): Plugin Options:...... ;AlternativeNames=cloudflare.com,github.com
Author
Owner

@gegehennb commented on GitHub (Jun 6, 2021):

Plugin Options:...... ;AlternativeNames=cloudflare.com,github.com

thanks,I use your shell to install ss-rust and cloak, it is great.
I bought a virmach one-time vps to configure AlternativeNames. If I delete AlternativeNames, cloak will work normally.

      "server": "198.23.209.167",
      "server_port": 443,
      "password": "eYinlbPfJp65",
      "method": "aes-256-gcm",
      "plugin": "ck-client",
      "plugin_opts": "ckclient.json",
      "remarks": "tset",
      "timeout": 5,
      "warnLegacyUrl": false

This is my ss-rust configuration.

{
    "Transport":"direct",
    "ProxyMethod":"shadowsocks",
    "EncryptionMethod":"plain",
    "UID":"62UTSjCRv4vmkGRhWZzdOg==",
    "PublicKey":"0FJt6/t+9LhR4oIBQQIBwG9vqftWSx/7XboW+yMraDA=",
    "ServerName":"bing.com",
    "NumConn":0,
    "BrowserSig":"chrome",
    "StreamTimeout":300
}

This is my ckclient.json file.In this case, cloak works normally.
But when I add the AlternativeNames configuration:

{
    "Transport":"direct",
    "ProxyMethod":"shadowsocks",
    "EncryptionMethod":"plain",
    "UID":"62UTSjCRv4vmkGRhWZzdOg==",
    "PublicKey":"0FJt6/t+9LhR4oIBQQIBwG9vqftWSx/7XboW+yMraDA=",
    "ServerName":"bing.com",
    "AlternativeNames":["cloudflare.com", "github.com"],
    "NumConn":0,
    "BrowserSig":"chrome",
    "StreamTimeout":300
}

There are a lot of errors in cloak.

time="2021-06-06T22:04:56+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
time="2021-06-06T22:04:56+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
time="2021-06-06T22:04:56+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
time="2021-06-06T22:04:59+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
<!-- gh-comment-id:855404685 --> @gegehennb commented on GitHub (Jun 6, 2021): > Plugin Options:...... ;AlternativeNames=cloudflare.com,github.com thanks,I use your shell to install ss-rust and cloak, it is great. I bought a virmach one-time vps to configure AlternativeNames. If I delete AlternativeNames, cloak will work normally. ``` "server": "198.23.209.167", "server_port": 443, "password": "eYinlbPfJp65", "method": "aes-256-gcm", "plugin": "ck-client", "plugin_opts": "ckclient.json", "remarks": "tset", "timeout": 5, "warnLegacyUrl": false ``` This is my ss-rust configuration. ``` { "Transport":"direct", "ProxyMethod":"shadowsocks", "EncryptionMethod":"plain", "UID":"62UTSjCRv4vmkGRhWZzdOg==", "PublicKey":"0FJt6/t+9LhR4oIBQQIBwG9vqftWSx/7XboW+yMraDA=", "ServerName":"bing.com", "NumConn":0, "BrowserSig":"chrome", "StreamTimeout":300 } ``` This is my ckclient.json file.In this case, cloak works normally. But when I add the AlternativeNames configuration: ``` { "Transport":"direct", "ProxyMethod":"shadowsocks", "EncryptionMethod":"plain", "UID":"62UTSjCRv4vmkGRhWZzdOg==", "PublicKey":"0FJt6/t+9LhR4oIBQQIBwG9vqftWSx/7XboW+yMraDA=", "ServerName":"bing.com", "AlternativeNames":["cloudflare.com", "github.com"], "NumConn":0, "BrowserSig":"chrome", "StreamTimeout":300 } ``` There are a lot of errors in cloak. ``` time="2021-06-06T22:04:56+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond." time="2021-06-06T22:04:56+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond." time="2021-06-06T22:04:56+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond." time="2021-06-06T22:04:59+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond." ```
Author
Owner

@loyess commented on GitHub (Jun 6, 2021):

AlternativeNames is a client parameter, and the server does not need to be added.

<!-- gh-comment-id:855405537 --> @loyess commented on GitHub (Jun 6, 2021): AlternativeNames is a client parameter, and the server does not need to be added.
Author
Owner

@gegehennb commented on GitHub (Jun 6, 2021):

AlternativeNames is a client parameter, and the server does not need to be added.

I did not add AlternativeNames to the server.

{
    "ProxyBook":{
    "shadowsocks":["tcp","127.0.0.1:11653"]
    },
    "BindAddr":[":443",":80"],
    "BypassUID":[],
    "RedirAddr":"cloudflare.com",
    "PrivateKey":"SG49Q7veIoLecTDdRPJeWYrh+TUcXguisuPZyvFv/30=",
    "AdminUID":"62UTSjCRv4vmkGRhWZzdOg==",
    "DatabasePath":"/etc/cloak/userinfo.db"
}

This is my server configuration.

<!-- gh-comment-id:855405840 --> @gegehennb commented on GitHub (Jun 6, 2021): > AlternativeNames is a client parameter, and the server does not need to be added. I did not add AlternativeNames to the server. ``` { "ProxyBook":{ "shadowsocks":["tcp","127.0.0.1:11653"] }, "BindAddr":[":443",":80"], "BypassUID":[], "RedirAddr":"cloudflare.com", "PrivateKey":"SG49Q7veIoLecTDdRPJeWYrh+TUcXguisuPZyvFv/30=", "AdminUID":"62UTSjCRv4vmkGRhWZzdOg==", "DatabasePath":"/etc/cloak/userinfo.db" } ``` This is my server configuration.
Author
Owner

@loyess commented on GitHub (Jun 6, 2021):

ss server:

{
    "server":"0.0.0.0",
    "server_port":10123,
    "password":"ItEWk7Dhk4rj",
    "timeout":300,
    "user":"nobody",
    "method":"aes-256-gcm",
    "nameserver":"8.8.8.8",
    "mode":"tcp_and_udp"
}

cloak server:

{
    "ProxyBook":{
    "shadowsocks":["tcp","127.0.0.1:10123"]
    },
    "BindAddr":[":443",":80"],
    "BypassUID":[],
    "RedirAddr":"13.107.21.200",
    "PrivateKey":"qO5PV7/cZFlIQ9z2M1kOd/3xEpl6Mc/Jzy+P0TTebms=",
    "AdminUID":"lDvVmQ7VrYP22PiJW03neg==",
    "DatabasePath":"/etc/cloak/userinfo.db"
}
ss://YWVzLTI1Ni1nY206SXRFV2s3RGhrNHJq@Your-Vps-IP:443/?plugin=ck-client%3bTransport%3ddirect%3bProxyMethod%3dshadowsocks%3bEncryptionMethod%3dplain%3bUID%3dlDvVmQ7VrYP22PiJW03neg%3d%3d%3bPublicKey%3dzDDtAIYn0NFS8qUb94EOmtohZi0zJiWfQn2kDa%2fvNVA%3d%3bServerName%3dwww.bing.com%3bNumConn%3d4%3bBrowserSig%3dchrome%3bStreamTimeout%3d300%3bAlternativeNames%3dcloudflare.com%2cgithub.com
<!-- gh-comment-id:855406617 --> @loyess commented on GitHub (Jun 6, 2021): ss server: ``` { "server":"0.0.0.0", "server_port":10123, "password":"ItEWk7Dhk4rj", "timeout":300, "user":"nobody", "method":"aes-256-gcm", "nameserver":"8.8.8.8", "mode":"tcp_and_udp" } ``` cloak server: ``` { "ProxyBook":{ "shadowsocks":["tcp","127.0.0.1:10123"] }, "BindAddr":[":443",":80"], "BypassUID":[], "RedirAddr":"13.107.21.200", "PrivateKey":"qO5PV7/cZFlIQ9z2M1kOd/3xEpl6Mc/Jzy+P0TTebms=", "AdminUID":"lDvVmQ7VrYP22PiJW03neg==", "DatabasePath":"/etc/cloak/userinfo.db" } ``` ``` ss://YWVzLTI1Ni1nY206SXRFV2s3RGhrNHJq@Your-Vps-IP:443/?plugin=ck-client%3bTransport%3ddirect%3bProxyMethod%3dshadowsocks%3bEncryptionMethod%3dplain%3bUID%3dlDvVmQ7VrYP22PiJW03neg%3d%3d%3bPublicKey%3dzDDtAIYn0NFS8qUb94EOmtohZi0zJiWfQn2kDa%2fvNVA%3d%3bServerName%3dwww.bing.com%3bNumConn%3d4%3bBrowserSig%3dchrome%3bStreamTimeout%3d300%3bAlternativeNames%3dcloudflare.com%2cgithub.com ```
Author
Owner

@loyess commented on GitHub (Jun 6, 2021):

image

ckclient.json

{
    "Transport":"direct",
    "ProxyMethod":"shadowsocks",
    "EncryptionMethod":"plain",
    "UID":"lDvVmQ7VrYP22PiJW03neg==",
    "PublicKey":"zDDtAIYn0NFS8qUb94EOmtohZi0zJiWfQn2kDa/vNVA=",
    "ServerName":"www.bing.com",
    "AlternativeNames":["cloudflare.com", "github.com"],
    "NumConn":4,
    "BrowserSig":"chrome",
    "StreamTimeout":300
}

This configuration can also be connected normally.

Note: ckclient.json and Shadowsocks.exe are in the same directory.

<!-- gh-comment-id:855411731 --> @loyess commented on GitHub (Jun 6, 2021): ![image](https://user-images.githubusercontent.com/24491220/120928721-6efaba00-c718-11eb-9233-9b3738c84312.png) ckclient.json ``` { "Transport":"direct", "ProxyMethod":"shadowsocks", "EncryptionMethod":"plain", "UID":"lDvVmQ7VrYP22PiJW03neg==", "PublicKey":"zDDtAIYn0NFS8qUb94EOmtohZi0zJiWfQn2kDa/vNVA=", "ServerName":"www.bing.com", "AlternativeNames":["cloudflare.com", "github.com"], "NumConn":4, "BrowserSig":"chrome", "StreamTimeout":300 } ``` This configuration can also be connected normally. Note: `ckclient.json` and `Shadowsocks.exe` are in the same directory.
Author
Owner

@gegehennb commented on GitHub (Jun 7, 2021):

image

ckclient.json

{
    "Transport":"direct",
    "ProxyMethod":"shadowsocks",
    "EncryptionMethod":"plain",
    "UID":"lDvVmQ7VrYP22PiJW03neg==",
    "PublicKey":"zDDtAIYn0NFS8qUb94EOmtohZi0zJiWfQn2kDa/vNVA=",
    "ServerName":"www.bing.com",
    "AlternativeNames":["cloudflare.com", "github.com"],
    "NumConn":4,
    "BrowserSig":"chrome",
    "StreamTimeout":300
}

This configuration can also be connected normally.

Note: ckclient.json and Shadowsocks.exe are in the same directory.

I tried the two methods you provided, and there are still a lot of errors using ckclient.json, fill in the parameters in the plugin- opt, cloak works normally, I think this is very strange, thank you.

<!-- gh-comment-id:855489783 --> @gegehennb commented on GitHub (Jun 7, 2021): > ![image](https://user-images.githubusercontent.com/24491220/120928721-6efaba00-c718-11eb-9233-9b3738c84312.png) > > ckclient.json > > ``` > { > "Transport":"direct", > "ProxyMethod":"shadowsocks", > "EncryptionMethod":"plain", > "UID":"lDvVmQ7VrYP22PiJW03neg==", > "PublicKey":"zDDtAIYn0NFS8qUb94EOmtohZi0zJiWfQn2kDa/vNVA=", > "ServerName":"www.bing.com", > "AlternativeNames":["cloudflare.com", "github.com"], > "NumConn":4, > "BrowserSig":"chrome", > "StreamTimeout":300 > } > ``` > > This configuration can also be connected normally. > > Note: `ckclient.json` and `Shadowsocks.exe` are in the same directory. I tried the two methods you provided, and there are still a lot of errors using `ckclient.json`, fill in the parameters in the plugin- opt, cloak works normally, I think this is very strange, thank you.
Author
Owner

@gegehennb commented on GitHub (Jun 8, 2021):

I tried many times, the AlternativeNames parameter still causes Cloak not to work properly, I logged the client side as well as the server side log.

client side:

time="2021-06-08T19:37:45+08:00" level=info msg="Listening on TCP 127.0.0.1:54861 for shadowsocks client"
time="2021-06-08T19:37:45+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:37:45+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:37:45+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:37:45+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:37:45+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:37:46+08:00" level=info msg="Session 218243560 established"
time="2021-06-08T19:37:46+08:00" level=info msg="Session 1337763719 established"
time="2021-06-08T19:37:46+08:00" level=info msg="Session 2443471207 established"
time="2021-06-08T19:37:46+08:00" level=info msg="Session 1230811531 established"
time="2021-06-08T19:37:46+08:00" level=info msg="Session 1376150089 established"
time="2021-06-08T19:37:49+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:37:49+08:00" level=info msg="Session 1526686589 established"
time="2021-06-08T19:37:56+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:37:56+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:37:57+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:37:57+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:00+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:00+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:00+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:00+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:01+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:01+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:01+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:01+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:03+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:03+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:03+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:03+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:07+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:07+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:07+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:07+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:11+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:15+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:15+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:15+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:15+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:17+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
time="2021-06-08T19:38:17+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:17+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:17+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
time="2021-06-08T19:38:18+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:18+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:18+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
time="2021-06-08T19:38:18+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
time="2021-06-08T19:38:20+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:20+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:20+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:21+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
time="2021-06-08T19:38:21+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
time="2021-06-08T19:38:21+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
time="2021-06-08T19:38:21+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
time="2021-06-08T19:38:22+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
time="2021-06-08T19:38:22+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
time="2021-06-08T19:38:22+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
time="2021-06-08T19:38:22+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
time="2021-06-08T19:38:23+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:23+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:23+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:23+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:23+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:23+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:24+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
time="2021-06-08T19:38:24+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
time="2021-06-08T19:38:24+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:24+08:00" level=info msg="Attempting to start a new session"
time="2021-06-08T19:38:24+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
time="2021-06-08T19:38:24+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."

server side:

time="2021-06-08T19:36:36+08:00" level=info msg="Starting standalone mode"
time="2021-06-08T19:36:36+08:00" level=info msg="Listening on :80"
time="2021-06-08T19:36:36+08:00" level=info msg="Listening on :443"
time="2021-06-08T19:37:45+08:00" level=info msg="New session" UID="GLKALVZxt6PEdfMUTBMBbw==" sessionID=218243560
time="2021-06-08T19:37:45+08:00" level=info msg="New session" UID="GLKALVZxt6PEdfMUTBMBbw==" sessionID=1337763719
time="2021-06-08T19:37:45+08:00" level=info msg="New session" UID="GLKALVZxt6PEdfMUTBMBbw==" sessionID=2443471207
time="2021-06-08T19:37:45+08:00" level=info msg="New session" UID="GLKALVZxt6PEdfMUTBMBbw==" sessionID=1230811531
time="2021-06-08T19:37:45+08:00" level=info msg="New session" UID="GLKALVZxt6PEdfMUTBMBbw==" sessionID=1376150089
time="2021-06-08T19:37:48+08:00" level=info msg="New session" UID="GLKALVZxt6PEdfMUTBMBbw==" sessionID=1526686589
time="2021-06-08T19:38:01+08:00" level=debug msg="session 1376150089 has no active stream left"
time="2021-06-08T19:38:15+08:00" level=debug msg="attempting to actively close session 1376150089"
time="2021-06-08T19:38:15+08:00" level=debug msg="a connection for session 1376150089 has closed: read tcp 198.23.209.167:443->*.*.*.*:59485: use of closed network connection"
time="2021-06-08T19:38:15+08:00" level=debug msg="attempting to passively close session 1376150089"
time="2021-06-08T19:38:15+08:00" level=debug msg="session 1376150089 has already been closed"
time="2021-06-08T19:38:15+08:00" level=debug msg="session 1376150089 closed gracefully"
time="2021-06-08T19:38:15+08:00" level=info msg="Session closed" UID="GLKALVZxt6PEdfMUTBMBbw==" reason=timeout sessionID=1376150089
time="2021-06-08T19:38:15+08:00" level=debug msg="attempting to actively close session 1376150089"
time="2021-06-08T19:38:15+08:00" level=debug msg="session 1376150089 has already been closed"
time="2021-06-08T19:38:18+08:00" level=debug msg="attempting to actively close session 1526686589"
time="2021-06-08T19:38:18+08:00" level=debug msg="a connection for session 1526686589 has closed: read tcp 198.23.209.167:443->*.*.*.*:64297: use of closed network connection"
time="2021-06-08T19:38:18+08:00" level=debug msg="attempting to passively close session 1526686589"
time="2021-06-08T19:38:18+08:00" level=debug msg="session 1526686589 has already been closed"
time="2021-06-08T19:38:18+08:00" level=debug msg="session 1526686589 closed gracefully"
time="2021-06-08T19:38:18+08:00" level=info msg="Session closed" UID="GLKALVZxt6PEdfMUTBMBbw==" reason=timeout sessionID=1526686589
time="2021-06-08T19:38:18+08:00" level=debug msg="attempting to actively close session 1526686589"
time="2021-06-08T19:38:18+08:00" level=debug msg="session 1526686589 has already been closed"

When the AlternativeNames parameter is removed, Cloak works normally. I really don't know what's happening, hope someone can help me, thanks.

<!-- gh-comment-id:856697843 --> @gegehennb commented on GitHub (Jun 8, 2021): I tried many times, the AlternativeNames parameter still causes Cloak not to work properly, I logged the client side as well as the server side log. client side: ``` time="2021-06-08T19:37:45+08:00" level=info msg="Listening on TCP 127.0.0.1:54861 for shadowsocks client" time="2021-06-08T19:37:45+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:37:45+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:37:45+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:37:45+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:37:45+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:37:46+08:00" level=info msg="Session 218243560 established" time="2021-06-08T19:37:46+08:00" level=info msg="Session 1337763719 established" time="2021-06-08T19:37:46+08:00" level=info msg="Session 2443471207 established" time="2021-06-08T19:37:46+08:00" level=info msg="Session 1230811531 established" time="2021-06-08T19:37:46+08:00" level=info msg="Session 1376150089 established" time="2021-06-08T19:37:49+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:37:49+08:00" level=info msg="Session 1526686589 established" time="2021-06-08T19:37:56+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:37:56+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:37:57+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:37:57+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:00+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:00+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:00+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:00+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:01+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:01+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:01+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:01+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:03+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:03+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:03+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:03+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:07+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:07+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:07+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:07+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:11+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:15+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:15+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:15+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:15+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:17+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond." time="2021-06-08T19:38:17+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:17+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:17+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond." time="2021-06-08T19:38:18+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:18+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:18+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond." time="2021-06-08T19:38:18+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond." time="2021-06-08T19:38:20+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:20+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:20+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:21+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond." time="2021-06-08T19:38:21+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond." time="2021-06-08T19:38:21+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond." time="2021-06-08T19:38:21+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond." time="2021-06-08T19:38:22+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond." time="2021-06-08T19:38:22+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond." time="2021-06-08T19:38:22+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond." time="2021-06-08T19:38:22+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond." time="2021-06-08T19:38:23+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:23+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:23+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:23+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:23+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:23+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:24+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond." time="2021-06-08T19:38:24+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond." time="2021-06-08T19:38:24+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:24+08:00" level=info msg="Attempting to start a new session" time="2021-06-08T19:38:24+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond." time="2021-06-08T19:38:24+08:00" level=error msg="Failed to establish new connections to remote: dial tcp 198.23.209.167:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond." ``` server side: ``` time="2021-06-08T19:36:36+08:00" level=info msg="Starting standalone mode" time="2021-06-08T19:36:36+08:00" level=info msg="Listening on :80" time="2021-06-08T19:36:36+08:00" level=info msg="Listening on :443" time="2021-06-08T19:37:45+08:00" level=info msg="New session" UID="GLKALVZxt6PEdfMUTBMBbw==" sessionID=218243560 time="2021-06-08T19:37:45+08:00" level=info msg="New session" UID="GLKALVZxt6PEdfMUTBMBbw==" sessionID=1337763719 time="2021-06-08T19:37:45+08:00" level=info msg="New session" UID="GLKALVZxt6PEdfMUTBMBbw==" sessionID=2443471207 time="2021-06-08T19:37:45+08:00" level=info msg="New session" UID="GLKALVZxt6PEdfMUTBMBbw==" sessionID=1230811531 time="2021-06-08T19:37:45+08:00" level=info msg="New session" UID="GLKALVZxt6PEdfMUTBMBbw==" sessionID=1376150089 time="2021-06-08T19:37:48+08:00" level=info msg="New session" UID="GLKALVZxt6PEdfMUTBMBbw==" sessionID=1526686589 time="2021-06-08T19:38:01+08:00" level=debug msg="session 1376150089 has no active stream left" time="2021-06-08T19:38:15+08:00" level=debug msg="attempting to actively close session 1376150089" time="2021-06-08T19:38:15+08:00" level=debug msg="a connection for session 1376150089 has closed: read tcp 198.23.209.167:443->*.*.*.*:59485: use of closed network connection" time="2021-06-08T19:38:15+08:00" level=debug msg="attempting to passively close session 1376150089" time="2021-06-08T19:38:15+08:00" level=debug msg="session 1376150089 has already been closed" time="2021-06-08T19:38:15+08:00" level=debug msg="session 1376150089 closed gracefully" time="2021-06-08T19:38:15+08:00" level=info msg="Session closed" UID="GLKALVZxt6PEdfMUTBMBbw==" reason=timeout sessionID=1376150089 time="2021-06-08T19:38:15+08:00" level=debug msg="attempting to actively close session 1376150089" time="2021-06-08T19:38:15+08:00" level=debug msg="session 1376150089 has already been closed" time="2021-06-08T19:38:18+08:00" level=debug msg="attempting to actively close session 1526686589" time="2021-06-08T19:38:18+08:00" level=debug msg="a connection for session 1526686589 has closed: read tcp 198.23.209.167:443->*.*.*.*:64297: use of closed network connection" time="2021-06-08T19:38:18+08:00" level=debug msg="attempting to passively close session 1526686589" time="2021-06-08T19:38:18+08:00" level=debug msg="session 1526686589 has already been closed" time="2021-06-08T19:38:18+08:00" level=debug msg="session 1526686589 closed gracefully" time="2021-06-08T19:38:18+08:00" level=info msg="Session closed" UID="GLKALVZxt6PEdfMUTBMBbw==" reason=timeout sessionID=1526686589 time="2021-06-08T19:38:18+08:00" level=debug msg="attempting to actively close session 1526686589" time="2021-06-08T19:38:18+08:00" level=debug msg="session 1526686589 has already been closed" ``` When the AlternativeNames parameter is removed, Cloak works normally. I really don't know what's happening, hope someone can help me, thanks.
Author
Owner

@loyess commented on GitHub (Jun 8, 2021):

For me, it works well on ss-win, but cannot access the network on android. adb logcat seems to be all right.

<!-- gh-comment-id:856874437 --> @loyess commented on GitHub (Jun 8, 2021): For me, it works well on ss-win, but cannot access the network on android. adb logcat seems to be all right.
Author
Owner

@gegehennb commented on GitHub (Jun 8, 2021):

For me, it works well on ss-win, but cannot access the network on android. adb logcat seems to be all right.

Strangely, I found that sometimes Cloak works fine with the AlternativeNames parameter added, and sometimes Cloak does not. So I gave up adding this parameter. But hopefully someone can check it and fix it, thanks a lot.

<!-- gh-comment-id:856891239 --> @gegehennb commented on GitHub (Jun 8, 2021): > For me, it works well on ss-win, but cannot access the network on android. adb logcat seems to be all right. Strangely, I found that sometimes Cloak works fine with the AlternativeNames parameter added, and sometimes Cloak does not. So I gave up adding this parameter. But hopefully someone can check it and fix it, thanks a lot.
Author
Owner

@spyophobia commented on GitHub (Jun 30, 2021):

@gegehennb @loyess people...

Stop posting your private keys. And consider them compromised. And change them NOW.

<!-- gh-comment-id:871298815 --> @spyophobia commented on GitHub (Jun 30, 2021): @gegehennb @loyess people... Stop posting your private keys. And consider them compromised. And change them NOW.
Author
Owner

@gegehennb commented on GitHub (Jun 30, 2021):

@gegehennb @loyess people...

Stop posting your private keys. And consider them compromised. And change them NOW.

I have modified the private keys on the vps. Thank you for the suggestion.

<!-- gh-comment-id:871380927 --> @gegehennb commented on GitHub (Jun 30, 2021): > @gegehennb @loyess people... > > Stop posting your private keys. And consider them compromised. And change them NOW. I have modified the private keys on the vps. Thank you for the suggestion.
Author
Owner

@notsure2 commented on GitHub (Jul 26, 2021):

It's possible the AlternateNames you are using are blocked by your ISP. Or your ISP maybe detecting and blocking Cloak.

<!-- gh-comment-id:886886056 --> @notsure2 commented on GitHub (Jul 26, 2021): It's possible the AlternateNames you are using are blocked by your ISP. Or your ISP maybe detecting and blocking Cloak.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Cloak#135
No description provided.