V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
Persimmon08
V2EX  ›  问与答

自建 vps 代理, chatgpt 安卓客户端 disallowed ISP 报错如何解决?

  •  
  •   Persimmon08 · 33 天前 · 1015 次点击
    这是一个创建于 33 天前的主题,其中的信息可能已经有所发展或是发生改变。
    1. 完整报错提示:Something went wrong. You may be connected to a disallowed ISP. If you are using VPN, try disabling it. Otherwise try a different Wi-Fi network or data connection

    2. 使用 racknerd ,cloudcone 和 aws 的代理,客户端都会遇到上述报错,网页端则没有。使用 azure 代理,chatgpt app 和网页端均正常使用。相比于网页,app 对代理的检测似乎更为严格。

    3. 在 warp 的分流规则中添加了 android.chat.openai.com ,仍然不行。请问大家,这个报错能否通过分流来解决,或者有其他更好的方法吗?

    拜谢各位大佬!

    16 条回复    2024-08-19 15:04:25 +08:00
    s4d
        1
    s4d  
       33 天前 via iPhone
    换个 IP ,openai 域名要搞全。
    pagxir
        2
    pagxir  
       33 天前
    刚测试了,racknerd 的 IP 是可以的,vultr 的 IP 也是可以的。一般只有国内商家开出来的机器的 IP 才会不行,那种广播的 IP 。直接国内走国内,国外走国外就好了。
    SenLief
        3
    SenLief  
       33 天前
    我都用甲骨文都能访问,还是 ip 的问题。
    cookii
        4
    cookii  
       33 天前 via Android
    warp 可以,应该是域名分流不全
    Persimmon08
        5
    Persimmon08  
    OP
       33 天前
    @pagxir @cookii

    大佬可否分享一下 完整的域名,目前我只分流了以下域名,应该是不全的

    "openai.com",
    "api.openai.com",
    "beta.openai.com",
    "blog.openai.com",
    "cdn.openai.com",
    "s3-us-west-2.amazonaws.com",
    "android.chat.openai.com",
    "chat.openai.com"
    Persimmon08
        6
    Persimmon08  
    OP
       33 天前
    @SenLief
    @s4d
    套了 warp 理论上应该可以隐藏真实 ip 呀,貌似很多网友都遇到这个问题
    cookii
        8
    cookii  
       33 天前 via Android
    @Persimmon08 我全局走 warp ,懒得折腾
    hfJ433
        10
    hfJ433  
       33 天前
    oaistatic.com
    oaiusercontent.com

    加上这两个试试
    SenLief
        11
    SenLief  
       33 天前
    @Persimmon08 因为 openai 也用了 cf ,所以 cf 把你的真实 ip 发给了 openai
    Persimmon08
        12
    Persimmon08  
    OP
       32 天前
    @pipe @cookii @daisyfloor @hfJ433 @SenLief

    感谢各位大佬的建议。

    1. 排查发现,安卓手机上的 v2rayNG 不支持分流,导致手机上 chatgpt 相关请求都没有走 warp 的分流,暴露的都是 vps 真实 IP 。

    2. 关于手机上 v2rayNG 不支持服务器端 warp 分流的 bug ,两年前就有网友发现了,但目前似乎没有特别好用的解决办法。

    相关讨论:

    - https://github.com/2dust/v2rayNG/issues/1685
    - https://github.com/2dust/v2rayNG/issues/2121

    请问各位大佬,有没有其他好用的安卓代理软件,或者有没有简单的解决办法应对 v2rayNG 这个分流 bug ?
    SenLief
        13
    SenLief  
       32 天前
    @Persimmon08 换 clash 系列就可以了
    daisyfloor
        14
    daisyfloor  
       32 天前   ❤️ 1
    @SenLief

    不会。

    如果被访问的目标网站也启用了 CF 的 CDN ,当访问方使用 warp 访问目标站的时候,CF 的 CDN 回源的时候会在 request 的 Header 里 的 CF-Connecting-IP 里填入 warp 的 IP 地址:warp-ip-address ,在 X-Forwarded-For 里 append (向右添加) CDN 的 IP : [warp-ip-address,cloudflare-cdn-ip-address]

    源站最多只能知道 warp-ip-address ,warp 后面的原始 ip 是不会透传的。

    可以仔细阅读这 3 篇内容,搞清楚这个知识点:

    - https://developers.cloudflare.com/warp-client/known-issues-and-faq/#does-warp-reveal-my-ip-address-to-websites-i-visit
    - https://blog.cloudflare.com/geoexit-improving-warp-user-experience-larger-network/
    - https://developers.cloudflare.com/fundamentals/reference/http-request-headers/

    总结一下就是:Warp 会透传你的位置,但不会透传你的原始 ip ,透传位置的原因是基于内容管理、版权、以及 LBS 服务的准确性等原因的考虑,上面的第 2 条链接里讲的很清楚。

    (备注:2022 年的时候 warp 的某个版本因为 Bug 会透传 ip ,但后来就被修复了: https://community.cloudflare.com/t/beware-cloudflare-warp-does-not-always-hide-your-ip/425348/19


    回到楼主的问题,很简单就是分流的问题。

    本来不想写这些,因为本来正常上网冲浪就不应该遇到这些问题,现在只能被迫“屎上雕花”。

    但即便如此,我们还是要实事求是,不要张嘴就来,通过搜索和验证再得出结论。
    Persimmon08
        15
    Persimmon08  
    OP
       31 天前
    @daisyfloor

    感谢大佬的详细回复。

    总结一下:通过 warp 分流访问的网站,可能会知道你的服务器位置,但是获取不到其真实 IP 。
    SenLief
        16
    SenLief  
       31 天前
    @daisyfloor 嗯,我的锅。查了下确实如此,主要是以前有次看 wrap ip 的时候,网站显示了自己的 ip ,当时查说是 cf 问题,可能是当时就错了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1486 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 23:59 · PVG 07:59 · LAX 16:59 · JFK 19:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.