bouts0309

开启 Cloudflare 的 DNS 代理之后, frp 就无法正常工作

  •  
  •   bouts0309 · Apr 26 · 2689 views
    This topic created in 198 days ago, the information mentioned may be changed or developed.

    关闭 DNS 代理可以正常访问的站点,开启 DNS 代理之后,frp 就会返回 404

    同时 frps 的日志显示 no route found xxx ,然而实际上这个 customDomain 已经配置过,不然关闭 DNS 代理也不会访问的通

    5 replies  •  2026-04-26 16:23:55 +08:00
    yinmin
    yinmin
    Apr 26 via iPhone❤️1
    1
    dns 代理模式能支持特定的几个端口,而且必须 http/https 协议的

    https://developers.cloudflare.com/fundamentals/reference/network-ports/
    bouts0309
    bouts0309
    OP
    Apr 26
    2
    @yinmin 看到过这个限制,我也是符合要求的 443 端口
    yinmin
    yinmin
    Apr 26 via iPhone
    3
    cloudflare 的 443 端口反向代理是基于标准的 https 协议,也就是 http+tls ,内部必须是标准的 http 协议。

    客户端向 cloudflare ip 发起 https request ,cloudflare 解密 tls 后,根据 request 参数向源服务器发起 https request 。frps 即使启用了 tls ,内部也不是 http 协议,cloudflare 免费版不支持的。
    yinmin
    yinmin
    Apr 26
    4
    你是走 frp 的 https 网站代理? #3 搞错了。
    bouts0309
    bouts0309
    OP
    Apr 26
    5
    @yinmin #4 是的,type = "https"
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   944 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 20:07 · PVG 04:07 · LAX 12:07 · JFK 15:07
    ♥ Do have faith in what you're doing.