Closed zsliu98 closed 4 years ago
我按照官网教程在远程服务器正确配置了ws,但是在本地选择ws后网络无法正常连接 然而,实际上我在本地选择tcp时却可以正常连接~ 我不确定这是哪里的问题,所以我将由V2rayU生成的json文件放在下面
{ "log": { "error": "", "loglevel": "info", "access": "" }, "inbounds": [ { "listen": "127.0.0.1", "protocol": "socks", "settings": { "ip": "", "userLevel": 0, "timeout": 360, "udp": false, "auth": "noauth" }, "port": "1080" }, { "listen": "127.0.0.1", "protocol": "http", "settings": { "timeout": 360 }, "port": "1083" } ], "outbounds": [ { "mux": { "enabled": true, "concurrency": 8 }, "protocol": "vmess", "streamSettings": { "wsSettings": { "path": "", "headers": { "host": "" } }, "tlsSettings": { "allowInsecure": true }, "security": "none", "network": "ws" }, "tag": "agentout", "settings": { "vnext": [ { "address": "***.**.**.*", "users": [ { "id": "**********", "alterId": 64, "level": 0, "security": "auto" } ], "port": 36117 } ] } }, { "tag": "direct", "protocol": "freedom", "settings": { "domainStrategy": "AsIs", "redirect": "", "userLevel": 0 } }, { "tag": "blockout", "protocol": "blackhole", "settings": { "response": { "type": "none" } } } ], "dns": { "servers": [ "" ] }, "routing": { "strategy": "rules", "settings": { "domainStrategy": "IPIfNonMatch", "rules": [ { "outboundTag": "direct", "type": "field", "ip": [ "geoip:cn", "geoip:private" ], "domain": [ "geosite:cn", "geosite:speedtest" ] } ] } }, "transport": {} }
而远程服务器的配置为
{ "inbounds": [{ "port": 36117, "protocol": "vmess", "settings": { "clients": [ { "id": "*********", "level": 1, "alterId": 64 } ], "detour": { "to": "dynamicPort" }, "streamSettings":{ "network":"ws" } } }], "outbounds": [{ "protocol": "freedom", "settings": {} },{ "protocol": "blackhole", "settings": {}, "tag": "blocked" }], "routing": { "rules": [ { "type": "field", "ip": ["geoip:private"], "outboundTag": "blocked" } ] } }
我按照官网教程在远程服务器正确配置了ws,但是在本地选择ws后网络无法正常连接 然而,实际上我在本地选择tcp时却可以正常连接~ 我不确定这是哪里的问题,所以我将由V2rayU生成的json文件放在下面
而远程服务器的配置为