-
Notifications
You must be signed in to change notification settings - Fork 301
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
CDN through Cloudflare #63
Comments
As a followup I set up an AWS account and tried to get this working using cloudfront but still no luck. The ckclient.json in this case is:
When I start the cloak proxy with: ./ck-client -c ckclient.json -s mydomain.cloudfront.net I see lots of these errors:
Here are my origin settings on AWS: Finally, I was also watching the logs on the server side and no connections attempts were made to the cloak server running there so something is clearly not configured correctly with the client and the cloudfront CDN. Any thoughts here? |
I was a bit ambiguous when I wrote the instructions in the wiki. By "the domain of the CDN server", it should be what you referred to as |
@cbeuw thanks for the quick response. Unfortunately it seems still no joy. Here is the updated json:
Here is the log from my terminal, same error unfortunately.
|
It could be due to this. Should've been |
Sorry, that was idiotic of me. Config is now corrected resulting in a new error!
|
If you visit |
Initially no - but I realised some DNS A records were not configured properly. Having fixed now I can now If I curl using HTTP (
So then I tried again and now I see the connection in ck-server from a cloudfront proxy IP address (64.252.188.79), but the client errors remain the same. Client Side:
|
could be work on cloudflare cdn? |
the conversation shifted towards cloudfront, what about cloudflare? it would be really helpful if you could support cloudflare. because people from Cuba, Iran, Syria ... can't buy anything from a US based company. |
@itshaadi yeah maybe you could use v2ray, but i hope cloak support cloudflare |
It would be great if cloak could support cloudflare |
@vanyaindigo it uses v2ray-plugin, not Cloak. |
Hey there,
I have set up cloak with shadowsocks and it works fine in the direct mode.
I also saw on the wiki the instructions to set up a cloudfront CDN and use cloak in CDN mode. I am not using Amazong but I do have a Cloudflare account which I tried.
I mirrored the settings as similarly as possible based on the guide you provided in the wiki.
However now when I try to run the ckclient process in my client i get the following error when the shadowsocks client tries to initiate a connection.
ERRO[0021] Failed to prepare connection to remote: local error: tls: unexpected message
my ckclient.json looks like this:
I have also tried setting the ServerName to: mytld.com (and mytld.com) without any success.
In Cloudflare I have set up the SSL as "Flexible" meaning I believe viewer -> cloudflare is SSL but cloudflare -> myhost is not.
Is there anything missing here that could be causing this issue?
The text was updated successfully, but these errors were encountered: