bouts0309

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

  •  
  •   bouts0309 · Apr 26 · 1001 views
    This topic created in 32 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
        1
    yinmin  
       Apr 26 via iPhone   ❤️ 1
    dns 代理模式能支持特定的几个端口,而且必须 http/https 协议的

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

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