sohusi

接入 cloudflare tunnel 后能不能自选 IP?

  •  
  •   sohusi · Mar 3, 2023 · 3157 views
    This topic created in 1190 days ago, the information mentioned may be changed or developed.

    翻墙服务器懒得配置防火墙,索性不放开服务器端口,于是接入 cloudflare tunnel ,但现在发现好像只能通过 域名才能连上梯子,用自选 IP 客户端会报错,服务端也没有收到数据,cloudflared 也没有日志输出 客户端日志:

    2023/03/03 22:30:50 127.0.0.1:64370 accepted //alive.github.com:443 [proxy]
    2023/03/03 22:30:51 [Warning] app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: failed to find an available destination > common/retry: [transport/internet/websocket: failed to dial WebSocket > transport/internet/websocket: failed to dial to (wss://8.210.159.196/路径):  > dial tcp 8.210.159.196:443: connectex: No connection could be made because the target machine actively refused it. transport/internet/websocket: failed to dial WebSocket > transport/internet/websocket: failed to dial to (wss://8.210.159.196/路径):  > dial tcp 8.210.159.196x:443: i/o timeout] > common/retry: all retry attempts failed
    

    客户端配置:

    9 replies    2023-03-04 13:22:01 +08:00
    zhcode
        1
    zhcode  
       Mar 3, 2023
    梯子配置还用域名,自选 ip 写到 hosts 里
    ghjexxka
        2
    ghjexxka  
       Mar 3, 2023
    把地址填写成正常的域名试试看不就知道是不是自选 ip 的问题了?
    sohusi
        3
    sohusi  
    OP
       Mar 3, 2023
    @zhcode 这样可以,请问这是配置的有问题吗?

    @ghjexxka 正常域名可以连上
    adrianzhang
        4
    adrianzhang  
       Mar 4, 2023 via iPhone
    不开放端口什么意思?监听 127001 或 localhost?如果这样的话除了 tunnel 没人能从外面连上去。。
    adrianzhang
        5
    adrianzhang  
       Mar 4, 2023 via iPhone
    看错了。

    你这是把域名填到伪装里去了,填到 SNI 试试?
    sohusi
        6
    sohusi  
    OP
       Mar 4, 2023
    @adrianzhang SNI 和伪装填的一样的,现在换了个 ip ,又好了,不知道咋回事
    miaomiao888
        7
    miaomiao888  
       Mar 4, 2023
    搁哪来的自选 IP ,你这 IP 都没法连接,有些优选 IP 项目扫的要不是个人自建的不稳定,要么是不匹配 sni.cloudflaressl.com 没法用。
    tanglu
        8
    tanglu  
       Mar 4, 2023
    好像可以自选耶
    我设置 hosts 自选 成功了
    ![image]( https://img.tanglu.me/2023/03/04/jzkg6s.webp)
    sohusi
        9
    sohusi  
    OP
       Mar 4, 2023
    @miaomiao888 几个月前就这样,当时换 IP 也不行,不知道咋回事
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2657 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 11:22 · PVG 19:22 · LAX 04:22 · JFK 07:22
    ♥ Do have faith in what you're doing.