Forked from icpz/v2ray-as-ss-over-v2plugin-server-config.json
Created
October 4, 2019 10:13
-
-
Save i-sync/f8b33545e871aa6684d9b09a0f1cdff6 to your computer and use it in GitHub Desktop.
`shadowsocks over v2ray-plugin' as client work with `v2ray' as server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"log": { | |
"access": "/var/log/v2ray/access.log", | |
"error": "/var/log/v2ray/error.log", | |
"loglevel": "info" | |
}, | |
"inbounds": [ | |
{ | |
"port": "10000", /* this is the server port for client */ | |
"listen": "127.0.0.1", | |
"protocol": "dokodemo-door", | |
"tag": "wsdoko", | |
"settings": { | |
"address": "v1.mux.cool", | |
"followRedirect": false, | |
"network": "tcp" | |
}, | |
"streamSettings": { | |
"network": "ws", /* same as v2ray-plugin */ | |
"wsSettings": { | |
"path": "/shadowsocks" | |
} | |
} | |
}, | |
{ | |
"port": 9015, /* this port is not used, but you need to specific */ | |
"protocol": "shadowsocks", | |
"settings": { | |
"method": "aes-256-gcm", | |
"ota": false, | |
"password": "password", | |
"network": "tcp,udp" | |
}, | |
"streamSettings": { | |
"network": "domainsocket" | |
} | |
} | |
], | |
"outbounds": [ | |
{ | |
"protocol": "freedom", | |
"settings": {} | |
}, | |
{ | |
"protocol": "blackhole", | |
"settings": {}, | |
"tag": "blocked" | |
}, | |
{ | |
"protocol": "freedom", | |
"tag": "ssmux", | |
"streamSettings": { | |
"network": "domainsocket" | |
} | |
} | |
], | |
"transport": { | |
"dsSettings": { | |
"path": "/var/run/v2ray/ss-loop.sock" /* the directory must exist before v2ray starts */ | |
} | |
}, | |
"routing": { | |
"rules": [ | |
{ | |
"type": "field", | |
"inboundTag": [ | |
"wsdoko" | |
], | |
"outboundTag": "ssmux" | |
}, | |
{ | |
"type": "field", | |
"ip": [ | |
"geoip:private" | |
], | |
"outboundTag": "blocked" | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment