|  | 
 
| 本帖最后由 impolice 于 2024-8-19 18:54 编辑 
 这个是我目前用的只能一个端口。   已搞定
 {
 "api": {
 "services": [
 "HandlerService",
 "LoggerService",
 "StatsService"
 ],
 "tag": "api"
 },
 "inbounds": [
 {
 "listen": "127.0.0.1",
 "port": 48316,
 "protocol": "dokodemo-door",
 "settings": {
 "address": "127.0.0.1"
 },
 "tag": "api"
 }
 ],
 "outbounds": [
 {
 "protocol": "freedom",
 "settings": {}
 },
 {
 "protocol": "blackhole",
 "settings": {},
 "tag": "blocked"
 },
 {
 "tag": "stream",
 "sendThrough": "0.0.0.0",
 "protocol": "socks",
 "settings": {
 "servers": [
 {
 "address": "us.proxy.iproyal.com",
 "port": 32325,
 "users": [{
 "user": "1111",
 "pass": "xxxx_country-in",
 "level": 0
 }]
 }
 ]
 }
 }
 ],
 "policy": {
 "system": {
 "statsInboundDownlink": true,
 "statsInboundUplink": true
 }
 },
 "routing": {
 "domainStrategy": "IPOnDemand",
 "rules": [
 {
 "inboundTag": [
 "api"
 ],
 "outboundTag": "api",
 "type": "field"
 },
 {
 "ip": [
 "geoip:private"
 ],
 "outboundTag": "blocked",
 "type": "field"
 },
 {
 "outboundTag": "blocked",
 "protocol": [
 "bittorrent"
 ],
 "type": "field"
 },
 {
 "type": "field",
 "outboundTag": "stream",
 "network": "udp,tcp"
 }
 ]
 },
 "stats": {}
 }
 | 
 |