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

Cloudflare CDN #196

Open
karafen opened this issue Jul 22, 2022 · 2 comments
Open

Cloudflare CDN #196

karafen opened this issue Jul 22, 2022 · 2 comments

Comments

@karafen
Copy link

karafen commented Jul 22, 2022

Hello guys! Please help me set up ss+cloak in Cloudflare CDN transport mode! Everything works fine in direct mode, but in CDN mode: "time="2022-07-23T00:24:58+05:00" level=error msg="Failed to prepare connection to remote: failed to handshake: websocket: bad handshake ".

@modd32
Copy link

modd32 commented Aug 31, 2022

How do you guys setup the CDN mode in Cloudflare? Is there a wiki or manual. Found this but still couldn't figure it out.
#155

@zelbeinstein
Copy link

zelbeinstein commented Sep 23, 2023

Hi! I used Cloudflare to proxy my server.
Here is a ckclient.json:

{
    "RemoteHost": "test.mydomain.org",
    "Transport": "CDN",
    "ProxyMethod": "wg",
    "EncryptionMethod": "plain",
    "UID": "---",
    "PublicKey": "---",
    "ServerName": "test.mydomain.org",
    "NumConn": 4,
    "BrowserSig": "firefox",
    "StreamTimeout": 300
}

In addition, all SSL/TLS options should be disabled on Cloudflare's side and the SSL/TLS encryption mode must be "Flexible".
Then go to your Cloak server config and add ":80" to the list of BindAddr, how it was written there.

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