Last active
February 15, 2023 16:50
-
-
Save icpz/2ad6d9b9779a6c489347677dfbb236d4 to your computer and use it in GitHub Desktop.
`shadowsocks over v2ray-plugin' as client work with `v2ray' as server
This file contains hidden or 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
Wow