ChatGPT
实现ChatGPT自由
ChatGPT现在发疯了,各种封,这个时候需要2台服务器;
一台服务器A,专门用来连ChatGPT;另外一台服务器B,把跟openai有关的所有流量转发到服务器A上。
服务器B配置如下:
{
"inbounds": [
{
"port": 12345,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "生成的UUID",
"alterId": 64
}
]
},
"streamSettings": {
"network": "tcp"
}
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {}
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
},
{
"tag": "socks-proxy",
"protocol": "socks",
"settings": {
"servers": [
{
"address": "代理服务器地址",
"port": 代理服务器端口号,
"users": [
{
"user": "代理用户名",
"pass": "代理密码"
}
]
}
]
}
}
],
"routing": {
"rules": [
{
"type": "field",
"domain": ["geosite:openai"],
"outboundTag": "socks-proxy"
},
{
"type": "field",
"ip": ["geoip:private"],
"outboundTag": "blocked"
},
{
"type": "field",
"protocol": ["bittorrent"],
"outboundTag": "blocked"
}
]
}
}
服务器A配置如下:(参考资料)
bash <(curl -fsSL git.io/warp.sh) d
2024年最新的转发配置(适合1.8.4)
{
"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": {}
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
},
{
"tag": "CHATGPT",
"sendThrough": "0.0.0.0",
"protocol": "socks",
"settings": {
"servers": [
{
"address": "转发的IP地址",
"port": 端口号,
"users": [
{
"user": "用户",
"pass": "密码",
"level": 0
}
]
}
]
}
}
],
"policy": {
"system": {
"statsInboundDownlink": true,
"statsInboundUplink": true
}
},
"routing": {
"rules": [
{
"inboundTag": [
"api"
],
"outboundTag": "api",
"type": "field"
},
{
"ip": [
"geoip:private"
],
"outboundTag": "blocked",
"type": "field"
},
{
"outboundTag": "blocked",
"protocol": [
"bittorrent"
],
"type": "field"
},
{
"type": "field",
"outboundTag": "CHATGPT",
"domain": ["geosite:openai"]
}
]
},
"stats": {}
}
如果你用的是x-ui,那么默认的配置如下:
{
"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": {}
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
},
{
"tag": "CHATGPT",
"sendThrough": "0.0.0.0",
"protocol": "socks",
"settings": {
"servers": [
{
"address": "IP-ADDRESS",
"port": 15200,
"users": [{
"user": "ntx6qTsVrX",
"pass": "hLmKNbnPcB",
"level": 0
}]
}
]
}
}
],
"policy": {
"system": {
"statsInboundDownlink": true,
"statsInboundUplink": true
}
},
"routing": {
"rules": [
{
"inboundTag": [
"api"
],
"outboundTag": "api",
"type": "field"
},
{
"ip": [
"geoip:private"
],
"outboundTag": "blocked",
"type": "field"
},
{
"outboundTag": "blocked",
"protocol": [
"bittorrent"
],
"type": "field"
},
{
"type": "field",
"outboundTag": "CHATGPT",
"domain": ["geosite:openai"]
}
]
},
"stats": {}
}
搬瓦工Bandwagon怎么上ChatGPT?
很多人用的搬瓦工来上ChatGPT,但是一般都被禁了。其实搬瓦工Bandwagon有个隐藏福利,就是把服务器的nameserver设置成172.31.255.2即可,这个172.31.255.2是搬瓦工自己提供的。
echo -e "nameserver 172.31.255.2" > /etc/resolv.conf
然后重启服务器即可。
搬瓦工有时候会自动修改重置nameserver,这个时候用下面的命令锁定resolv.conf为只读属性
chattr +i /etc/resolv.conf
如果以后要修改的话,执行以下的命令行
chattr -i /etc/resolv.conf
如果缺少chattr命令行的话,debian系统用如下命令安装:
sudo apt-get update && sudo apt-get install e2fsprogs
如果没有nslookup的话,debian系统用如下命令安装:
sudo apt-get update && sudo apt-get install dnsutils
如何把ChatGPT安装在VPS上?
bash <(curl -Ls https://raw.githubusercontent.com/WongSaang/chatgpt-ui/main/deployment.sh)
