服务器:
{ "log": { "access": "/var/log/v2ray/access.log", "error": "/var/log/v2ray/error.log", "loglevel": "warning" }, "inbound": { "port": XXXXXX, "protocol": "vmess", "settings": { "clients": [{ "id": "XXXXXX", "alterId": 32 }] } }, "inboundDetour": [{ "protocol": "shadowsocks", "port": 19891, "settings": { "method": "aes-256-gcm", "password": "XXXXXX" } },{ "protocol": "shadowsocks", "port": 19892, "settings": { "method": "chacha20", "password": "XXXXXX" } }], "outbound": { "protocol": "freedom", "settings": {} } }
VMess协议客户端:
{ "log": { "loglevel": "warning" }, "inbound": { "port": 1088, "listen": "127.0.0.1", "protocol": "socks", "settings": { "auth": "noauth" }, "domainOverride": ["tls","http"] }, "outbound": { "protocol": "vmess", "settings": { "vnext": [{ "address": "XXXXX", "port": 19890, "users": [{ "id": "XXXXX", "alterId": 32, "security": "auto", "level": 0 }] }] }, "tag": "officePC" }, "outboundDetour": [{ "protocol": "freedom", "tag": "direct", "settings": {} }], "routing": { "strategy": "rules", "settings": { "domainStrategy": "IPOnDemand", "rules": [{ "type": "field", "ip": [ "0.0.0.0/8", "10.0.0.0/8", "100.64.0.0/10", "127.0.0.0/8", "169.254.0.0/16", "172.16.0.0/12", "192.0.0.0/24", "192.0.2.0/24", "192.168.0.0/16", "198.18.0.0/15", "198.51.100.0/24", "203.0.113.0/24", "::1/128", "fc00::/7", "fe80::/10" ], "outboundTag": "direct" }] } } }
(Shadowsocks协议可以使用普通ss客户端)
参考网站:https://www.v2ray.com/