[GH-ISSUE #67] About "server name" #58

Closed
opened 2026-02-26 12:33:51 +03:00 by kerem · 22 comments
Owner

Originally created by @windstander on GitHub (Sep 27, 2019).
Original GitHub issue: https://github.com/cbeuw/Cloak/issues/67

In the readme, "RedirAddr is the redirection address when the incoming traffic is not from a Cloak client. It should either be the same as, or correspond to the IP record of the ServerName field set in ckclient.json"

but after installation with that script, it says server name can "use anything you want", while the redirect IP is one of bing.com by default.

I tried to set the redirect IP to another site and set the server name to the domain of that site, but the cloak plugin dosen't work properly.

Originally created by @windstander on GitHub (Sep 27, 2019). Original GitHub issue: https://github.com/cbeuw/Cloak/issues/67 In the readme, "RedirAddr is the redirection address when the incoming traffic is not from a Cloak client. It should either be the same as, or correspond to the IP record of the ServerName field set in ckclient.json" but after installation with that script, it says server name can "use anything you want", while the redirect IP is one of bing.com by default. I tried to set the redirect IP to another site and set the server name to the domain of that site, but the cloak plugin dosen't work properly.
kerem closed this issue 2026-02-26 12:33:51 +03:00
Author
Owner

@cbeuw commented on GitHub (Sep 27, 2019):

Does it give any log outputs?

Sent with GitHawk

<!-- gh-comment-id:535824088 --> @cbeuw commented on GitHub (Sep 27, 2019): Does it give any log outputs? <sub>Sent with <a href="http://githawk.com">GitHawk</a></sub>
Author
Owner

@windstander commented on GitHub (Sep 27, 2019):

Where to find the log?

<!-- gh-comment-id:535824773 --> @windstander commented on GitHub (Sep 27, 2019): Where to find the log?
Author
Owner

@HirbodBehnam commented on GitHub (Sep 27, 2019):

With my script try systemctl status cloak-server

<!-- gh-comment-id:535825042 --> @HirbodBehnam commented on GitHub (Sep 27, 2019): With my script try `systemctl status cloak-server`
Author
Owner

@windstander commented on GitHub (Sep 27, 2019):

Readme says the redirect IP must belong to the "server name", while after installation the script says the server name can be any site you want.

Thus which is right?

<!-- gh-comment-id:535825627 --> @windstander commented on GitHub (Sep 27, 2019): Readme says the redirect IP must belong to the "server name", while after installation the script says the server name can be any site you want. Thus which is right?
Author
Owner

@HirbodBehnam commented on GitHub (Sep 27, 2019):

I will change the script
Sry for this

<!-- gh-comment-id:535826055 --> @HirbodBehnam commented on GitHub (Sep 27, 2019): I will change the script Sry for this
Author
Owner

@windstander commented on GitHub (Sep 27, 2019):

Thank you for your script.

I am busy and cannot get the log immediately.

I set the redirect IP to 104.85.216.15 and set the server name to steampowered.com. But the SS and cloak do not work. You can try it.

I want to masquerade as visiting the Steam site.

<!-- gh-comment-id:535827673 --> @windstander commented on GitHub (Sep 27, 2019): Thank you for your script. I am busy and cannot get the log immediately. I set the redirect IP to 104.85.216.15 and set the server name to steampowered.com. But the SS and cloak do not work. You can try it. I want to masquerade as visiting the Steam site.
Author
Owner

@cbeuw commented on GitHub (Sep 27, 2019):

If Cloak is already working with default settings, changing ServerName should have no bearing on the connection as it's just there for the firewall to see. Cloak server doesn't do anything with it

<!-- gh-comment-id:535829216 --> @cbeuw commented on GitHub (Sep 27, 2019): If Cloak is already working with default settings, changing `ServerName` should have no bearing on the connection as it's just there for the firewall to see. Cloak server doesn't do anything with it
Author
Owner

@windstander commented on GitHub (Sep 27, 2019):

If Cloak is already working with default settings, changing ServerName should have no bearing on the connection as it's just there for the firewall to see. Cloak server doesn't do anything with it

This time it works. You mean redirect IP can be any site's IP and the user can set any site's domain as server name?

<!-- gh-comment-id:535856157 --> @windstander commented on GitHub (Sep 27, 2019): > > > If Cloak is already working with default settings, changing `ServerName` should have no bearing on the connection as it's just there for the firewall to see. Cloak server doesn't do anything with it This time it works. You mean redirect IP can be any site's IP and the user can set any site's domain as server name?
Author
Owner

@windstander commented on GitHub (Sep 27, 2019):

With my script try systemctl status cloak-server

Failed again

Sep 27 17:08:50 instance-1 systemd[1]: Started Cloak Server Service.
Sep 27 17:08:50 instance-1 systemd[644]: cloak-server.service: Failed at step EXEC spawning /usr/local/bin/ck-serve
Sep 27 17:08:50 instance-1 systemd[1]: cloak-server.service: Main process exited, code=exited, status=203/EXEC
Sep 27 17:08:50 instance-1 systemd[1]: cloak-server.service: Unit entered failed state.
Sep 27 17:08:50 instance-1 systemd[1]: cloak-server.service: Failed with result 'exit-code'.
lines 1-10/10 (END)

<!-- gh-comment-id:535861567 --> @windstander commented on GitHub (Sep 27, 2019): > > > With my script try `systemctl status cloak-server` Failed again Sep 27 17:08:50 instance-1 systemd[1]: Started Cloak Server Service. Sep 27 17:08:50 instance-1 systemd[644]: cloak-server.service: Failed at step EXEC spawning /usr/local/bin/ck-serve Sep 27 17:08:50 instance-1 systemd[1]: cloak-server.service: Main process exited, code=exited, status=203/EXEC Sep 27 17:08:50 instance-1 systemd[1]: cloak-server.service: Unit entered failed state. Sep 27 17:08:50 instance-1 systemd[1]: cloak-server.service: Failed with result 'exit-code'. lines 1-10/10 (END)
Author
Owner

@windstander commented on GitHub (Sep 27, 2019):

rebooted

cloak-server.service - Cloak Server Service
Loaded: loaded (/etc/systemd/system/cloak-server.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2019-09-27 17:16:55 CST; 5min ago
Process: 660 ExecStart=/usr/local/bin/ck-server -c ckserver.json (code=exited, status=1/FAILURE)
Main PID: 660 (code=exited, status=1/FAILURE)

Sep 27 17:16:55 instance-1 systemd[1]: Started Cloak Server Service.
Sep 27 17:16:55 instance-1 ck-server[660]: 2019/09/27 17:16:55 ck-server.go:244: Must specify localAddr
Sep 27 17:16:55 instance-1 systemd[1]: cloak-server.service: Main process exited, code=exited, status=1/FAILURE
Sep 27 17:16:55 instance-1 systemd[1]: cloak-server.service: Unit entered failed state.
Sep 27 17:16:55 instance-1 systemd[1]: cloak-server.service: Failed with result 'exit-code'.

<!-- gh-comment-id:535864245 --> @windstander commented on GitHub (Sep 27, 2019): rebooted cloak-server.service - Cloak Server Service Loaded: loaded (/etc/systemd/system/cloak-server.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Fri 2019-09-27 17:16:55 CST; 5min ago Process: 660 ExecStart=/usr/local/bin/ck-server -c ckserver.json (code=exited, status=1/FAILURE) Main PID: 660 (code=exited, status=1/FAILURE) Sep 27 17:16:55 instance-1 systemd[1]: Started Cloak Server Service. Sep 27 17:16:55 instance-1 ck-server[660]: 2019/09/27 17:16:55 ck-server.go:244: Must specify localAddr Sep 27 17:16:55 instance-1 systemd[1]: cloak-server.service: Main process exited, code=exited, status=1/FAILURE Sep 27 17:16:55 instance-1 systemd[1]: cloak-server.service: Unit entered failed state. Sep 27 17:16:55 instance-1 systemd[1]: cloak-server.service: Failed with result 'exit-code'.
Author
Owner

@windstander commented on GitHub (Sep 27, 2019):

cloak-server.service - Cloak Server Service
Loaded: loaded (/etc/systemd/system/cloak-server.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2019-09-27 17:33:04 CST; 6min ago
Main PID: 650 (code=exited, status=203/EXEC)

Sep 27 17:33:04 instance-1 systemd[1]: Started Cloak Server Service.
Sep 27 17:33:04 instance-1 systemd[1]: cloak-server.service: Main process exited, code=exited, status=203/EXEC
Sep 27 17:33:04 instance-1 systemd[1]: cloak-server.service: Unit entered failed state.
Sep 27 17:33:04 instance-1 systemd[1]: cloak-server.service: Failed with result 'exit-code'.

<!-- gh-comment-id:535870001 --> @windstander commented on GitHub (Sep 27, 2019): cloak-server.service - Cloak Server Service Loaded: loaded (/etc/systemd/system/cloak-server.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Fri 2019-09-27 17:33:04 CST; 6min ago Main PID: 650 (code=exited, status=203/EXEC) Sep 27 17:33:04 instance-1 systemd[1]: Started Cloak Server Service. Sep 27 17:33:04 instance-1 systemd[1]: cloak-server.service: Main process exited, code=exited, status=203/EXEC Sep 27 17:33:04 instance-1 systemd[1]: cloak-server.service: Unit entered failed state. Sep 27 17:33:04 instance-1 systemd[1]: cloak-server.service: Failed with result 'exit-code'.
Author
Owner

@windstander commented on GitHub (Sep 27, 2019):

I will change the script
Sry for this

You are adjusting the script? Everytime I reinstall the plugin, the steps are changed.

<!-- gh-comment-id:535870319 --> @windstander commented on GitHub (Sep 27, 2019): > > > I will change the script > Sry for this You are adjusting the script? Everytime I reinstall the plugin, the steps are changed.
Author
Owner

@HirbodBehnam commented on GitHub (Sep 27, 2019):

Can you manually run
ck-server -c /etc/cloak/ckserver.json
and can you post /etc/cloak/ckserver.json file?

Edit:
What do you mean about steps are changed? And no I'm not editing the script

<!-- gh-comment-id:535870506 --> @HirbodBehnam commented on GitHub (Sep 27, 2019): Can you manually run `ck-server -c /etc/cloak/ckserver.json` and can you post `/etc/cloak/ckserver.json` file? Edit: What do you mean about steps are changed? And no I'm not editing the script
Author
Owner

@windstander commented on GitHub (Sep 27, 2019):

I uninstalled the plugin and wait for the new script.

Thank you all.

<!-- gh-comment-id:535872107 --> @windstander commented on GitHub (Sep 27, 2019): I uninstalled the plugin and wait for the new script. Thank you all.
Author
Owner

@HirbodBehnam commented on GitHub (Sep 27, 2019):

The script is fine on my server. I still have no idea what is causing the problem for you.

Update: Just reinstalled the script on my server and It was fine.

<!-- gh-comment-id:535872377 --> @HirbodBehnam commented on GitHub (Sep 27, 2019): The script is fine on my server. I still have no idea what is causing the problem for you. Update: Just reinstalled the script on my server and It was fine.
Author
Owner

@windstander commented on GitHub (Sep 27, 2019):

Can you manually run
ck-server -c /etc/cloak/ckserver.json
and can you post /etc/cloak/ckserver.json file?

Edit:
What do you mean about steps are changed? And no I'm not editing the script

root@instance-1:/home/XXX# ck-server -c /etc/cloak/ckserver.json
2019/09/27 19:53:02 ck-server.go:244: Must specify localAddr

<!-- gh-comment-id:535908345 --> @windstander commented on GitHub (Sep 27, 2019): > > > Can you manually run > `ck-server -c /etc/cloak/ckserver.json` > and can you post `/etc/cloak/ckserver.json` file? > > Edit: > What do you mean about steps are changed? And no I'm not editing the script root@instance-1:/home/XXX# ck-server -c /etc/cloak/ckserver.json 2019/09/27 19:53:02 ck-server.go:244: Must specify localAddr
Author
Owner

@malikshi commented on GitHub (Sep 27, 2019):

@windstander did you use script install cloak from @HirbodBehnam ? its should be working

<!-- gh-comment-id:535909139 --> @malikshi commented on GitHub (Sep 27, 2019): @windstander did you use script install cloak from @HirbodBehnam ? its should be working
Author
Owner

@windstander commented on GitHub (Sep 27, 2019):

@windstander did you use script install cloak from @HirbodBehnam ? its should be working

I use it on GCP.

<!-- gh-comment-id:535910449 --> @windstander commented on GitHub (Sep 27, 2019): > > > @windstander did you use script install cloak from @HirbodBehnam ? its should be working I use it on GCP.
Author
Owner

@windstander commented on GitHub (Sep 27, 2019):

Can you manually run
ck-server -c /etc/cloak/ckserver.json
and can you post /etc/cloak/ckserver.json file?

Edit:
What do you mean about steps are changed? And no I'm not editing the script

Before, it will ask me whether create my own net rule, but now it does not ask me and directly show the QRcode of the shadowsocks.

<!-- gh-comment-id:535914122 --> @windstander commented on GitHub (Sep 27, 2019): > > > Can you manually run > `ck-server -c /etc/cloak/ckserver.json` > and can you post `/etc/cloak/ckserver.json` file? > > Edit: > What do you mean about steps are changed? And no I'm not editing the script Before, it will ask me whether create my own net rule, but now it does not ask me and directly show the QRcode of the shadowsocks.
Author
Owner

@windstander commented on GitHub (Sep 27, 2019):

Can you manually run
ck-server -c /etc/cloak/ckserver.json
and can you post /etc/cloak/ckserver.json file?

Edit:
What do you mean about steps are changed? And no I'm not editing the script

And now the default server name is the redirect IP, not bing.com

<!-- gh-comment-id:535920968 --> @windstander commented on GitHub (Sep 27, 2019): > > > Can you manually run > `ck-server -c /etc/cloak/ckserver.json` > and can you post `/etc/cloak/ckserver.json` file? > > Edit: > What do you mean about steps are changed? And no I'm not editing the script And now the default server name is the redirect IP, not bing.com
Author
Owner

@HirbodBehnam commented on GitHub (Sep 27, 2019):

I still asks you if you want to set custom rules. After asking which dns server you want to use

<!-- gh-comment-id:535931190 --> @HirbodBehnam commented on GitHub (Sep 27, 2019): I still asks you if you want to set custom rules. After asking which dns server you want to use
Author
Owner

@windstander commented on GitHub (Sep 27, 2019):

Now it works fine.

I still asks you if you want to set custom rules. After asking which dns server you want to use

<!-- gh-comment-id:535939032 --> @windstander commented on GitHub (Sep 27, 2019): Now it works fine. > > > I still asks you if you want to set custom rules. After asking which dns server you want to use
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#58
No description provided.