V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
tonghuashuai
V2EX  ›  Cloudflare

cloudflare tunnel 该怎么配置支持 websocket 呢?

  •  
  •   tonghuashuai · 2022-10-08 12:24:58 +08:00 · 1885 次点击
    这是一个创建于 537 天前的主题,其中的信息可能已经有所发展或是发生改变。

    rt ,想做个 unraid 的内网穿透,需要 websocket ,官方说是支持的,但是文档 /网上找了一圈都没有提到要怎么设置,有哪位用过吗?

    3 条回复    2022-11-18 13:40:32 +08:00
    yaott2020
        1
    yaott2020  
       2022-10-08 20:30:30 +08:00 via Android
    高贵的付费用户不如去找客服
    c398425861
        2
    c398425861  
       2022-11-12 23:49:45 +08:00
    参考 smb https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/use_cases/smb/
    websocket 实质是 tcp 协议
    把 http 换成 tcp

    ![改成 tcp]( https://upload.cc/i1/2022/11/12/g2bHI4.png)

    然后 client 运行 cloudflared access tcp --hostname example.com --url localhost:443

    然后本地访问 443 端口就行
    tonghuashuai
        3
    tonghuashuai  
    OP
       2022-11-18 13:40:32 +08:00 via Android
    @c398425861
    感谢,回头试一下
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5519 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 01:38 · PVG 09:38 · LAX 18:38 · JFK 21:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.