-
-
Save rjszz/13f4160ba67f3dba9429497e6ccd0f9c to your computer and use it in GitHub Desktop.
v2ray服务端 json 配置 文件
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": "warning" | |
| }, | |
| "inbound": { | |
| "port": 34006, //记得打开设置防火墙和安全组规则(如ECS需要设置) | |
| "protocol": "vmess", //vmess 协议 | |
| "settings": { | |
| "clients": [ | |
| { | |
| "id": "7fab440d-f1e9-419e-b7cb-ba6ba9a21373", | |
| "level": 1, | |
| "alterId": 64 | |
| } | |
| ] | |
| }, | |
| "streamSettings":{ | |
| "network":"kcp" //kcp 可以加速,实际是UDP 协议 | |
| } | |
| }, | |
| "inboundDetour": [{ | |
| "port": 34000, | |
| "protocol": "shadowsocks", // 此段为支持SS协议部分 | |
| "settings": { | |
| "method": "aes-256-cfb", // 加密协议支持aes-256-cfb, aes-128-cfb(默认可省略), chacha20 (V2Ray 1.9+), chacha20-ietf (V2Ray 1.9+) | |
| "password": "Tanpeng123", | |
| "udp": true //是否支持UDP中转,游戏大多数需要,如SSTAP 加速游戏需要此项, | |
| } | |
| }, | |
| { | |
| "port": 34001, | |
| "protocol": "vmess", //vmess 协议 | |
| "settings": { | |
| "clients": [ | |
| { | |
| "id": "7fab440d-f1e9-419e-b7cb-ba6ba9a21374", | |
| "level": 1, | |
| "alterId": 64 | |
| } | |
| ] | |
| }, | |
| "streamSettings":{ | |
| "network":"tcp" //默认tcp时,可直接省略streamSettings | |
| } | |
| }], | |
| "outbound": { | |
| "protocol": "freedom", | |
| "settings": {} | |
| }, | |
| "outboundDetour": [ | |
| { | |
| "protocol": "freedom", | |
| "settings": {} | |
| }, | |
| { | |
| "protocol": "blackhole", | |
| "settings": {}, | |
| "tag": "blocked" | |
| } | |
| ], | |
| "routing": { | |
| "strategy": "rules", | |
| "settings": { | |
| "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": "blocked" | |
| } | |
| ] | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment