V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
bouts0309

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

  •  
  •   bouts0309 · 3 days ago · 643 views

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

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

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

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

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