使用「Cloudflare WARP」优化网络体验

Cloudflare WARP

当我使用IOS版本ChatGPT时,遇到错误提示:

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.

其实不止ChatGPT,我遇到的情况还有:

  • Twitter不能发帖(访问正常)
  • Instagram无法登录
  • 等等

我发现不止我一个人出现这种情况,很多其它人也是,大家都处在不同的国家和地区。

看来出问题的服务应该是对访问者做了一些限制,我们无法得知其中的逻辑,但可以肯定的是我们的机场应该不符合服务商的条件,被过滤出来了。既然这样,那我们就尝试用魔法打败魔法,使用一个免费的服务使得我们的机场看起来更像是符合服务商条件的那种。

Cloudflare WARP

今天要介绍的是“Cloudflare WARP”:

Cloudflare WARP is a service provided by Cloudflare that offers a faster, more secure, and more private experience online. It acts as a secure connection between a user’s device and the Internet, with various connection modes to suit different needs. The WARP client is available for multiple operating systems, including iOS, Android, Windows, macOS, and Linux. It is designed to improve the speed and security of Internet connections for individual users. Additionally, Cloudflare WARP is also used in the context of Cloudflare Zero Trust, providing secure access to private applications.

简单来说是由Cloudflare提供的一项服务,主要的功能是使你的网络连接更安全、更快速,以及更加保密。是一种类V P N服务,可以在客户端和服务端之间加一层屏障。

那我们就利用这个服务,在我们的机场和目标服务间加一层屏障从而把我们自己“伪装”起来。

配置

安装和使用非常简单,按着下面的步骤就行。具体可查阅官方文档,下面以Ubuntu 22.04为例,在你的V P S服务器上做如下操作:

# Add cloudflare gpg key
curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg | sudo gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg

# Add this repo to your apt repositories
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/cloudflare-client.list

# Install
sudo apt update && sudo apt install cloudflare-warp

# Check
systemctl status warp-svc

# Run
warp-cli register
warp-cli set-mode proxy
warp-cli connect
warp-cli enable-always-on
warp-cli warp-stats

按照上面的安装步骤,Cloudflare Warp就安装好了,默认运行在40000端口,起了一个Socket服务。

{
    "outbounds": [{
        "protocol": "freedom",
        "settings": {}
    }, {
        "tag": "warp",
        "protocol": "socks",
        "settings": {
            "servers": [{
                "address": "127.0.0.1",
                "port": 40000,
                "users": []
            }]
        }
    }, {
        "protocol": "blackhole",
        "settings": {},
        "tag": "blocked"
    }],
    "routing": {
        "rules": [{
            "type": "field",
            "ip": ["geoip:private"],
            "outboundTag": "blocked"
        }, {
            "type": "field",
            "domain": ["openai.com"],
            "outboundTag": "warp"
        }]
    }
}

注意一下routing.domain属性,你可以在这里添加想要使用Cloudflare WARP代理的域名。比如上面提到的ChartGPTTwitter以及Instagram等服务的域名,加上后访问这些域名的请求会通过40000端口,也就是Cloudflare WARP运行的Socket接口代理。这样让目标服务商以为我们的访问是来自于Cloudflare WARP服务器的。

尾声

最后说一句,Cloudflare WARP服务是免费的,甚至无需注册。但是使用起来一定要遵守当地法律法规。

本文首发于:路边的阿不

  • 32
    点赞
  • 55
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值