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

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

  •  
  •   sohusi · 2023-03-03 22:40:51 +08:00 · 1176 次点击
    这是一个创建于 412 天前的主题,其中的信息可能已经有所发展或是发生改变。

    翻墙服务器懒得配置防火墙,索性不放开服务器端口,于是接入 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 条回复    2023-03-04 13:22:01 +08:00
    zhcode
        1
    zhcode  
       2023-03-03 22:45:32 +08:00
    梯子配置还用域名,自选 ip 写到 hosts 里
    ghjexxka
        2
    ghjexxka  
       2023-03-03 22:52:43 +08:00
    把地址填写成正常的域名试试看不就知道是不是自选 ip 的问题了?
    sohusi
        3
    sohusi  
    OP
       2023-03-03 23:31:05 +08:00
    @zhcode 这样可以,请问这是配置的有问题吗?

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

    你这是把域名填到伪装里去了,填到 SNI 试试?
    sohusi
        6
    sohusi  
    OP
       2023-03-04 00:32:11 +08:00
    @adrianzhang SNI 和伪装填的一样的,现在换了个 ip ,又好了,不知道咋回事
    miaomiao888
        7
    miaomiao888  
       2023-03-04 09:47:45 +08:00
    搁哪来的自选 IP ,你这 IP 都没法连接,有些优选 IP 项目扫的要不是个人自建的不稳定,要么是不匹配 sni.cloudflaressl.com 没法用。
    tanglu
        8
    tanglu  
       2023-03-04 12:09:10 +08:00
    好像可以自选耶
    我设置 hosts 自选 成功了
    ![image]( https://img.tanglu.me/2023/03/04/jzkg6s.webp)
    sohusi
        9
    sohusi  
    OP
       2023-03-04 13:22:01 +08:00
    @miaomiao888 几个月前就这样,当时换 IP 也不行,不知道咋回事
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3064 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 11:01 · PVG 19:01 · LAX 04:01 · JFK 07:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.