Closed camelwu closed 10 months ago
请教问题如图 目的:实现多路inbound和outbound,in使用vmess与out使用socks5,出入协议不相同,现在配置并不生效;想知道是配置文件写错了还是代理不能转协议? 还不太会看log,如果能分享如何查看分析log日志也可以
{ "log": null, "routing": { "domainStrategy": "AsIs", "rules": [ { "inboundTag": [ "api" ], "outboundTag": "api", "type": "field" }, { "type": "field", "port": "443", "network": "udp", "outboundTag": "blocked" }, { "type": "field", "domain": [ "domain:gstatic.com" ], "outboundTag": "direct" }, { "ip": [ "geoip:private" ], "outboundTag": "blocked", "type": "field" }, { "outboundTag": "blocked", "protocol": [ "bittorrent" ], "type": "field" }, { "type": "field", "outboundTag": "xray-wg-warp-v4", "domain": [ "yg kkk" ] }, { "type": "field", "outboundTag": "xray-wg-warp-v6", "domain": [ "geosite:openai" ] }, { "type": "field", "outboundTag": "socks5-warp-v4", "domain": [ "yg kkk" ] }, { "type": "field", "outboundTag": "socks5-warp-v6", "domain": [ "yg kkk" ] }, { "type": "field", "outboundTag": "vps-outbound-v4", "domain": [ "yg kkk" ] }, { "type": "field", "outboundTag": "vps-outbound-v6", "domain": [ "yg kkk" ] }, { "type": "field", "outboundTag": "direct", "network": "udp,tcp" }, { "type": "field", "inboundTag": "inbound-42110", "outboundTag": "zhuzai01" }, { "type": "field", "inboundTag": "inbound-31991", "outboundTag": "zhuzai02" } ] }, "dns": { "hosts": { "geo site:netflix": "205.189.160.212" }, "servers": [ "8.8.8.8", "1.1.1.1" ] }, "inbounds": [ { "listen": "127.0.0.1", "port": 62789, "protocol": "dokodemo-door", "settings": { "address": "127.0.0.1" }, "streamSettings": null, "tag": "api", "sniffing": null }, { "listen": null, "port": 42110, "protocol": "vmess", "settings": { "clients": [ { "id": "56f8a76a-beed-4dd3-daf2-3f70482f863d", "alterId": 0 } ], "disableInsecureEncryption": false }, "streamSettings": { "network": "tcp", "security": "none", "tcpSettings": { "acceptProxyProtocol": false, "header": { "type": "none" } } }, "tag": "inbound-42110", "sniffing": { "enabled": true, "destOverride": [ "http", "tls", "quic" ] } }, { "listen": null, "port": 31991, "protocol": "vmess", "settings": { "clients": [ { "id": "0ef3d4e6-fdb1-4d62-d2da-c3d28427cc6e", "alterId": 0 } ], "disableInsecureEncryption": false }, "streamSettings": { "network": "tcp", "security": "none", "tcpSettings": { "acceptProxyProtocol": false, "header": { "type": "none" } } }, "tag": "inbound-31991", "sniffing": { "enabled": true, "destOverride": [ "http", "tls", "quic" ] } }, { "listen": null, "port": 20058, "protocol": "socks", "settings": { "auth": "password", "accounts": [ { "user": "xZilZvqjI5", "pass": "QUxupJasL4" } ], "udp": false, "ip": "127.0.0.1" }, "streamSettings": { "network": "tcp", "security": "none", "tcpSettings": { "acceptProxyProtocol": false, "header": { "type": "none" } } }, "tag": "inbound-20058", "sniffing": {} } ], "outbounds": [ { "protocol": "blackhole", "tag": "blocked" }, { "tag": "direct", "protocol": "freedom", "settings": {} }, { "tag": "vps-outbound-v4", "protocol": "freedom", "settings": { "domainStrategy": "UseIPv4" } }, { "tag": "vps-outbound-v6", "protocol": "freedom", "settings": { "domainStrategy": "UseIPv6" } }, { "tag": "socks5-warp", "protocol": "socks", "settings": { "servers": [ { "address": "127.0.0.1", "port": 40000 } ] } }, { "tag": "socks5-warp-v4", "protocol": "freedom", "settings": { "domainStrategy": "UseIPv4" }, "proxySettings": { "tag": "socks5-warp" } }, { "tag": "socks5-warp-v6", "protocol": "freedom", "settings": { "domainStrategy": "UseIPv6" }, "proxySettings": { "tag": "socks5-warp" } }, { "tag": "xray-wg-warp", "protocol": "wireguard", "settings": { "secretKey": "aJkrp4MMgL/Oi2bO4Fww9J8aqAW1ojeOZ22RK0nXYWY=", "address": [ "172.16.0.2/32", "2606:4700:110:891c:6ee2:7df4:5e99:b7cf/128" ], "peers": [ { "publicKey": "bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=", "allowedIPs": [ "0.0.0.0/0", "::/0" ], "endpoint": "162.159.193.10:1701" } ], "reserved": [ 230, 25, 169 ] } }, { "tag": "xray-wg-warp-v4", "protocol": "freedom", "settings": { "domainStrategy": "UseIPv4" }, "proxySettings": { "tag": "xray-wg-warp" } }, { "tag": "xray-wg-warp-v6", "protocol": "freedom", "settings": { "domainStrategy": "UseIPv6" }, "proxySettings": { "tag": "xray-wg-warp" } }, { "tag": "zhuzai01", "protocol": "socks", "sendThrough": "8.8.8.8", // example "settings": { "domainStrategy": "UseIP", "servers": [ { "address": "8.8.8.8", // example "port": 21, "users": [ { "user": "user", "pass": "pass" } ] } ] } }, { "tag": "zhuzai02", "protocol": "socks", "sendThrough": "8.8.8.8", // example "settings": { "domainStrategy": "UseIPv4", "servers": [ { "address": "8.8.8.8", // example "port": 21, "users": [ { "user": "user", "pass": "pass" } ] } ] } } ], "transport": null, "policy": { "system": { "statsInboundDownlink": true, "statsInboundUplink": true }, "levels": { "0": { "handshake": 10, "connIdle": 100, "uplinkOnly": 2, "downlinkOnly": 3, "bufferSize": 10240 } } }, "api": { "services": [ "HandlerService", "LoggerService", "StatsService" ], "tag": "api" }, "stats": {}, "reverse": null, "fakeDns": null
向XRAY官方问问吧
请教问题如图 目的:实现多路inbound和outbound,in使用vmess与out使用socks5,出入协议不相同,现在配置并不生效;想知道是配置文件写错了还是代理不能转协议? 还不太会看log,如果能分享如何查看分析log日志也可以