Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is RemoteHost and ServerName a duplicate option? #276

Open
fingolfin0 opened this issue Aug 25, 2024 · 3 comments
Open

Is RemoteHost and ServerName a duplicate option? #276

fingolfin0 opened this issue Aug 25, 2024 · 3 comments

Comments

@fingolfin0
Copy link

Hello and thanks for amazing tool!

I use config based on ckclient.json example from repo. But the cloak only worked after specifying the command line option -s. I also found that the -s option can be replaced with a RemoteHost one in the config. Now cloak works without -s option.

There is my /etc/cloak/ckclient.json:

{
"Transport": "direct",
"ProxyMethod": "wireguard",
"EncryptionMethod": "aes-gcm",
"UID": "MY-UID",
"PublicKey": "MY-PUBLIC-KEY",
"RemoteHost": "my.ckserver.example.com",
"ServerName": "my.ckserver.example.com",
"NumConn": 4,
"BrowserSig": "chrome",
"StreamTimeout": 300
}

Command line: ck-client -u -c /etc/cloak/ckclient.json

@StunTMaN7
Copy link

Hello and thanks for amazing tool!

I use config based on ckclient.json example from repo. But the cloak only worked after specifying the command line option -s. I also found that the -s option can be replaced with a RemoteHost one in the config. Now cloak works without -s option.

There is my /etc/cloak/ckclient.json:

{
"Transport": "direct",
"ProxyMethod": "wireguard",
"EncryptionMethod": "aes-gcm",
"UID": "MY-UID",
"PublicKey": "MY-PUBLIC-KEY",
"RemoteHost": "my.ckserver.example.com",
"ServerName": "my.ckserver.example.com",
"NumConn": 4,
"BrowserSig": "chrome",
"StreamTimeout": 300
}

Command line: ck-client -u -c /etc/cloak/ckclient.json

Do you mean you dont need to route your server to your local machine aswell?

@fingolfin0
Copy link
Author

Do you mean you dont need to route your server to your local machine aswell?

Sorry, I didn't understand your question. My bug report was about a duplicate option being required in the config, which is not mentioned in the documentation.

@cbeuw
Copy link
Owner

cbeuw commented Sep 30, 2024

ServerName is documented as

ServerName is the domain you want to make your ISP or firewall think you are visiting. Ideally it should match RedirAddr in the server's configuration, a major site the censor allows, but it doesn't have to. Use random to randomize the server name for every connection made.

I guess "server name" is not the most obvious name for this. It's not a duplicate option as ServerName can be anything you want whereas RemoteHost has to be a routable proxy host

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

No branches or pull requests

3 participants