- yonlee2018-04-17金牌会员118841
- 本帖最后由 yonlee 于 2018-4-17 02:25 编辑 *
本贴采用V2Ray WebSocket+TLS+Web配置,可参考http://www.hostloc.com/thread-432082-1-1.html
适用环境:针对不同的站用不同的小鸡代理;
推荐工具:Chrome+SwitchyOmega服务器端无须更改,仅配置客户端,代码如下
- {
- "log": {
- "loglevel": "warning",
- "access": "C:\\v2ray\\access.log",
- "error": "C:\\v2ray\\error.log"
- },
- "inbound": {
- "protocol": "socks",
- "listen": "127.0.0.1",
- "port": 1080, //通过本地1080端口连接小鸡1
- "domainOverride": ["tls","http"],
- "settings": {
- "auth": "noauth",
- "udp": false
- }
- },
- - "outbound": {
- "protocol": "vmess",
- "settings": {
- "vnext": [
- {
- "address": "小鸡1网址",
- "port": 443,
- "users": [
- {
- "id": "7cda1a8d-97b1-4e68-ac44-31838fbe8ff3",
- "alterId": 64
- }
- ]
- }
- ]
- },
- "streamSettings": {
- "network": "ws",
- "security": "tls",
- "wsSettings": {
- "path": "/ray"
- }
- },
- "mux": {"enabled": true}
- },
- - "inboundDetour": [
- {
- "tag": "小鸡2", //指定标签,与outboundDetour统一
- "protocol": "socks",
- "listen": "127.0.0.1",
- "port": 1090, //通过本地1090端口连接小鸡2
- "domainOverride": ["tls","http"],
- "settings": {
- "auth": "noauth",
- "udp": false
- }
- },
- - {
- "tag": "小鸡3", //指定标签,与outboundDetour统一
- "protocol": "socks",
- "listen": "127.0.0.1",
- "port": 1100, //通过本地1100端口连接小鸡3
- "domainOverride": ["tls","http"],
- "settings": {
- "auth": "noauth",
- "udp": false
- }
- }
- ],
- - "outboundDetour":
- [
- {
- "tag": "direct",
- "protocol": "freedom",
- "settings": {}
- },
- - {
- "tag":"小鸡2", //小鸡2的出口设置
- "protocol": "vmess",
- "settings": {
- "vnext": [
- {
- "address": "小鸡2网址",
- "port": 443,
- "users": [
- {
- "id": "7cda1a8d-97b1-4e68-ac44-31838fbe8ff3",
- "alterId": 64
- }
- ]
- }
- ]
- },
- - "streamSettings":
- {
- "network": "ws",
- "security": "tls",
- "wsSettings": {
- "path": "/ray"
- }
- },
- "mux": {"enabled": true}
- },
- - {
- "tag":"小鸡3", //小鸡3的出口设置
- "protocol": "vmess",
- "settings": {
- "vnext": [
- {
- "address": "小鸡3网址",
- "port": 443,
- "users": [
- {
- "id": "7cda1a8d-97b1-4e68-ac44-31838fbe8ff3",
- "alterId": 64
- }
- ]
- }
- ]
- },
- - "streamSettings":
- {
- "network": "ws",
- "security": "tls",
- "wsSettings": {
- "path": "/ray"
- }
- },
- "mux": {"enabled": true}
- }
- ],
- - "routing": {
- "strategy": "rules",
- "settings": {
- "domainStrategy": "IPIfNonMatch",
- "rules": [
- {
- "type": "chinasites",
- "outboundTag": "direct"
- },
- {
- "type": "chinaip",
- "outboundTag": "direct"
- },
- {
- "type": "field",
- "inboundTag": [
- "小鸡2"
- ],
- "outboundTag": "小鸡2" //1090的小鸡2从小鸡2出口出
- },
- {
- "type": "field",
- "inboundTag": [
- "小鸡3"
- ],
- "outboundTag": "小鸡3" //1100的小鸡3从小鸡3出口出
- }
- ]
- }
- }
- }复制代码
加入开机启动:
运行- shell:startup复制代码
将wv2ray.exe的快捷方式复制进去