编辑
2023-03-23
学习笔记
00
请注意,本文编写于 562 天前,最后修改于 140 天前,其中某些信息可能已经过时。

目录

安装原理
安装
x-ui一键脚本
安装warp并配置wireproxy模式
博客头部图片

通过邀请:现货杠杆代币手续费减免20%,合约交易手续费减免20%

安装原理

  1. 用x-ui搭建节点代理,然后修改xray模版,用scoks5通过wireproxy代理到ChatGPT的流量。

安装

x-ui一键脚本

bash
bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh)

安装warp并配置wireproxy模式

  • 因为我用的arm64架构VPS,所以只能安装WARP的wireproxy模式,并开启Scoks5模式。
bash
wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh
  • 登陆x-ui面板,修改xray模板,下边是我修改好的代码,可以拿去用,不负责回答问题,因为你看到懵逼的地方我比你还懵。
js
{ "inbounds": [ { "port": 62789, "protocol": "dokodemo-door", "settings": { "address": "127.0.0.1" }, "tag": "api" } ], "outbounds": [ { "protocol": "freedom", "tag": "direct" }, { "protocol": "blackhole", "tag": "blocked" }, { "protocol": "socks", "tag": "ChatGPT", "settings": { "servers": [ { "address": "127.0.0.1", "port": 40000 } ] } } ], "routing": { "domainStrategy": "AsIs", "rules": [ { "inboundTag": ["api"], "outboundTag": "api", "type": "field" }, { "ip": ["geoip:private"], "outboundTag": "blocked", "type": "field" }, { "protocol": ["bittorrent"], "outboundTag": "blocked", "type": "field" }, { "domain": ["openai.com", "ai.com"], "outboundTag": "ChatGPT", "type": "field" } ] }, "stats": { "system": { "statsInboundDownlink": true, "statsInboundUplink": true } } }

第二个示例:刚测试

{ "api": { "services": [ "HandlerService", "LoggerService", "StatsService" ], "tag": "api" }, "inbounds": [ { "listen": "127.0.0.1", "port": 62789, "protocol": "dokodemo-door", "settings": { "address": "127.0.0.1" }, "tag": "api" } ], "outbounds": [ { "protocol": "freedom", "settings": {}, "tag": "direct" }, { "protocol": "blackhole", "settings": {}, "tag": "blocked" }, { "protocol": "socks", "tag": "warp", "settings": { "servers": [ { "address": "127.0.0.1", "port": 4000 } ] } } ], "policy": { "levels": { "0": { "handshake": 10, "connIdle": 100, "uplinkOnly": 2, "downlinkOnly": 3, "statsUserUplink": true, "statsUserDownlink": true, "bufferSize": 10240 } }, "system": { "statsInboundDownlink": true, "statsInboundUplink": true } }, "routing": { "rules": [ { "inboundTag": [ "api" ], "outboundTag": "api", "type": "field" }, { "outboundTag": "gpt", "domain": [ "openai.com", "ai.com" ], "type": "field" }, { "ip": [ "geoip:private" ], "outboundTag": "blocked", "type": "field" }, { "outboundTag": "blocked", "protocol": [ "bittorrent" ], "type": "field" }, { "outboundTag": "direct", "type": "field" } ] }, "stats": {} }

感谢大佬做的脚本:

warp:https://github.com/fscarmen/warp

x-ui:https://github.com/FranzKafkaYu/x-ui

本文作者:我本无罪

本文链接:

版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!

我的博客
博客头部图片

通过邀请:现货杠杆代币手续费减免20%,合约交易手续费减免20%