MCSManager icon indicating copy to clipboard operation
MCSManager copied to clipboard

Cloudflare代理后无法连接节点

Open abwuge opened this issue 3 years ago • 8 comments

MCSManager Version 9.9.0 System Info/Version Windows Server 2022 Datacenter 10.0.20348 Node Version v18.12.1 Step 1.IP通过Cloudflare绑定域名,并开启代理 image 2.在Cloudflare的规则->Origin Rules中,添加访问域名自动重定向到23333端口 image 3.访问域名,能正确访问到MCSManager web面板 image 4.在应用实例中选择任意一个节点(无论是公网ip直连、域名、localhost)的任意一个实例,均出现连接到远程节点错误。

1.原使用Ubuntu服务器,仍有相同问题 2.浏览器直连错误界面显示的ip:port(去掉wss://)可以正常显示如下界面。 image 3.一旦换为ip:23333或domin:port的访问形式后,不出现上述问题。

不知道是因为Cloudflare代理的原因还是Cloudflare端口转发的原因。但我希望MCSManager可以解决这个问题。

abwuge avatar Jul 05 '23 09:07 abwuge

44704C18-1B0E-4CA1-B30B-DE63D3B2839B Try to fill in your domain name here. Note that the web use port 23333 but application use port 24444, so don't use port 23333 here.

Zhou-Shilin avatar Jul 11 '23 02:07 Zhou-Shilin

~~为啥要用cloudflare减速器代理前端啊~~

你这个情况可能是因为你的节点地址的配置有问题,你是打算让节点流量直连 还是走cloudflare

bddjr avatar Sep 23 '23 10:09 bddjr

只要不使用HTTPS协议就行,如果访问web面板使用的是HTTPS(尤其是CF的免费证书),则连接实例时会使用wss;如果访问web面板使用的是HTTP,则连接实例时会使用ws。建议你使用HTTP。如果开启了CF的SSL加密,关掉。 image

WitheredWinter avatar Feb 01 '24 21:02 WitheredWinter

居然有人回答一个很无厘头的问题😂

我建议直接选择不用cloudflare

bddjr avatar Feb 02 '24 04:02 bddjr

~为啥要用cloudflare减速器代理前端啊~

你这个情况可能是因为你的节点地址的配置有问题,你是打算让节点流量直连 还是走cloudflare

为了使用它的端口转发功能,只是不想通过ip:port方式访问。

abwuge avatar Feb 09 '24 08:02 abwuge

只要不使用HTTPS协议就行,如果访问web面板使用的是HTTPS(尤其是CF的免费证书),则连接实例时会使用wss;如果访问web面板使用的是HTTP,则连接实例时会使用ws。建议你使用HTTP。如果开启了CF的SSL加密,关掉。 image

谢谢回复!

abwuge avatar Feb 09 '24 08:02 abwuge

您吉祥

为了使用它的端口转发功能,只是不想通过ip:port方式访问。

bddjr avatar Feb 09 '24 08:02 bddjr

44704C18-1B0E-4CA1-B30B-DE63D3B2839B Try to fill in your domain name here. Note that the web use port 23333 but application use port 24444, so don't use port 23333 here.

Thank you for your prompt reply. I’m sorry for replying late due to some reasons, but the method you suggested did not work for me. It prompted me “Browser cannot connect to wss://my.domain.here:24444”. But when I use the browser to visit my.domain.here:24444, it correctly returns "[MCSManager Daemon] Status: OK | reference: https://mcsmanager.com/". I tried the method provided by WitheredWinter and it worked. Thank you again for your help!

abwuge avatar Feb 09 '24 08:02 abwuge