bashbash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh)
bashwget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh
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": {} }
感谢大佬做的脚本:
本文作者:我本无罪
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!