├── Caddy+h2 ├── Caddyfile ├── config_client.json └── config_server.json ├── HTTP2 ├── config_client.json └── config_server.json ├── How_To_Choose.jpg ├── MITM ├── client.json ├── readme.md └── server.json ├── README.md ├── Shadowsocks+mKcp ├── config_cilent.json └── config_server.json ├── TCP+TLS ├── config_client.json └── config_server.json ├── TCP ├── config_client.json └── config_server.json ├── http ├── config_client.json └── config_server.json ├── mKcp 伪装微信视频流量 ├── config_client.json └── config_server.json ├── mKcp ├── config_client.json └── config_server.json ├── socks5-tls ├── config_client.json └── config_server.json ├── vmess ├── config_client.json └── config_server.json ├── websocket+Caddy+TLS(use header) ├── Caddyfile ├── config_client.json └── config_server.json ├── websocket+Caddy+TLS(use path) ├── Caddyfile ├── config_client.json └── config_server.json ├── websocket+Nginx+TLS ├── config_client.json ├── config_client_ver4.2.json ├── config_server.json ├── config_server_ver4.2.json └── nginx_Domain.Name.conf ├── websocket+TLS ├── config_client.json └── config_server.json └── websocket ├── config_client.json └── config_server.json /Caddy+h2/Caddyfile: -------------------------------------------------------------------------------- 1 | https://example.domain { 2 | tls kiri_so@outlook.com 3 | root /var/www/ 4 | 5 | proxy /test https://127.0.0.1:8443 { 6 | header_upstream Host "example.domain" 7 | header_upstream X-Forwarded-Proto "https" 8 | insecure_skip_verify 9 | } 10 | 11 | } -------------------------------------------------------------------------------- /Caddy+h2/config_client.json: -------------------------------------------------------------------------------- 1 | { 2 | "outbound": { 3 | "streamSettings": { 4 | "network": "h2", 5 | "kcpSettings": null, 6 | "httpSettings": { 7 | "host": [ 8 | "example.domain" 9 | ], 10 | "path": "/test" 11 | }, 12 | "tcpSettings": null, 13 | "tlsSettings": {}, 14 | "security": "tls" 15 | }, 16 | "tag": "agentout", 17 | "protocol": "vmess", 18 | "mux": { 19 | "enabled": true 20 | }, 21 | "settings": { 22 | "vnext": [ 23 | { 24 | "users": [ 25 | { 26 | "alterId": 100, 27 | "security": "aes-128-gcm", 28 | "id": "0cdf8a45-303d-4fed-9780-29aa7f54175e" 29 | } 30 | ], 31 | "port": 443, 32 | "address": "example.domain" 33 | } 34 | ] 35 | } 36 | }, 37 | "log": { 38 | "access": "", 39 | "loglevel": "info", 40 | "error": "" 41 | }, 42 | "outboundDetour": [ 43 | { 44 | "tag": "direct", 45 | "protocol": "freedom", 46 | "settings": { 47 | "response": null 48 | } 49 | }, 50 | { 51 | "tag": "blockout", 52 | "protocol": "blackhole", 53 | "settings": { 54 | "response": { 55 | "type": "http" 56 | } 57 | } 58 | } 59 | ], 60 | "inbound": { 61 | "streamSettings": null, 62 | "settings": { 63 | "ip": "127.0.0.1", 64 | "udp": true, 65 | "clients": null, 66 | "auth": "noauth" 67 | }, 68 | "protocol": "socks", 69 | "port": 1080, 70 | "listen": "0.0.0.0" 71 | }, 72 | "inboundDetour": null, 73 | "routing": { 74 | "settings": { 75 | "rules": [ 76 | { 77 | "ip": [ 78 | "0.0.0.0/8", 79 | "10.0.0.0/8", 80 | "100.64.0.0/10", 81 | "127.0.0.0/8", 82 | "169.254.0.0/16", 83 | "172.16.0.0/12", 84 | "192.0.0.0/24", 85 | "192.0.2.0/24", 86 | "192.168.0.0/16", 87 | "198.18.0.0/15", 88 | "198.51.100.0/24", 89 | "203.0.113.0/24", 90 | "::1/128", 91 | "fc00::/7", 92 | "fe80::/10" 93 | ], 94 | "domain": null, 95 | "type": "field", 96 | "port": null, 97 | "outboundTag": "direct" 98 | } 99 | ], 100 | "domainStrategy": "IPIfNonMatch" 101 | }, 102 | "strategy": "rules" 103 | }, 104 | "dns": { 105 | "servers": [ 106 | "8.8.8.8", 107 | "8.8.4.4", 108 | "localhost" 109 | ] 110 | } 111 | } -------------------------------------------------------------------------------- /Caddy+h2/config_server.json: -------------------------------------------------------------------------------- 1 | { 2 | "outbound": { 3 | "streamSettings": null, 4 | "tag": null, 5 | "protocol": "freedom", 6 | "mux": null, 7 | "settings": null 8 | }, 9 | "log": { 10 | "access": "/var/log/v2ray/access.log", 11 | "loglevel": "error", 12 | "error": "/var/log/v2ray/error.log" 13 | }, 14 | "inboundDetour": null, 15 | "inbound": { 16 | "streamSettings": { 17 | "network": "h2", 18 | "kcpSettings": null, 19 | "httpSettings": { 20 | "host": [ 21 | "example.domain" 22 | ], 23 | "path": "/test" 24 | }, 25 | "tcpSettings": null, 26 | "tlsSettings": { 27 | "certificates": [ 28 | { 29 | "keyFile": "/path/to/example.domain.key", 30 | "certificateFile": "/path/to/example.domain/fullchain.cer" 31 | } 32 | ] 33 | }, 34 | "security": "tls" 35 | }, 36 | "listen": null, 37 | "protocol": "vmess", 38 | "port": 8443, 39 | "settings": { 40 | "ip": null, 41 | "udp": true, 42 | "clients": [ 43 | { 44 | "alterId": 100, 45 | "security": "aes-128-gcm", 46 | "id": "0cdf8a45-303d-4fed-9780-29aa7f54175e" 47 | } 48 | ], 49 | "auth": null 50 | } 51 | }, 52 | "outboundDetour": [ 53 | { 54 | "tag": "blocked", 55 | "protocol": "blackhole", 56 | "settings": null 57 | } 58 | ], 59 | "routing": { 60 | "strategy": "rules", 61 | "settings": { 62 | "rules": [ 63 | { 64 | "ip": [ 65 | "0.0.0.0/8", 66 | "10.0.0.0/8", 67 | "100.64.0.0/10", 68 | "127.0.0.0/8", 69 | "169.254.0.0/16", 70 | "172.16.0.0/12", 71 | "192.0.0.0/24", 72 | "192.0.2.0/24", 73 | "192.168.0.0/16", 74 | "198.18.0.0/15", 75 | "198.51.100.0/24", 76 | "203.0.113.0/24", 77 | "::1/128", 78 | "fc00::/7", 79 | "fe80::/10" 80 | ], 81 | "domain": null, 82 | "type": "field", 83 | "port": null, 84 | "outboundTag": "blocked" 85 | } 86 | ], 87 | "domainStrategy": null 88 | } 89 | }, 90 | "dns": null 91 | } -------------------------------------------------------------------------------- /HTTP2/config_client.json: -------------------------------------------------------------------------------- 1 | { 2 | "outbound": { 3 | "streamSettings": { 4 | "network": "h2", 5 | "kcpSettings": null, 6 | "httpSettings": { 7 | "host": [ 8 | "example.domain" 9 | ], 10 | "path": "/test" 11 | }, 12 | "tcpSettings": null, 13 | "tlsSettings": {}, 14 | "security": "tls" 15 | }, 16 | "tag": "agentout", 17 | "protocol": "vmess", 18 | "mux": { 19 | "enabled": true 20 | }, 21 | "settings": { 22 | "vnext": [ 23 | { 24 | "users": [ 25 | { 26 | "alterId": 100, 27 | "security": "aes-128-gcm", 28 | "id": "0cdf8a45-303d-4fed-9780-29aa7f54175e" 29 | } 30 | ], 31 | "port": 443, 32 | "address": "example.domain" 33 | } 34 | ] 35 | } 36 | }, 37 | "log": { 38 | "access": "", 39 | "loglevel": "info", 40 | "error": "" 41 | }, 42 | "outboundDetour": [ 43 | { 44 | "tag": "direct", 45 | "protocol": "freedom", 46 | "settings": { 47 | "response": null 48 | } 49 | }, 50 | { 51 | "tag": "blockout", 52 | "protocol": "blackhole", 53 | "settings": { 54 | "response": { 55 | "type": "http" 56 | } 57 | } 58 | } 59 | ], 60 | "inbound": { 61 | "streamSettings": null, 62 | "settings": { 63 | "ip": "127.0.0.1", 64 | "udp": true, 65 | "clients": null, 66 | "auth": "noauth" 67 | }, 68 | "protocol": "socks", 69 | "port": 1080, 70 | "listen": "0.0.0.0" 71 | }, 72 | "inboundDetour": null, 73 | "routing": { 74 | "settings": { 75 | "rules": [ 76 | { 77 | "ip": [ 78 | "0.0.0.0/8", 79 | "10.0.0.0/8", 80 | "100.64.0.0/10", 81 | "127.0.0.0/8", 82 | "169.254.0.0/16", 83 | "172.16.0.0/12", 84 | "192.0.0.0/24", 85 | "192.0.2.0/24", 86 | "192.168.0.0/16", 87 | "198.18.0.0/15", 88 | "198.51.100.0/24", 89 | "203.0.113.0/24", 90 | "::1/128", 91 | "fc00::/7", 92 | "fe80::/10" 93 | ], 94 | "domain": null, 95 | "type": "field", 96 | "port": null, 97 | "outboundTag": "direct" 98 | } 99 | ], 100 | "domainStrategy": "IPIfNonMatch" 101 | }, 102 | "strategy": "rules" 103 | }, 104 | "dns": { 105 | "servers": [ 106 | "8.8.8.8", 107 | "8.8.4.4", 108 | "localhost" 109 | ] 110 | } 111 | } -------------------------------------------------------------------------------- /HTTP2/config_server.json: -------------------------------------------------------------------------------- 1 | { 2 | "outbound": { 3 | "streamSettings": null, 4 | "tag": null, 5 | "protocol": "freedom", 6 | "mux": null, 7 | "settings": null 8 | }, 9 | "log": { 10 | "access": "/var/log/v2ray/access.log", 11 | "loglevel": "error", 12 | "error": "/var/log/v2ray/error.log" 13 | }, 14 | "inboundDetour": null, 15 | "inbound": { 16 | "streamSettings": { 17 | "network": "h2", 18 | "kcpSettings": null, 19 | "httpSettings": { 20 | "host": [ 21 | "example.domain" 22 | ], 23 | "path": "/test" 24 | }, 25 | "tcpSettings": null, 26 | "tlsSettings": { 27 | "certificates": [ 28 | { 29 | "keyFile": "/path/to/example.domain.key", 30 | "certificateFile": "/path/to/example.domain/fullchain.cer" 31 | } 32 | ] 33 | }, 34 | "security": "tls" 35 | }, 36 | "listen": null, 37 | "protocol": "vmess", 38 | "port": 443, 39 | "settings": { 40 | "ip": null, 41 | "udp": true, 42 | "clients": [ 43 | { 44 | "alterId": 100, 45 | "security": "aes-128-gcm", 46 | "id": "0cdf8a45-303d-4fed-9780-29aa7f54175e" 47 | } 48 | ], 49 | "auth": null 50 | } 51 | }, 52 | "outboundDetour": [ 53 | { 54 | "tag": "blocked", 55 | "protocol": "blackhole", 56 | "settings": null 57 | } 58 | ], 59 | "routing": { 60 | "strategy": "rules", 61 | "settings": { 62 | "rules": [ 63 | { 64 | "ip": [ 65 | "0.0.0.0/8", 66 | "10.0.0.0/8", 67 | "100.64.0.0/10", 68 | "127.0.0.0/8", 69 | "169.254.0.0/16", 70 | "172.16.0.0/12", 71 | "192.0.0.0/24", 72 | "192.0.2.0/24", 73 | "192.168.0.0/16", 74 | "198.18.0.0/15", 75 | "198.51.100.0/24", 76 | "203.0.113.0/24", 77 | "::1/128", 78 | "fc00::/7", 79 | "fe80::/10" 80 | ], 81 | "domain": null, 82 | "type": "field", 83 | "port": null, 84 | "outboundTag": "blocked" 85 | } 86 | ], 87 | "domainStrategy": null 88 | } 89 | }, 90 | "dns": null 91 | } -------------------------------------------------------------------------------- /How_To_Choose.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KiriKira/vTemplate/99a1af9d2785cb7e9c8fa5f62a2fa8b280827ad5/How_To_Choose.jpg -------------------------------------------------------------------------------- /MITM/client.json: -------------------------------------------------------------------------------- 1 | { 2 | "inbound": { 3 | "allowPassive": true, 4 | "listen": "127.0.0.1", 5 | "port": 10854, 6 | "protocol": "socks", 7 | "settings": { 8 | "auth": "noauth", 9 | "udp": true 10 | }, 11 | "tag": "vanillas" 12 | }, 13 | "inboundDetour": [ 14 | { 15 | "listen": "127.0.0.1", 16 | "port": 10855, 17 | "protocol": "http", 18 | "settings": {}, 19 | "tag": "vanilla" 20 | }, 21 | { 22 | "listen": "0.0.0.0", 23 | "port": 10856, 24 | "tag": "mitm", 25 | "protocol": "dokodemo-door", 26 | "settings": { 27 | "network": "tcp", 28 | "timeout": 0, 29 | "address": "kiri.moe", 30 | "port": 443, 31 | "followRedirect": true 32 | }, 33 | "streamSettings": { 34 | "security": "tls", 35 | "tlsSettings": { 36 | "allowInsecure": false, 37 | "alpn": [ 38 | "http/1.1" 39 | ], 40 | "certificates": [ 41 | { 42 | "usage": "issue", 43 | "alpn": [ 44 | "http/1.1" 45 | ], 46 | "certificateFile": "/path/to/ca.cer", 47 | "keyFile": "/path/to/ca.key" 48 | } 49 | ] 50 | } 51 | }, 52 | "sniffing": { 53 | "enabled": false, 54 | "destOverride": [ 55 | "http", 56 | "tls" 57 | ] 58 | } 59 | } 60 | ], 61 | "log": { 62 | "access": "", 63 | "error": "", 64 | "loglevel": "info" 65 | }, 66 | "outbound": { 67 | "mux": { 68 | "enabled": true 69 | }, 70 | "protocol": "vmess", 71 | "proxySettings": { 72 | "tag": "proxy" 73 | }, 74 | "settings": { 75 | "vnext": [ 76 | { 77 | "address": "YOUR_IP", 78 | "port": 11451, 79 | "users": [ 80 | { 81 | "alterId": 16, 82 | "id": "b4fe5665-cebe-d292-0e66-9139958200f4", 83 | "level": 0, 84 | "security": "auto" 85 | } 86 | ] 87 | } 88 | ] 89 | }, 90 | "streamSettings": { 91 | "network": "tcp", 92 | "security": "none" 93 | } 94 | }, 95 | "outboundDetour": [ 96 | { 97 | "protocol": "freedom", 98 | "settings": {}, 99 | "tag": "direct" 100 | }, 101 | { 102 | "protocol": "freedom", 103 | "settings": { 104 | "redirect": "127.0.0.1:10856" 105 | }, 106 | "tag": "reentry" 107 | }, 108 | { 109 | "mux": { 110 | "enabled": true 111 | }, 112 | "protocol": "vmess", 113 | "proxySettings": { 114 | "tag": "proxy" 115 | }, 116 | "settings": { 117 | "vnext": [ 118 | { 119 | "address": "YOUR_IP", 120 | "port": 11452, 121 | "users": [ 122 | { 123 | "alterId": 16, 124 | "id": "b4fe5665-cebe-d292-0e66-9139958200f4", 125 | "level": 0, 126 | "security": "auto" 127 | } 128 | ] 129 | } 130 | ] 131 | }, 132 | "streamSettings": { 133 | "network": "tcp", 134 | "security": "none" 135 | }, 136 | "tag": "notouch" 137 | } 138 | ], 139 | "routing": { 140 | "settings": { 141 | "rules": [ 142 | { 143 | "ip": [ 144 | "0.0.0.0/8", 145 | "10.0.0.0/8", 146 | "100.64.0.0/10", 147 | "127.0.0.0/8", 148 | "169.254.0.0/16", 149 | "172.16.0.0/12", 150 | "192.0.0.0/24", 151 | "192.0.2.0/24", 152 | "192.168.0.0/16", 153 | "198.18.0.0/15", 154 | "198.51.100.0/24", 155 | "203.0.113.0/24", 156 | "::1/128", 157 | "fc00::/7", 158 | "fe80::/10" 159 | ], 160 | "outboundTag": "direct", 161 | "type": "field" 162 | }, 163 | { 164 | "inboundTag": [ 165 | "vanilla", 166 | "vanillas" 167 | ], 168 | "port": "443", 169 | "outboundTag": "reentry", 170 | "type": "field" 171 | }, 172 | { 173 | "inboundTag": [ 174 | "vanilla", 175 | "vanillas" 176 | ], 177 | "port": "0-442", 178 | "outboundTag": "notouch", 179 | "type": "field" 180 | }, 181 | { 182 | "inboundTag": [ 183 | "vanilla", 184 | "vanillas" 185 | ], 186 | "port": "444-65535", 187 | "outboundTag": "notouch", 188 | "type": "field" 189 | } 190 | ] 191 | }, 192 | "strategy": "rules" 193 | } 194 | } -------------------------------------------------------------------------------- /MITM/readme.md: -------------------------------------------------------------------------------- 1 | 如您对这个配置分类存在疑问,请移步 -------------------------------------------------------------------------------- /MITM/server.json: -------------------------------------------------------------------------------- 1 | { 2 | "inbound": { 3 | "allowPassive": true, 4 | "port": 11451, 5 | "protocol": "vmess", 6 | "settings": { 7 | "clients": [ 8 | { 9 | "alterId": 16, 10 | "id": "b4fe5665-cebe-d292-0e66-9139958200f4", 11 | "level": 1, 12 | "security": "auto" 13 | } 14 | ] 15 | }, 16 | "streamSettings": { 17 | "network": "tcp", 18 | "security": "none" 19 | } 20 | }, 21 | "inboundDetour": [ 22 | { 23 | "allowPassive": true, 24 | "port": 11452, 25 | "tag": "notouch", 26 | "protocol": "vmess", 27 | "settings": { 28 | "clients": [ 29 | { 30 | "alterId": 16, 31 | "id": "b4fe5665-cebe-d292-0e66-9139958200f4", 32 | "level": 1, 33 | "security": "auto" 34 | } 35 | ] 36 | }, 37 | "streamSettings": { 38 | "network": "tcp", 39 | "security": "none" 40 | } 41 | } 42 | ], 43 | "log": { 44 | "access": "", 45 | "error": "", 46 | "loglevel": "info" 47 | }, 48 | "outbound": { 49 | "protocol": "freedom", 50 | "settings": { 51 | "domainStrategy": "AsIs", 52 | "timeout": 0 53 | }, 54 | "streamSettings": { 55 | "security": "tls", 56 | "tlsSettings": { 57 | "allowInsecure": false, 58 | "alpn": [ 59 | "http/1.1" 60 | ] 61 | } 62 | } 63 | }, 64 | "outboundDetour": [ 65 | { 66 | "protocol": "blackhole", 67 | "settings": {}, 68 | "tag": "blocked" 69 | }, 70 | { 71 | "protocol": "freedom", 72 | "tag": "nointercept", 73 | "settings": { 74 | "domainStrategy": "AsIs", 75 | "timeout": 0 76 | }, 77 | "streamSettings": { 78 | "security": "none" 79 | } 80 | } 81 | ], 82 | "routing": { 83 | "settings": { 84 | "rules": [ 85 | { 86 | "ip": [ 87 | "0.0.0.0/8", 88 | "10.0.0.0/8", 89 | "100.64.0.0/10", 90 | "127.0.0.0/8", 91 | "169.254.0.0/16", 92 | "172.16.0.0/12", 93 | "192.0.0.0/24", 94 | "192.0.2.0/24", 95 | "192.168.0.0/16", 96 | "198.18.0.0/15", 97 | "198.51.100.0/24", 98 | "203.0.113.0/24", 99 | "::1/128", 100 | "fc00::/7", 101 | "fe80::/10" 102 | ], 103 | "outboundTag": "blocked", 104 | "type": "field" 105 | }, 106 | { 107 | "inboundTag": [ 108 | "notouch" 109 | ], 110 | "outboundTag": "nointercept", 111 | "type": "field" 112 | } 113 | ] 114 | }, 115 | "strategy": "rules" 116 | } 117 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # vTemplate 2 | 3 | ## 这是一个社会实验性质的项目,提供数种常见的v2ray配置模板 4 | 5 | 这两天雨落无声大佬的[v2ray.fun](https://github.com/FunctionClub/v2ray.fun)宣布弃坑,再次引发了v2ray水群里大佬关于一键脚本和伸手党的讨论。在讨论过程中,提出了一个有趣的命题: 6 | 7 | 一键脚本是否会助长伸手之风?如果会,我们不提供一键脚本而只提供模板的话,情况是否又会好些? 8 | 9 | 于是,这个项目就诞生了。在这里收录一些常用的v2ray配置模板,这些配置多由v2ray.fun生成,在这基础上加上少许改动。
10 | 在你套用模板之前,请先仔细阅读v2ray官方文档,如果可能,尽量尝试不借助模板自己编写配置文件,以加深对配置的理解。 11 | 12 | 如果你在配置过程中遇到问题,请再看一遍文档,或是在Google搜索以求自己解决问题。当你确认你的问题无法独立解决时,你可以在v2ray的telegram群组里求助,或是在v2ray官方项目中提交issue。
13 | 遇事不决,请RTFM/STFW。
14 | 15 | **如何选取适合自己的配置**: 16 | ![](How_To_Choose.jpg) 17 | 附加说明:
18 | 尽管websocket+TLS+Web可能称得上是现阶段最好的方案,但**绝对**不是推荐新手一上来就尝试的方案,更不是V2Ray唯一的用法。
19 | 同时,你应当了解,每个地区的网络状况不同(主要指对不同协议的QoS程度),你可以将所有配置都尝试一遍来寻找最适合自己的,尽量少问、最好不问"为什么我的V2Ray这么慢?"这样的问题。 20 | 21 | 玩的愉快。 22 | 23 | 感谢Project V的所有开发人员,以及v2ray.fun的作者雨落无声。 24 | -------------------------------------------------------------------------------- /Shadowsocks+mKcp/config_cilent.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "access": "", 4 | "error": "", 5 | "loglevel": "debug" 6 | }, 7 | "inbound": { 8 | "port": 8080, 9 | "listen": "127.0.0.1", 10 | "protocol": "socks", 11 | "settings": { 12 | "auth": "noauth" 13 | } 14 | }, 15 | "outbound":{ 16 | "protocol": "shadowsocks", 17 | "settings": { 18 | "servers": [ 19 | { 20 | "address": "servser.org", 21 | "method": "aes-256-cfb", 22 | "ota": false, 23 | "password": "password", 24 | "port": 443 25 | } 26 | ] 27 | }, 28 | "streamSettings":{ 29 | "network":"kcp", 30 | "kcpSettings": { 31 | "mtu": 1350, 32 | "tti": 20, 33 | "uplinkCapacity": 10, 34 | "downlinkCapacity": 100, 35 | "congestion": false, 36 | "readBufferSize": 1, 37 | "writeBufferSize": 1, 38 | "header": { 39 | "type": "none" 40 | } 41 | } 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /Shadowsocks+mKcp/config_server.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "access": "", 4 | "error": "", 5 | "loglevel": "debug" 6 | }, 7 | "inbound": { 8 | "port": 443, 9 | "listen": "0.0.0.0", 10 | "protocol": "shadowsocks", 11 | "settings": { 12 | "method": "aes-256-cfb", 13 | "password": "password", 14 | "udp": false, 15 | "level": 0 16 | }, 17 | "streamSettings": { 18 | "network": "kcp", 19 | "kcpSettings": { 20 | "mtu": 1350, 21 | "tti": 20, 22 | "uplinkCapacity": 10, 23 | "downlinkCapacity": 100, 24 | "congestion": false, 25 | "readBufferSize": 1, 26 | "writeBufferSize": 1, 27 | "header": { 28 | "type": "none" 29 | } 30 | } 31 | } 32 | }, 33 | "outbound": { 34 | "protocol": "freedom", 35 | "settings": {} 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /TCP+TLS/config_client.json: -------------------------------------------------------------------------------- 1 | { 2 | "dns": { 3 | "servers": [ 4 | "8.8.8.8", 5 | "8.8.4.4", 6 | "localhost" 7 | ] 8 | }, 9 | "inbound": { 10 | "listen": "0.0.0.0", 11 | "port": 1080, 12 | "protocol": "socks", 13 | "settings": { 14 | "auth": "noauth", 15 | "clients": null, 16 | "ip": "127.0.0.1", 17 | "udp": true 18 | }, 19 | "streamSettings": null 20 | }, 21 | "inboundDetour": null, 22 | "log": { 23 | "access": "/var/log/v2ray/access.log", 24 | "error": "/var/log/v2ray/error.log", 25 | "loglevel": "info" 26 | }, 27 | "outbound": { 28 | "mux": { 29 | "enabled": true 30 | }, 31 | "protocol": "vmess", 32 | "settings": { 33 | "vnext": [ 34 | { 35 | "address": "example.domain", 36 | "port": 443, 37 | "users": [ 38 | { 39 | "alterId": 64, 40 | "id": "0cdf8a45-303d-4fed-9780-29aa7f54175e", 41 | "security": "none" 42 | } 43 | ] 44 | } 45 | ] 46 | }, 47 | "streamSettings": { 48 | "kcpSettings": null, 49 | "network": "tcp", 50 | "security": "tls", 51 | "tcpSettings": null, 52 | "tlsSettings": {}, 53 | "wsSettings": null 54 | }, 55 | "tag": "agentout" 56 | }, 57 | "outboundDetour": [ 58 | { 59 | "protocol": "freedom", 60 | "settings": { 61 | "response": null 62 | }, 63 | "tag": "direct" 64 | }, 65 | { 66 | "protocol": "blackhole", 67 | "settings": { 68 | "response": { 69 | "type": "http" 70 | } 71 | }, 72 | "tag": "blockout" 73 | } 74 | ], 75 | "routing": { 76 | "settings": { 77 | "domainStrategy": "IPIfNonMatch", 78 | "rules": [ 79 | { 80 | "domain": null, 81 | "ip": [ 82 | "0.0.0.0/8", 83 | "10.0.0.0/8", 84 | "100.64.0.0/10", 85 | "127.0.0.0/8", 86 | "169.254.0.0/16", 87 | "172.16.0.0/12", 88 | "192.0.0.0/24", 89 | "192.0.2.0/24", 90 | "192.168.0.0/16", 91 | "198.18.0.0/15", 92 | "198.51.100.0/24", 93 | "203.0.113.0/24", 94 | "::1/128", 95 | "fc00::/7", 96 | "fe80::/10" 97 | ], 98 | "outboundTag": "direct", 99 | "port": null, 100 | "type": "field" 101 | } 102 | ] 103 | }, 104 | "strategy": "rules" 105 | } 106 | } -------------------------------------------------------------------------------- /TCP+TLS/config_server.json: -------------------------------------------------------------------------------- 1 | { 2 | "dns": null, 3 | "inbound": { 4 | "listen": null, 5 | "port": 443, 6 | "protocol": "vmess", 7 | "settings": { 8 | "auth": null, 9 | "clients": [ 10 | { 11 | "alterId": 64, 12 | "id": "e2b39869-7e9e-411b-a561-00904419bed9", 13 | "security": "none" 14 | } 15 | ], 16 | "ip": null, 17 | "udp": true 18 | }, 19 | "streamSettings": { 20 | "kcpSettings": null, 21 | "network": "tcp", 22 | "security": "tls", 23 | "tcpSettings": null, 24 | "tlsSettings": { 25 | "certificates": [ 26 | { 27 | "certificateFile": "/path/to/example.domain/fullchain.cer", 28 | "keyFile": "/path/to/example.domain.key" 29 | } 30 | ] 31 | }, 32 | "wsSettings": null 33 | } 34 | }, 35 | "inboundDetour": null, 36 | "log": { 37 | "access": "/var/log/v2ray/access.log", 38 | "error": "/var/log/v2ray/error.log", 39 | "loglevel": "info" 40 | }, 41 | "outbound": { 42 | "mux": null, 43 | "protocol": "freedom", 44 | "settings": null, 45 | "streamSettings": null, 46 | "tag": null 47 | }, 48 | "outboundDetour": [ 49 | { 50 | "protocol": "blackhole", 51 | "settings": null, 52 | "tag": "blocked" 53 | } 54 | ], 55 | "routing": { 56 | "settings": { 57 | "domainStrategy": null, 58 | "rules": [ 59 | { 60 | "domain": null, 61 | "ip": [ 62 | "0.0.0.0/8", 63 | "10.0.0.0/8", 64 | "100.64.0.0/10", 65 | "127.0.0.0/8", 66 | "169.254.0.0/16", 67 | "172.16.0.0/12", 68 | "192.0.0.0/24", 69 | "192.0.2.0/24", 70 | "192.168.0.0/16", 71 | "198.18.0.0/15", 72 | "198.51.100.0/24", 73 | "203.0.113.0/24", 74 | "::1/128", 75 | "fc00::/7", 76 | "fe80::/10" 77 | ], 78 | "outboundTag": "blocked", 79 | "port": null, 80 | "type": "field" 81 | } 82 | ] 83 | }, 84 | "strategy": "rules" 85 | } 86 | } -------------------------------------------------------------------------------- /TCP/config_client.json: -------------------------------------------------------------------------------- 1 | { 2 | "outbound": { 3 | "streamSettings": { 4 | "network": "tcp", 5 | "kcpSettings": null, 6 | "wsSettings": null, 7 | "tcpSettings": null, 8 | "tlsSettings": {}, 9 | "security": "" 10 | }, 11 | "tag": "agentout", 12 | "protocol": "vmess", 13 | "mux": { 14 | "enabled": true 15 | }, 16 | "settings": { 17 | "vnext": [ 18 | { 19 | "users": [ 20 | { 21 | "alterId": 100, 22 | "security": "aes-128-gcm", 23 | "id": "e2b39869-7e9e-411b-a561-00904419bed9" 24 | } 25 | ], 26 | "port": 1234, 27 | "address": "Your_IP_Address" 28 | } 29 | ] 30 | } 31 | }, 32 | "log": { 33 | "access": "", 34 | "loglevel": "info", 35 | "error": "" 36 | }, 37 | "outboundDetour": [ 38 | { 39 | "tag": "direct", 40 | "protocol": "freedom", 41 | "settings": { 42 | "response": null 43 | } 44 | }, 45 | { 46 | "tag": "blockout", 47 | "protocol": "blackhole", 48 | "settings": { 49 | "response": { 50 | "type": "http" 51 | } 52 | } 53 | } 54 | ], 55 | "inbound": { 56 | "streamSettings": null, 57 | "settings": { 58 | "ip": "127.0.0.1", 59 | "udp": true, 60 | "clients": null, 61 | "auth": "noauth" 62 | }, 63 | "protocol": "socks", 64 | "port": 1080, 65 | "listen": "0.0.0.0" 66 | }, 67 | "inboundDetour": null, 68 | "routing": { 69 | "settings": { 70 | "rules": [ 71 | { 72 | "ip": [ 73 | "0.0.0.0/8", 74 | "10.0.0.0/8", 75 | "100.64.0.0/10", 76 | "127.0.0.0/8", 77 | "169.254.0.0/16", 78 | "172.16.0.0/12", 79 | "192.0.0.0/24", 80 | "192.0.2.0/24", 81 | "192.168.0.0/16", 82 | "198.18.0.0/15", 83 | "198.51.100.0/24", 84 | "203.0.113.0/24", 85 | "::1/128", 86 | "fc00::/7", 87 | "fe80::/10" 88 | ], 89 | "domain": null, 90 | "type": "field", 91 | "port": null, 92 | "outboundTag": "direct" 93 | } 94 | ], 95 | "domainStrategy": "IPIfNonMatch" 96 | }, 97 | "strategy": "rules" 98 | }, 99 | "dns": { 100 | "servers": [ 101 | "8.8.8.8", 102 | "8.8.4.4", 103 | "localhost" 104 | ] 105 | } 106 | } -------------------------------------------------------------------------------- /TCP/config_server.json: -------------------------------------------------------------------------------- 1 | { 2 | "outbound": { 3 | "streamSettings": null, 4 | "tag": null, 5 | "protocol": "freedom", 6 | "mux": null, 7 | "settings": null 8 | }, 9 | "log": { 10 | "access": "/var/log/v2ray/access.log", 11 | "loglevel": "info", 12 | "error": "/var/log/v2ray/error.log" 13 | }, 14 | "inboundDetour": null, 15 | "inbound": { 16 | "streamSettings": { 17 | "network": "tcp", 18 | "kcpSettings": null, 19 | "wsSettings": null, 20 | "tcpSettings": null, 21 | "tlsSettings": {}, 22 | "security": "" 23 | }, 24 | "listen": null, 25 | "protocol": "vmess", 26 | "port": 1234, 27 | "settings": { 28 | "ip": null, 29 | "udp": true, 30 | "clients": [ 31 | { 32 | "alterId": 100, 33 | "security": "aes-128-gcm", 34 | "id": "e2b39869-7e9e-411b-a561-00904419bed9" 35 | } 36 | ], 37 | "auth": null 38 | } 39 | }, 40 | "outboundDetour": [ 41 | { 42 | "tag": "blocked", 43 | "protocol": "blackhole", 44 | "settings": null 45 | } 46 | ], 47 | "routing": { 48 | "strategy": "rules", 49 | "settings": { 50 | "rules": [ 51 | { 52 | "ip": [ 53 | "0.0.0.0/8", 54 | "10.0.0.0/8", 55 | "100.64.0.0/10", 56 | "127.0.0.0/8", 57 | "169.254.0.0/16", 58 | "172.16.0.0/12", 59 | "192.0.0.0/24", 60 | "192.0.2.0/24", 61 | "192.168.0.0/16", 62 | "198.18.0.0/15", 63 | "198.51.100.0/24", 64 | "203.0.113.0/24", 65 | "::1/128", 66 | "fc00::/7", 67 | "fe80::/10" 68 | ], 69 | "domain": null, 70 | "type": "field", 71 | "port": null, 72 | "outboundTag": "blocked" 73 | } 74 | ], 75 | "domainStrategy": null 76 | } 77 | }, 78 | "dns": null 79 | } -------------------------------------------------------------------------------- /http/config_client.json: -------------------------------------------------------------------------------- 1 | { 2 | "outbound": { 3 | "streamSettings": { 4 | "network": "tcp", 5 | "kcpSettings": null, 6 | "wsSettings": null, 7 | "tcpSettings": { 8 | "header": { 9 | "type": "http", 10 | "request": { 11 | "path": [ 12 | "/" 13 | ], 14 | "version": "1.1", 15 | "method": "GET", 16 | "headers": { 17 | "Host": "cloudflare.com", 18 | "User-Agent": [ 19 | "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36", 20 | "Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/53.0.2785.109 Mobile/14A456 Safari/601.1.46" 21 | ], 22 | "Connection": [ 23 | "keep-alive" 24 | ], 25 | "Pragma": "no-cache", 26 | "Accept-Encoding": [ 27 | "gzip, deflate" 28 | ] 29 | } 30 | }, 31 | "response": { 32 | "status": "200", 33 | "headers": { 34 | "Transfer-Encoding": [ 35 | "chunked" 36 | ], 37 | "Connection": [ 38 | "keep-alive" 39 | ], 40 | "Content-Type": [ 41 | "application/octet-stream", 42 | "video/mpeg" 43 | ], 44 | "Pragma": "no-cache" 45 | }, 46 | "reason": "OK", 47 | "version": "1.1" 48 | } 49 | } 50 | }, 51 | "tlsSettings": {}, 52 | "security": "" 53 | }, 54 | "tag": "agentout", 55 | "protocol": "vmess", 56 | "mux": { 57 | "enabled": true 58 | }, 59 | "settings": { 60 | "vnext": [ 61 | { 62 | "users": [ 63 | { 64 | "alterId": 100, 65 | "security": "aes-128-gcm", 66 | "id": "e2b39869-7e9e-411b-a561-00904419bed9" 67 | } 68 | ], 69 | "port": 1234, 70 | "address": "Your_IP_Address" 71 | } 72 | ] 73 | } 74 | }, 75 | "log": { 76 | "access": "", 77 | "loglevel": "info", 78 | "error": "" 79 | }, 80 | "outboundDetour": [ 81 | { 82 | "tag": "direct", 83 | "protocol": "freedom", 84 | "settings": { 85 | "response": null 86 | } 87 | }, 88 | { 89 | "tag": "blockout", 90 | "protocol": "blackhole", 91 | "settings": { 92 | "response": { 93 | "type": "http" 94 | } 95 | } 96 | } 97 | ], 98 | "inbound": { 99 | "streamSettings": null, 100 | "settings": { 101 | "ip": "127.0.0.1", 102 | "udp": true, 103 | "clients": null, 104 | "auth": "noauth" 105 | }, 106 | "protocol": "socks", 107 | "port": 1080, 108 | "listen": "0.0.0.0" 109 | }, 110 | "inboundDetour": null, 111 | "routing": { 112 | "settings": { 113 | "rules": [ 114 | { 115 | "ip": [ 116 | "0.0.0.0/8", 117 | "10.0.0.0/8", 118 | "100.64.0.0/10", 119 | "127.0.0.0/8", 120 | "169.254.0.0/16", 121 | "172.16.0.0/12", 122 | "192.0.0.0/24", 123 | "192.0.2.0/24", 124 | "192.168.0.0/16", 125 | "198.18.0.0/15", 126 | "198.51.100.0/24", 127 | "203.0.113.0/24", 128 | "::1/128", 129 | "fc00::/7", 130 | "fe80::/10" 131 | ], 132 | "domain": null, 133 | "type": "field", 134 | "port": null, 135 | "outboundTag": "direct" 136 | } 137 | ], 138 | "domainStrategy": "IPIfNonMatch" 139 | }, 140 | "strategy": "rules" 141 | }, 142 | "dns": { 143 | "servers": [ 144 | "8.8.8.8", 145 | "8.8.4.4", 146 | "localhost" 147 | ] 148 | } 149 | } -------------------------------------------------------------------------------- /http/config_server.json: -------------------------------------------------------------------------------- 1 | { 2 | "outbound": { 3 | "streamSettings": null, 4 | "tag": null, 5 | "protocol": "freedom", 6 | "mux": null, 7 | "settings": null 8 | }, 9 | "log": { 10 | "access": "/var/log/v2ray/access.log", 11 | "loglevel": "info", 12 | "error": "/var/log/v2ray/error.log" 13 | }, 14 | "outboundDetour": [ 15 | { 16 | "tag": "blocked", 17 | "protocol": "blackhole", 18 | "settings": null 19 | } 20 | ], 21 | "inbound": { 22 | "streamSettings": { 23 | "network": "tcp", 24 | "kcpSettings": null, 25 | "wsSettings": null, 26 | "tcpSettings": { 27 | "header": { 28 | "request": { 29 | "path": [ 30 | "/" 31 | ], 32 | "version": "1.1", 33 | "method": "GET", 34 | "headers": { 35 | "Host": "cloudflare.com", 36 | "Connection": [ 37 | "keep-alive" 38 | ], 39 | "Accept-Encoding": [ 40 | "gzip, deflate" 41 | ], 42 | "Pragma": "no-cache", 43 | "User-Agent": [ 44 | "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36", 45 | "Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/53.0.2785.109 Mobile/14A456 Safari/601.1.46" 46 | ] 47 | } 48 | }, 49 | "type": "http", 50 | "response": { 51 | "status": "200", 52 | "headers": { 53 | "Transfer-Encoding": [ 54 | "chunked" 55 | ], 56 | "Connection": [ 57 | "keep-alive" 58 | ], 59 | "Content-Type": [ 60 | "application/octet-stream", 61 | "video/mpeg" 62 | ], 63 | "Pragma": "no-cache" 64 | }, 65 | "reason": "OK", 66 | "version": "1.1" 67 | } 68 | } 69 | }, 70 | "tlsSettings": {}, 71 | "security": "" 72 | }, 73 | "settings": { 74 | "ip": null, 75 | "udp": true, 76 | "clients": [ 77 | { 78 | "alterId": 100, 79 | "security": "aes-128-gcm", 80 | "id": "e2b39869-7e9e-411b-a561-00904419bed9" 81 | } 82 | ], 83 | "auth": null 84 | }, 85 | "protocol": "vmess", 86 | "port": 1234, 87 | "listen": null 88 | }, 89 | "inboundDetour": null, 90 | "routing": { 91 | "settings": { 92 | "rules": [ 93 | { 94 | "ip": [ 95 | "0.0.0.0/8", 96 | "10.0.0.0/8", 97 | "100.64.0.0/10", 98 | "127.0.0.0/8", 99 | "169.254.0.0/16", 100 | "172.16.0.0/12", 101 | "192.0.0.0/24", 102 | "192.0.2.0/24", 103 | "192.168.0.0/16", 104 | "198.18.0.0/15", 105 | "198.51.100.0/24", 106 | "203.0.113.0/24", 107 | "::1/128", 108 | "fc00::/7", 109 | "fe80::/10" 110 | ], 111 | "domain": null, 112 | "type": "field", 113 | "port": null, 114 | "outboundTag": "blocked" 115 | } 116 | ], 117 | "domainStrategy": null 118 | }, 119 | "strategy": "rules" 120 | }, 121 | "dns": null 122 | } -------------------------------------------------------------------------------- /mKcp 伪装微信视频流量/config_client.json: -------------------------------------------------------------------------------- 1 | { 2 | "outbound": { 3 | "streamSettings": { 4 | "network": "kcp", 5 | "kcpSettings": { 6 | "uplinkCapacity": 15, 7 | "downlinkCapacity": 100, 8 | "readBufferSize": 2, 9 | "mtu": 1350, 10 | "header": { 11 | "type": "wechat-video", 12 | "request": null, 13 | "response": null 14 | }, 15 | "tti": 50, 16 | "congestion": false, 17 | "writeBufferSize": 2 18 | }, 19 | "wsSettings": null, 20 | "tcpSettings": null, 21 | "tlsSettings": {}, 22 | "security": "" 23 | }, 24 | "tag": "agentout", 25 | "protocol": "vmess", 26 | "mux": { 27 | "enabled": true 28 | }, 29 | "settings": { 30 | "vnext": [ 31 | { 32 | "users": [ 33 | { 34 | "alterId": 100, 35 | "security": "aes-128-gcm", 36 | "id": "e2b39869-7e9e-411b-a561-00904419bed9" 37 | } 38 | ], 39 | "port": 1234, 40 | "address": "Your_IP_Address" 41 | } 42 | ] 43 | } 44 | }, 45 | "log": { 46 | "access": "", 47 | "loglevel": "info", 48 | "error": "" 49 | }, 50 | "outboundDetour": [ 51 | { 52 | "tag": "direct", 53 | "protocol": "freedom", 54 | "settings": { 55 | "response": null 56 | } 57 | }, 58 | { 59 | "tag": "blockout", 60 | "protocol": "blackhole", 61 | "settings": { 62 | "response": { 63 | "type": "http" 64 | } 65 | } 66 | } 67 | ], 68 | "inbound": { 69 | "streamSettings": null, 70 | "settings": { 71 | "ip": "127.0.0.1", 72 | "udp": true, 73 | "clients": null, 74 | "auth": "noauth" 75 | }, 76 | "protocol": "socks", 77 | "port": 1080, 78 | "listen": "0.0.0.0" 79 | }, 80 | "inboundDetour": null, 81 | "routing": { 82 | "settings": { 83 | "rules": [ 84 | { 85 | "ip": [ 86 | "0.0.0.0/8", 87 | "10.0.0.0/8", 88 | "100.64.0.0/10", 89 | "127.0.0.0/8", 90 | "169.254.0.0/16", 91 | "172.16.0.0/12", 92 | "192.0.0.0/24", 93 | "192.0.2.0/24", 94 | "192.168.0.0/16", 95 | "198.18.0.0/15", 96 | "198.51.100.0/24", 97 | "203.0.113.0/24", 98 | "::1/128", 99 | "fc00::/7", 100 | "fe80::/10" 101 | ], 102 | "domain": null, 103 | "type": "field", 104 | "port": null, 105 | "outboundTag": "direct" 106 | } 107 | ], 108 | "domainStrategy": "IPIfNonMatch" 109 | }, 110 | "strategy": "rules" 111 | }, 112 | "dns": { 113 | "servers": [ 114 | "8.8.8.8", 115 | "8.8.4.4", 116 | "localhost" 117 | ] 118 | } 119 | } -------------------------------------------------------------------------------- /mKcp 伪装微信视频流量/config_server.json: -------------------------------------------------------------------------------- 1 | { 2 | "outbound": { 3 | "streamSettings": null, 4 | "tag": null, 5 | "protocol": "freedom", 6 | "mux": null, 7 | "settings": null 8 | }, 9 | "log": { 10 | "access": "/var/log/v2ray/access.log", 11 | "loglevel": "info", 12 | "error": "/var/log/v2ray/error.log" 13 | }, 14 | "outboundDetour": [ 15 | { 16 | "tag": "blocked", 17 | "protocol": "blackhole", 18 | "settings": null 19 | } 20 | ], 21 | "inbound": { 22 | "streamSettings": { 23 | "network": "kcp", 24 | "kcpSettings": { 25 | "uplinkCapacity": 15, 26 | "downlinkCapacity": 100, 27 | "readBufferSize": 2, 28 | "mtu": 1350, 29 | "header": { 30 | "request": null, 31 | "type": "wechat-video", 32 | "response": null 33 | }, 34 | "tti": 50, 35 | "congestion": false, 36 | "writeBufferSize": 2 37 | }, 38 | "wsSettings": null, 39 | "tcpSettings": null, 40 | "tlsSettings": {}, 41 | "security": "" 42 | }, 43 | "settings": { 44 | "ip": null, 45 | "udp": true, 46 | "clients": [ 47 | { 48 | "alterId": 100, 49 | "security": "aes-128-gcm", 50 | "id": "e2b39869-7e9e-411b-a561-00904419bed9" 51 | } 52 | ], 53 | "auth": null 54 | }, 55 | "protocol": "vmess", 56 | "port": 1234, 57 | "listen": null 58 | }, 59 | "inboundDetour": null, 60 | "routing": { 61 | "settings": { 62 | "rules": [ 63 | { 64 | "ip": [ 65 | "0.0.0.0/8", 66 | "10.0.0.0/8", 67 | "100.64.0.0/10", 68 | "127.0.0.0/8", 69 | "169.254.0.0/16", 70 | "172.16.0.0/12", 71 | "192.0.0.0/24", 72 | "192.0.2.0/24", 73 | "192.168.0.0/16", 74 | "198.18.0.0/15", 75 | "198.51.100.0/24", 76 | "203.0.113.0/24", 77 | "::1/128", 78 | "fc00::/7", 79 | "fe80::/10" 80 | ], 81 | "domain": null, 82 | "type": "field", 83 | "port": null, 84 | "outboundTag": "blocked" 85 | } 86 | ], 87 | "domainStrategy": null 88 | }, 89 | "strategy": "rules" 90 | }, 91 | "dns": null 92 | } -------------------------------------------------------------------------------- /mKcp/config_client.json: -------------------------------------------------------------------------------- 1 | { 2 | "outbound": { 3 | "streamSettings": { 4 | "network": "kcp", 5 | "kcpSettings": { 6 | "uplinkCapacity": 15, 7 | "downlinkCapacity": 100, 8 | "readBufferSize": 2, 9 | "mtu": 1350, 10 | "header": { 11 | "type": "none", 12 | "request": null, 13 | "response": null 14 | }, 15 | "tti": 50, 16 | "congestion": false, 17 | "writeBufferSize": 2 18 | }, 19 | "wsSettings": null, 20 | "tcpSettings": null, 21 | "tlsSettings": {}, 22 | "security": "" 23 | }, 24 | "tag": "agentout", 25 | "protocol": "vmess", 26 | "mux": { 27 | "enabled": true 28 | }, 29 | "settings": { 30 | "vnext": [{ 31 | "users": [{ 32 | "alterId": 100, 33 | "security": "aes-128-gcm", 34 | "id": "e2b39869-7e9e-411b-a561-00904419bed9" 35 | }], 36 | "port": 1234, 37 | "address": "Your_IP_Address" 38 | }] 39 | } 40 | }, 41 | "log": { 42 | "access": "", 43 | "loglevel": "info", 44 | "error": "" 45 | }, 46 | "outboundDetour": [{ 47 | "tag": "direct", 48 | "protocol": "freedom", 49 | "settings": { 50 | "response": null 51 | } 52 | }, 53 | { 54 | "tag": "blockout", 55 | "protocol": "blackhole", 56 | "settings": { 57 | "response": { 58 | "type": "http" 59 | } 60 | } 61 | } 62 | ], 63 | "inbound": { 64 | "streamSettings": null, 65 | "settings": { 66 | "ip": "127.0.0.1", 67 | "udp": true, 68 | "clients": null, 69 | "auth": "noauth" 70 | }, 71 | "protocol": "socks", 72 | "port": 1080, 73 | "listen": "0.0.0.0" 74 | }, 75 | "inboundDetour": null, 76 | "routing": { 77 | "settings": { 78 | "rules": [{ 79 | "ip": [ 80 | "0.0.0.0/8", 81 | "10.0.0.0/8", 82 | "100.64.0.0/10", 83 | "127.0.0.0/8", 84 | "169.254.0.0/16", 85 | "172.16.0.0/12", 86 | "192.0.0.0/24", 87 | "192.0.2.0/24", 88 | "192.168.0.0/16", 89 | "198.18.0.0/15", 90 | "198.51.100.0/24", 91 | "203.0.113.0/24", 92 | "::1/128", 93 | "fc00::/7", 94 | "fe80::/10" 95 | ], 96 | "domain": null, 97 | "type": "field", 98 | "port": null, 99 | "outboundTag": "direct" 100 | }], 101 | "domainStrategy": "IPIfNonMatch" 102 | }, 103 | "strategy": "rules" 104 | }, 105 | "dns": { 106 | "servers": [ 107 | "8.8.8.8", 108 | "8.8.4.4", 109 | "localhost" 110 | ] 111 | } 112 | } 113 | -------------------------------------------------------------------------------- /mKcp/config_server.json: -------------------------------------------------------------------------------- 1 | { 2 | "outbound": { 3 | "streamSettings": null, 4 | "tag": null, 5 | "protocol": "freedom", 6 | "mux": null, 7 | "settings": null 8 | }, 9 | "log": { 10 | "access": "/var/log/v2ray/access.log", 11 | "loglevel": "info", 12 | "error": "/var/log/v2ray/error.log" 13 | }, 14 | "outboundDetour": [{ 15 | "tag": "blocked", 16 | "protocol": "blackhole", 17 | "settings": null 18 | }], 19 | "inbound": { 20 | "streamSettings": { 21 | "network": "kcp", 22 | "kcpSettings": { 23 | "uplinkCapacity": 15, 24 | "downlinkCapacity": 100, 25 | "readBufferSize": 2, 26 | "mtu": 1350, 27 | "header": { 28 | "request": null, 29 | "type": "none", 30 | "response": null 31 | }, 32 | "tti": 50, 33 | "congestion": false, 34 | "writeBufferSize": 2 35 | }, 36 | "wsSettings": null, 37 | "tcpSettings": null, 38 | "tlsSettings": {}, 39 | "security": "" 40 | }, 41 | "settings": { 42 | "ip": null, 43 | "udp": true, 44 | "clients": [{ 45 | "alterId": 100, 46 | "security": "aes-128-gcm", 47 | "id": "e2b39869-7e9e-411b-a561-00904419bed9" 48 | }], 49 | "auth": null 50 | }, 51 | "protocol": "vmess", 52 | "port": 1234, 53 | "listen": null 54 | }, 55 | "inboundDetour": null, 56 | "routing": { 57 | "settings": { 58 | "rules": [{ 59 | "ip": [ 60 | "0.0.0.0/8", 61 | "10.0.0.0/8", 62 | "100.64.0.0/10", 63 | "127.0.0.0/8", 64 | "169.254.0.0/16", 65 | "172.16.0.0/12", 66 | "192.0.0.0/24", 67 | "192.0.2.0/24", 68 | "192.168.0.0/16", 69 | "198.18.0.0/15", 70 | "198.51.100.0/24", 71 | "203.0.113.0/24", 72 | "::1/128", 73 | "fc00::/7", 74 | "fe80::/10" 75 | ], 76 | "domain": null, 77 | "type": "field", 78 | "port": null, 79 | "outboundTag": "blocked" 80 | }], 81 | "domainStrategy": null 82 | }, 83 | "strategy": "rules" 84 | }, 85 | "dns": null 86 | } 87 | -------------------------------------------------------------------------------- /socks5-tls/config_client.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "loglevel": "warning" 4 | }, 5 | "inbound": { 6 | "port": 6789, 7 | "listen": "127.0.0.1", 8 | "protocol": "socks", 9 | "settings": { 10 | "auth": "noauth", 11 | "udp": false, 12 | "ip": "127.0.0.1" 13 | } 14 | }, 15 | "outbound": { 16 | "protocol": "socks", 17 | "settings": { 18 | "servers": [ 19 | { 20 | "address": "you server", 21 | "port": 443, 22 | "users": [ 23 | { 24 | "user": "hello", 25 | "pass": "3.1415", 26 | "level": 0 27 | } 28 | ] 29 | } 30 | ] 31 | }, 32 | "streamSettings": { 33 | "network": "tcp", 34 | "security": "tls" 35 | } 36 | }, 37 | "policy": { 38 | "levels": { 39 | "0": { 40 | "uplinkOnly": 0 41 | } 42 | } 43 | } 44 | } -------------------------------------------------------------------------------- /socks5-tls/config_server.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "access": "/var/log/v2ray/access.log", 4 | "error": "/var/log/v2ray/error.log", 5 | "loglevel": "warning" 6 | }, 7 | "inbound": { 8 | "port": 443, 9 | "protocol": "socks", 10 | "settings": { 11 | "auth": "password", 12 | "accounts": [ 13 | { 14 | "user": "hello", 15 | "pass": "3.1415" 16 | } 17 | ], 18 | "udp": false, 19 | "ip": "127.0.0.1", 20 | "timeout": 0, 21 | "userLevel": 0 22 | }, 23 | "streamSettings": { 24 | "network": "tcp", 25 | "security": "tls", 26 | "tlsSettings": { 27 | "certificates": [ 28 | { 29 | "certificateFile": "/etc/v2ray/v2ray.crt", 30 | "keyFile": "/etc/v2ray/v2ray.key" 31 | } 32 | ] 33 | } 34 | } 35 | }, 36 | "outbound": { 37 | "protocol": "freedom", 38 | "settings": {} 39 | }, 40 | "outboundDetour": [ 41 | { 42 | "protocol": "blackhole", 43 | "settings": {}, 44 | "tag": "blocked" 45 | } 46 | ], 47 | "routing": { 48 | "strategy": "rules", 49 | "settings": { 50 | "rules": [ 51 | { 52 | "type": "field", 53 | "ip": [ 54 | "0.0.0.0/8", 55 | "10.0.0.0/8", 56 | "100.64.0.0/10", 57 | "127.0.0.0/8", 58 | "169.254.0.0/16", 59 | "172.16.0.0/12", 60 | "192.0.0.0/24", 61 | "192.0.2.0/24", 62 | "192.168.0.0/16", 63 | "198.18.0.0/15", 64 | "198.51.100.0/24", 65 | "203.0.113.0/24", 66 | "::1/128", 67 | "fc00::/7", 68 | "fe80::/10" 69 | ], 70 | "outboundTag": "blocked" 71 | } 72 | ] 73 | } 74 | } 75 | } -------------------------------------------------------------------------------- /vmess/config_client.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "error": "F:\\Program Files\\v2ray-v2.40-windows-64\\error.log", 4 | "loglevel": "warning" 5 | }, 6 | "inbound": { 7 | "port": 1082, 8 | "listen": "127.0.0.1", 9 | "protocol": "socks", 10 | "settings": { 11 | "auth": "noauth", 12 | "udp": true 13 | } 14 | }, 15 | "outbound": { 16 | "protocol": "vmess", 17 | "settings": { 18 | "vnext": [ 19 | { 20 | "address": "0.0.0.0", 21 | "port": 1234, 22 | "users": [ 23 | { 24 | "id": "a90597c1-bab3-4217-ad6f-0838675c8633", 25 | "alterId": 10 26 | }, 27 | { 28 | "id": "8856ea72-a67a-4651-98f0-ebb3bf4f07b1", 29 | "level": 1, 30 | "security": "aes-128-gcm", 31 | "alterId": 12 32 | } 33 | ] 34 | } 35 | ] 36 | } 37 | }, 38 | "outboundDetour": [ 39 | { 40 | "protocol": "freedom", 41 | "tag": "direct", 42 | "settings": {} 43 | } 44 | ], 45 | "routing": { 46 | "strategy": "rules", 47 | "settings": { 48 | "domainStrategy": "IPOnDemand", 49 | "rules": [ 50 | { 51 | "type": "field", 52 | "ip": [ 53 | "0.0.0.0/8", 54 | "10.0.0.0/8", 55 | "100.64.0.0/10", 56 | "127.0.0.0/8", 57 | "169.254.0.0/16", 58 | "172.16.0.0/12", 59 | "192.0.0.0/24", 60 | "192.0.2.0/24", 61 | "192.168.0.0/16", 62 | "198.18.0.0/15", 63 | "198.51.100.0/24", 64 | "203.0.113.0/24", 65 | "::1/128", 66 | "fc00::/7", 67 | "fe80::/10" 68 | ], 69 | "outboundTag": "direct" 70 | } 71 | ] 72 | } 73 | } 74 | } -------------------------------------------------------------------------------- /vmess/config_server.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "access": "/var/log/v2ray/access.log", 4 | "error": "/var/log/v2ray/error.log", 5 | "loglevel": "warning" 6 | }, 7 | "inbound": { 8 | "port": 1234, 9 | "protocol": "vmess", 10 | "settings": { 11 | "clients": [ 12 | { 13 | "id": "a90597c1-bab3-4217-ad6f-0838675c8633", 14 | "alterId": 10 15 | }, 16 | { 17 | "id": "8856ea72-a67a-4651-98f0-ebb3bf4f07b1", 18 | "level": 1, 19 | "security": "aes-128-gcm", 20 | "alterId": 12 21 | } 22 | ] 23 | } 24 | }, 25 | "outbound": { 26 | "protocol": "freedom", 27 | "settings": {} 28 | }, 29 | "outboundDetour": [ 30 | { 31 | "protocol": "blackhole", 32 | "settings": {}, 33 | "tag": "blocked" 34 | } 35 | ], 36 | "routing": { 37 | "strategy": "rules", 38 | "settings": { 39 | "rules": [ 40 | { 41 | "type": "field", 42 | "ip": [ 43 | "0.0.0.0/8", 44 | "10.0.0.0/8", 45 | "100.64.0.0/10", 46 | "127.0.0.0/8", 47 | "169.254.0.0/16", 48 | "172.16.0.0/12", 49 | "192.0.0.0/24", 50 | "192.0.2.0/24", 51 | "192.168.0.0/16", 52 | "198.18.0.0/15", 53 | "198.51.100.0/24", 54 | "203.0.113.0/24", 55 | "::1/128", 56 | "fc00::/7", 57 | "fe80::/10" 58 | ], 59 | "outboundTag": "blocked" 60 | } 61 | ] 62 | } 63 | } 64 | } -------------------------------------------------------------------------------- /websocket+Caddy+TLS(use header)/Caddyfile: -------------------------------------------------------------------------------- 1 | https://example.domain * { 2 | gzip 3 | tls kiri_so@outlook.com 4 | proxy / https://www.baidu.com 5 | log / stdout "{request}" 6 | 7 | rewrite { 8 | if {host} is google.com 9 | to /test 10 | } 11 | 12 | proxy /test localhost:1234 { 13 | websocket 14 | without /test 15 | } 16 | } 17 | 18 | -------------------------------------------------------------------------------- /websocket+Caddy+TLS(use header)/config_client.json: -------------------------------------------------------------------------------- 1 | { 2 | "outbound": { 3 | "streamSettings": { 4 | "network": "ws", 5 | "kcpSettings": null, 6 | "wsSettings": { 7 | "headers": { 8 | "host": "google.com" 9 | }, 10 | "path": "/" 11 | }, 12 | "tcpSettings": null, 13 | "tlsSettings": {}, 14 | "security": "tls" 15 | }, 16 | "tag": "agentout", 17 | "protocol": "vmess", 18 | "mux": { 19 | "enabled": true, 20 | "concurrency": 8 21 | }, 22 | "settings": { 23 | "vnext": [ 24 | { 25 | "users": [ 26 | { 27 | "alterId": 100, 28 | "security": "aes-128-gcm", 29 | "id": "e2b39869-7e9e-411b-a561-00904419bed9" 30 | } 31 | ], 32 | "port": 443, 33 | "address": "example.domain" 34 | } 35 | ] 36 | } 37 | }, 38 | "log": { 39 | "access": "", 40 | "loglevel": "info", 41 | "error": "" 42 | }, 43 | "outboundDetour": [ 44 | { 45 | "tag": "direct", 46 | "protocol": "freedom", 47 | "settings": { 48 | "response": null 49 | } 50 | }, 51 | { 52 | "tag": "blockout", 53 | "protocol": "blackhole", 54 | "settings": { 55 | "response": { 56 | "type": "http" 57 | } 58 | } 59 | } 60 | ], 61 | "inbound": { 62 | "streamSettings": null, 63 | "settings": { 64 | "ip": "127.0.0.1", 65 | "udp": true, 66 | "clients": null, 67 | "auth": "noauth" 68 | }, 69 | "protocol": "socks", 70 | "port": 10086, 71 | "listen": "0.0.0.0" 72 | }, 73 | "inboundDetour": null, 74 | "routing": { 75 | "settings": { 76 | "rules": [ 77 | { 78 | "ip": [ 79 | "0.0.0.0/8", 80 | "10.0.0.0/8", 81 | "100.64.0.0/10", 82 | "127.0.0.0/8", 83 | "169.254.0.0/16", 84 | "172.16.0.0/12", 85 | "192.0.0.0/24", 86 | "192.0.2.0/24", 87 | "192.168.0.0/16", 88 | "198.18.0.0/15", 89 | "198.51.100.0/24", 90 | "203.0.113.0/24", 91 | "::1/128", 92 | "fc00::/7", 93 | "fe80::/10" 94 | ], 95 | "domain": null, 96 | "type": "field", 97 | "port": null, 98 | "outboundTag": "direct" 99 | } 100 | ], 101 | "domainStrategy": "IPIfNonMatch" 102 | }, 103 | "strategy": "rules" 104 | }, 105 | "dns": { 106 | "servers": [ 107 | "8.8.8.8", 108 | "8.8.4.4", 109 | "localhost" 110 | ] 111 | } 112 | } -------------------------------------------------------------------------------- /websocket+Caddy+TLS(use header)/config_server.json: -------------------------------------------------------------------------------- 1 | { 2 | "outbound": { 3 | "streamSettings": null, 4 | "tag": null, 5 | "protocol": "freedom", 6 | "mux": null, 7 | "settings": null 8 | }, 9 | "log": { 10 | "access": "/var/log/v2ray/access.log", 11 | "loglevel": "info", 12 | "error": "/var/log/v2ray/error.log" 13 | }, 14 | "outboundDetour": [ 15 | { 16 | "tag": "direct", 17 | "protocol": "freedom", 18 | "settings": null 19 | }, 20 | { 21 | "tag": "blocked", 22 | "protocol": "blackhole", 23 | "settings": null 24 | } 25 | ], 26 | "inbound": { 27 | "streamSettings": { 28 | "network": "ws", 29 | "kcpSettings": null, 30 | "wsSettings": { 31 | "headers": { 32 | "host": "google.com" 33 | }, 34 | "path": "/" 35 | }, 36 | "tcpSettings": null, 37 | "tlsSettings": {}, 38 | "security": "" 39 | }, 40 | "settings": { 41 | "ip": null, 42 | "udp": true, 43 | "clients": [ 44 | { 45 | "alterId": 100, 46 | "security": "aes-128-gcm", 47 | "id": "e2b39869-7e9e-411b-a561-00904419bed9" 48 | } 49 | ], 50 | "auth": null 51 | }, 52 | "protocol": "vmess", 53 | "port": 1234, 54 | "listen": null 55 | }, 56 | "inboundDetour": null, 57 | "routing": { 58 | "settings": { 59 | "rules": [ 60 | { 61 | "ip": [ 62 | "0.0.0.0/8", 63 | "10.0.0.0/8", 64 | "100.64.0.0/10", 65 | "127.0.0.0/8", 66 | "169.254.0.0/16", 67 | "172.16.0.0/12", 68 | "192.0.0.0/24", 69 | "192.0.2.0/24", 70 | "192.168.0.0/16", 71 | "198.18.0.0/15", 72 | "198.51.100.0/24", 73 | "203.0.113.0/24", 74 | "::1/128", 75 | "fc00::/7", 76 | "fe80::/10" 77 | ], 78 | "domain": null, 79 | "type": "field", 80 | "port": null, 81 | "outboundTag": "blocked" 82 | } 83 | ], 84 | "domainStrategy": null 85 | }, 86 | "strategy": "rules" 87 | }, 88 | "dns": null 89 | } -------------------------------------------------------------------------------- /websocket+Caddy+TLS(use path)/Caddyfile: -------------------------------------------------------------------------------- 1 | https://example.domain { 2 | root /usr/local/caddy/www/aria2 3 | timeouts none 4 | tls kiri_so@outlook.com 5 | gzip 6 | proxy /test localhost:1234 { 7 | websocket 8 | header_upstream -Origin 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /websocket+Caddy+TLS(use path)/config_client.json: -------------------------------------------------------------------------------- 1 | { 2 | "outbound": { 3 | "streamSettings": { 4 | "network": "ws", 5 | "kcpSettings": null, 6 | "wsSettings": { 7 | "path": "/test" 8 | }, 9 | "tcpSettings": null, 10 | "tlsSettings": {}, 11 | "security": "tls" 12 | }, 13 | "tag": "agentout", 14 | "protocol": "vmess", 15 | "mux": { 16 | "enabled": true, 17 | "concurrency": 8 18 | }, 19 | "settings": { 20 | "vnext": [ 21 | { 22 | "users": [ 23 | { 24 | "alterId": 100, 25 | "security": "aes-128-gcm", 26 | "id": "e2b39869-7e9e-411b-a561-00904419bed9" 27 | } 28 | ], 29 | "port": 443, 30 | "address": "example.domain" 31 | } 32 | ] 33 | } 34 | }, 35 | "log": { 36 | "access": "", 37 | "loglevel": "info", 38 | "error": "" 39 | }, 40 | "outboundDetour": [ 41 | { 42 | "tag": "direct", 43 | "protocol": "freedom", 44 | "settings": { 45 | "response": null 46 | } 47 | }, 48 | { 49 | "tag": "blockout", 50 | "protocol": "blackhole", 51 | "settings": { 52 | "response": { 53 | "type": "http" 54 | } 55 | } 56 | } 57 | ], 58 | "inbound": { 59 | "streamSettings": null, 60 | "settings": { 61 | "ip": "127.0.0.1", 62 | "udp": true, 63 | "clients": null, 64 | "auth": "noauth" 65 | }, 66 | "protocol": "socks", 67 | "port": 10086, 68 | "listen": "0.0.0.0" 69 | }, 70 | "inboundDetour": null, 71 | "routing": { 72 | "settings": { 73 | "rules": [ 74 | { 75 | "ip": [ 76 | "0.0.0.0/8", 77 | "10.0.0.0/8", 78 | "100.64.0.0/10", 79 | "127.0.0.0/8", 80 | "169.254.0.0/16", 81 | "172.16.0.0/12", 82 | "192.0.0.0/24", 83 | "192.0.2.0/24", 84 | "192.168.0.0/16", 85 | "198.18.0.0/15", 86 | "198.51.100.0/24", 87 | "203.0.113.0/24", 88 | "::1/128", 89 | "fc00::/7", 90 | "fe80::/10" 91 | ], 92 | "domain": null, 93 | "type": "field", 94 | "port": null, 95 | "outboundTag": "direct" 96 | } 97 | ], 98 | "domainStrategy": "IPIfNonMatch" 99 | }, 100 | "strategy": "rules" 101 | }, 102 | "dns": { 103 | "servers": [ 104 | "8.8.8.8", 105 | "8.8.4.4", 106 | "localhost" 107 | ] 108 | } 109 | } -------------------------------------------------------------------------------- /websocket+Caddy+TLS(use path)/config_server.json: -------------------------------------------------------------------------------- 1 | { 2 | "outbound": { 3 | "streamSettings": null, 4 | "tag": null, 5 | "protocol": "freedom", 6 | "mux": null, 7 | "settings": null 8 | }, 9 | "log": { 10 | "access": "/var/log/v2ray/access.log", 11 | "loglevel": "info", 12 | "error": "/var/log/v2ray/error.log" 13 | }, 14 | "outboundDetour": [ 15 | { 16 | "tag": "direct", 17 | "protocol": "freedom", 18 | "settings": null 19 | }, 20 | { 21 | "tag": "blocked", 22 | "protocol": "blackhole", 23 | "settings": null 24 | } 25 | ], 26 | "inbound": { 27 | "streamSettings": { 28 | "network": "ws", 29 | "kcpSettings": null, 30 | "wsSettings": { 31 | "path": "/test" 32 | }, 33 | "tcpSettings": null, 34 | "tlsSettings": {}, 35 | "security": "" 36 | }, 37 | "settings": { 38 | "ip": null, 39 | "udp": true, 40 | "clients": [ 41 | { 42 | "alterId": 100, 43 | "security": "aes-128-gcm", 44 | "id": "e2b39869-7e9e-411b-a561-00904419bed9" 45 | } 46 | ], 47 | "auth": null 48 | }, 49 | "protocol": "vmess", 50 | "port": 1234, 51 | "listen": null 52 | }, 53 | "inboundDetour": null, 54 | "routing": { 55 | "settings": { 56 | "rules": [ 57 | { 58 | "ip": [ 59 | "0.0.0.0/8", 60 | "10.0.0.0/8", 61 | "100.64.0.0/10", 62 | "127.0.0.0/8", 63 | "169.254.0.0/16", 64 | "172.16.0.0/12", 65 | "192.0.0.0/24", 66 | "192.0.2.0/24", 67 | "192.168.0.0/16", 68 | "198.18.0.0/15", 69 | "198.51.100.0/24", 70 | "203.0.113.0/24", 71 | "::1/128", 72 | "fc00::/7", 73 | "fe80::/10" 74 | ], 75 | "domain": null, 76 | "type": "field", 77 | "port": null, 78 | "outboundTag": "blocked" 79 | } 80 | ], 81 | "domainStrategy": null 82 | }, 83 | "strategy": "rules" 84 | }, 85 | "dns": null 86 | } -------------------------------------------------------------------------------- /websocket+Nginx+TLS/config_client.json: -------------------------------------------------------------------------------- 1 | { 2 | "outbound": { 3 | "protocol": "freedom", 4 | "settings": {}, 5 | "tag": "direct" 6 | }, 7 | "inboundDetour": [ 8 | { 9 | "port": 1086, 10 | "listen": "127.0.0.1", 11 | "protocol": "socks", 12 | "settings": { 13 | "auth": "noauth", 14 | "timeout": 300, 15 | "udp": true 16 | } 17 | } 18 | ], 19 | "outboundDetour": [ 20 | { 21 | "mux": { 22 | "concurrency": 6, 23 | "enabled": true 24 | }, 25 | "protocol": "vmess", 26 | "settings": { 27 | "vnext": [ 28 | { 29 | "users": [ 30 | { 31 | "id": "97c0ec9c-dc4e-11e7-9296-cec278b6b50a", 32 | //"level"字段与"policy"字段中的"levels"字段中的对应,默认值:0,注:需要core≥3.1 33 | "level": 0, 34 | "alterId": 0, 35 | "security": "aes-128-cfb" 36 | } 37 | ], 38 | "address": "domain.Name", 39 | "port": 443 40 | } 41 | ] 42 | }, 43 | "streamSettings": { 44 | "tlsSettings": { 45 | "allowInsecure": false 46 | }, 47 | "wsSettings": { 48 | "headers": { 49 | "Host": "domain.Name" 50 | }, 51 | "path": "/PATH/" 52 | }, 53 | "network": "ws", 54 | "security": "tls" 55 | }, 56 | "tag": "proxy" 57 | }, 58 | { 59 | "protocol": "blackhole", 60 | "settings": {}, 61 | "tag": "block" 62 | } 63 | ], 64 | "dns": { 65 | "servers": [ 66 | "8.8.8.8", 67 | "8.8.4.4" 68 | ] 69 | }, 70 | "inbound": { 71 | "port": 1087, 72 | "listen": "127.0.0.1", 73 | "protocol": "http", 74 | "settings": { 75 | "timeout": 300 76 | } 77 | }, 78 | // 注"policy"字段需要core≥3.1 79 | "policy": { 80 | "levels": { 81 | "0": { 82 | "uplinkOnly": 0, 83 | "downlinkOnly": 0, 84 | "connIdle": 150, 85 | "handshake": 4 86 | } 87 | } 88 | }, 89 | "routing": { 90 | "settings": { 91 | "rules": [ 92 | { 93 | "type": "field", 94 | "domain": [ 95 | "geosite:cn" 96 | ], 97 | "outboundTag": "direct" 98 | }, 99 | { 100 | "type": "field", 101 | "domain": [ 102 | "google", 103 | "facebook", 104 | "youtube", 105 | "twitter", 106 | "instagram", 107 | "gmail", 108 | "domain:twimg.com", 109 | "domain:t.co" 110 | ], 111 | "outboundTag": "proxy" 112 | }, 113 | { 114 | "type": "field", 115 | "ip": [ 116 | "8.8.8.8/32", 117 | "8.8.4.4/32", 118 | "91.108.56.0/22", 119 | "91.108.4.0/22", 120 | "109.239.140.0/24", 121 | "149.154.164.0/22", 122 | "91.108.56.0/23", 123 | "67.198.55.0/24", 124 | "149.154.168.0/22", 125 | "149.154.172.0/22" 126 | ], 127 | "outboundTag": "proxy" 128 | }, 129 | { 130 | "type": "field", 131 | "ip": [ 132 | "192.168.0.0/16", 133 | "10.0.0.0/8", 134 | "172.16.0.0/12", 135 | "127.0.0.0/8", 136 | "geoip:cn" 137 | ], 138 | "outboundTag": "direct" 139 | } 140 | ], 141 | "domainStrategy": "IPIfNonMatch" 142 | }, 143 | "strategy": "rules" 144 | } 145 | } 146 | -------------------------------------------------------------------------------- /websocket+Nginx+TLS/config_client_ver4.2.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "loglevel": "debug" 4 | }, 5 | "inbounds": [ 6 | { 7 | "port": 10086, 8 | "listen": "0.0.0.0", 9 | "tag": "socks-in", 10 | "protocol": "socks", 11 | "settings": { 12 | "auth": "noauth", 13 | "udp": false 14 | } 15 | }, 16 | { 17 | "port": 1087, 18 | "listen": "0.0.0.0", 19 | "tag": "http-in", 20 | "protocol": "http", 21 | "settings": {} 22 | } 23 | ], 24 | "outbounds": [ 25 | { 26 | "mux": { 27 | "concurrency": 32, 28 | "enabled": true 29 | }, 30 | "protocol": "vmess", 31 | "settings": { 32 | "vnext": [ 33 | { 34 | "users": [ 35 | { 36 | //注:填写uuid 37 | "id": "UUID", 38 | "alterId": 64, 39 | "security": "auto" 40 | } 41 | ], 42 | //注:填写域名、端口 43 | "address": "domain.Name", 44 | "port": 1234 45 | } 46 | ] 47 | }, 48 | "streamSettings": { 49 | "tlsSettings": { 50 | "allowInsecure": false 51 | }, 52 | "wsSettings": { 53 | "headers": { 54 | "User-Agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.4489.62 Safari/537.36", 55 | //注:填写对应头部 56 | "Host": "HOST", 57 | "Accept-Encoding": "gzip", 58 | "Pragma": "no-cache" 59 | }, 60 | //注:ws路径 61 | "path": "/PATH/" 62 | }, 63 | "network": "ws", 64 | "security": "tls" 65 | }, 66 | "tag": "proxy" 67 | }, 68 | { 69 | "protocol": "blackhole", 70 | "settings": {}, 71 | "tag": "blocked" 72 | }, 73 | { 74 | "protocol": "freedom", 75 | "settings": {}, 76 | "tag": "dicert" 77 | } 78 | ], 79 | "routing": { 80 | //注:全域名规则匹配 81 | "domainStrategy": "AsIs", 82 | "rules": [ 83 | { 84 | "type": "field", 85 | "domain": [ 86 | //注:填写对应域名和host 87 | "domain:domain.Name" 88 | ], 89 | "outboundTag": "dicert" 90 | }, 91 | { 92 | "type": "field", 93 | "inboundTag": [ 94 | "socks-in", 95 | "http-in" 96 | ], 97 | "outboundTag": "proxy" 98 | } 99 | ] 100 | }, 101 | "other": {} 102 | } 103 | 104 | -------------------------------------------------------------------------------- /websocket+Nginx+TLS/config_server.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "access": "/var/log/v2ray/access.log", 4 | "error": "/var/log/v2ray/error.log", 5 | //可能取值 "debug" "info" "warning" "error" 其中"debug"记录的数据最多,"error"记录的最少 "none"表示不记录任何内容 默认值为"warning" 6 | "loglevel": "debug" 7 | }, 8 | //注"policy"字段需要core≥3.1 9 | "policy": { 10 | "levels": { 11 | "0": { 12 | "uplinkOnly": 0, 13 | "downlinkOnly": 0, 14 | "connIdle": 150, 15 | "handshake": 4 16 | } 17 | } 18 | }, 19 | "inbound": { 20 | //默认值为"0.0.0.0" 21 | "listen": "127.0.0.1", 22 | "port": 10086, 23 | "protocol": "vmess", 24 | "settings": { 25 | "clients": [ 26 | { 27 | "id": "7f43b638-dc47-11e7-9296-cec278b6b50a", 28 | //"level"字段与"policy"字段中的"levels"字段中的对应,默认值:0,注:需要core≥3.1 29 | "level": 0, 30 | "alterId": 64 31 | } 32 | ] 33 | }, 34 | "streamSettings": { 35 | "network": "ws", 36 | "security": "auto", 37 | "wsSettings": { 38 | "path": "/PATH/", 39 | "headers": { 40 | "Host": "domain.Name" 41 | } 42 | } 43 | } 44 | }, 45 | "outbound": { 46 | "protocol": "freedom", 47 | "settings": { } 48 | }, 49 | "outboundDetour": [ 50 | { 51 | "protocol": "blackhole", 52 | "settings": { }, 53 | "tag": "blocked" 54 | } 55 | ], 56 | "routing": { 57 | "strategy": "rules", 58 | "settings": { 59 | "rules": [ 60 | { 61 | "type": "field", 62 | "ip": [ 63 | "0.0.0.0/8", 64 | "10.0.0.0/8", 65 | "100.64.0.0/10", 66 | "127.0.0.0/8", 67 | "169.254.0.0/16", 68 | "172.16.0.0/12", 69 | "192.0.0.0/24", 70 | "192.0.2.0/24", 71 | "192.168.0.0/16", 72 | "198.18.0.0/15", 73 | "198.51.100.0/24", 74 | "203.0.113.0/24", 75 | "::1/128", 76 | "fc00::/7", 77 | "fe80::/10" 78 | ], 79 | "outboundTag": "blocked" 80 | } 81 | ] 82 | } 83 | } 84 | } 85 | -------------------------------------------------------------------------------- /websocket+Nginx+TLS/config_server_ver4.2.json: -------------------------------------------------------------------------------- 1 | { 2 | "log": { 3 | "loglevel": "debug" 4 | }, 5 | "inbounds": [ 6 | { 7 | "port": 10086, 8 | "listen": "127.0.0.1", 9 | "tag": "vmess-in", 10 | "protocol": "vmess", 11 | "settings": { 12 | "clients": [ 13 | { 14 | //注:UUID 15 | "id": "UUID", 16 | "alterId": 64 17 | } 18 | ] 19 | }, 20 | "streamSettings": { 21 | "network": "ws", 22 | "wsSettings": { 23 | //注:ws路径 24 | "path": "/PATH/", 25 | "headers": { } 26 | } 27 | } 28 | } 29 | ], 30 | "outbounds": [ 31 | { 32 | "protocol": "freedom", 33 | "settings": { }, 34 | "tag": "direct" 35 | }, 36 | { 37 | "protocol": "blackhole", 38 | "settings": { }, 39 | "tag": "blocked" 40 | } 41 | ], 42 | "routing": { 43 | "domainStrategy": "AsIs", 44 | "rules": [ 45 | { 46 | "type": "field", 47 | "inboundTag": [ 48 | "vmess-in" 49 | ], 50 | "outboundTag": "direct" 51 | } 52 | ] 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /websocket+Nginx+TLS/nginx_Domain.Name.conf: -------------------------------------------------------------------------------- 1 | ## 2 | # You should look at the following URL's in order to grasp a solid understanding 3 | # of Nginx configuration files in order to fully unleash the power of Nginx. 4 | # https://www.nginx.com/resources/wiki/start/ 5 | # https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/ 6 | # https://wiki.debian.org/Nginx/DirectoryStructure 7 | # 8 | # In most cases, administrators will remove this file from sites-enabled/ and 9 | # leave it as reference inside of sites-available where it will continue to be 10 | # updated by the nginx packaging team. 11 | # 12 | # This file will automatically load configuration files provided by other 13 | # applications, such as Drupal or Wordpress. These applications will be made 14 | # available underneath a path with that package name, such as /drupal8. 15 | # 16 | # Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples. 17 | ## 18 | 19 | # Default server configuration 20 | # 21 | #####本配置使用正常环境 debian9_x64 nginx_1.10.3 openssl_1.1.0f v2ray_4.2 22 | #####兼容客户端Firefox 27, Chrome 30, IE 11 on Windows 7, Edge, Opera 17, Safari 9, Android 5.0, and Java 8 23 | #####注:切勿修改中的内容,但<该文件>与中的<参数重叠>那么会<遵从前者> 24 | 25 | server { 26 | # 禁用不需要的请求方式 以下只允许 get、post 27 | if ($request_method !~ ^(POST|GET)$) { 28 | return 444; 29 | } 30 | 31 | listen 127.0.0.1:80; 32 | server_name domain.Name; #注:填写自己的域名 33 | return 301 https://$host/; 34 | } 35 | 36 | upstream v2ray { 37 | server 127.0.0.1:10086; #注:v2ray后端监听地址、端口 38 | keepalive 2176; # 链接池空闲链接数 39 | } 40 | 41 | map $http_upgrade $connection_upgrade { 42 | default upgrade; 43 | '' close; 44 | } 45 | 46 | 47 | server { 48 | #要开启 HTTP/2 注意nginx版本 49 | #可以使用 nginx -V 检查 50 | listen 127.0.0.1:443 ssl http2 backlog=1024 so_keepalive=120s:60s:10 reuseport; # backlog是nginx 监听队列 默认是511 使用命令 ss -tnl查看(Send-Q); 51 | #设置编码 52 | charset utf-8; 53 | 54 | #证书配置 55 | ssl_certificate PATH; #注:填写自己证书路径 56 | ssl_certificate_key PATH; #注:填写密钥路径 57 | 58 | ssl_session_cache shared:SSL:50m; 59 | ssl_session_timeout 1d; 60 | ssl_session_tickets off; 61 | 62 | # https://nginx.org/en/docs/http/ngx_http_ssl_module.html 63 | ssl_protocols TLSv1.2; 64 | #openssl ciphers 65 | #注:懒人配置 https://mozilla.github.io/server-side-tls/ssl-config-generator/ 66 | ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256'; 67 | ssl_prefer_server_ciphers on; 68 | 69 | #安全设定 70 | #屏蔽请求类型 71 | if ($request_method !~ ^(POST|GET)$) { 72 | return 444; 73 | } 74 | add_header X-Frame-Options DENY; 75 | add_header X-XSS-Protection "1; mode=block"; 76 | add_header X-Content-Type-Options nosniff; 77 | # HSTS (ngx_http_headers_module is required) (15768000 seconds = 6 months) 78 | ###测试前请使用较少的时间 79 | ### https://www.nginx.com/blog/http-strict-transport-security-hsts-and-nginx/ 80 | add_header Strict-Transport-Security max-age=15 always; 81 | 82 | #openssl dhparam -out dhparam.pem 2048 83 | #openssl dhparam -out dhparam.pem 4096 84 | #ssl_dhparam /home/dhparam.pem; 85 | #ssl_ecdh_curve secp384r1; 86 | 87 | # OCSP Stapling --- 88 | # fetch OCSP records from URL in ssl_certificate and cache them 89 | #ssl_stapling on; 90 | #ssl_stapling_verify on; 91 | #resolver_timeout 10s; 92 | #resolver [去掉括号并将文字改成你希望的dns服务器ip地址] valid=300s; 93 | #范例 resolver 2.2.2.2 valid=300s; 94 | 95 | root /var/www/html; 96 | 97 | # Add index.php to the list if you are using PHP 98 | index index.html index.htm index.php ; 99 | 100 | server_name domain.Name; #注: 将domain.Name 替换成你的域名 101 | 102 | 103 | location /GLMzpX/ { #注:修改路径 104 | proxy_http_version 1.1; 105 | proxy_set_header Upgrade $http_upgrade; 106 | proxy_set_header Connection $connection_upgrade; #此处与对应 107 | proxy_set_header Host $http_host; 108 | 109 | # 向后端传递访客ip 110 | proxy_set_header X-Real-IP $remote_addr; 111 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 112 | 113 | 114 | sendfile on; 115 | tcp_nopush on; 116 | tcp_nodelay on; 117 | keepalive_requests 25600; 118 | keepalive_timeout 300 300; 119 | proxy_buffering off; 120 | proxy_buffer_size 8k; 121 | 122 | #后端错误重定向 123 | proxy_intercept_errors on; 124 | error_page 400 = URL; # url是一个网站地址。例如:https://www.xxxx.com/ 125 | if ($http_host = "domain.Name" ) { #注: 修改 domain.Name 为自己的域名 126 | #v2ray 后端 查看上面"upstream"字段 127 | proxy_pass http://v2ray; 128 | } 129 | } 130 | } 131 | 132 | -------------------------------------------------------------------------------- /websocket+TLS/config_client.json: -------------------------------------------------------------------------------- 1 | { 2 | "outbound": { 3 | "streamSettings": { 4 | "network": "ws", 5 | "kcpSettings": null, 6 | "wsSettings": { 7 | "headers": { 8 | "host": "example.domain" 9 | }, 10 | "path": "" 11 | }, 12 | "tcpSettings": null, 13 | "tlsSettings": {}, 14 | "security": "tls" 15 | }, 16 | "tag": "agentout", 17 | "protocol": "vmess", 18 | "mux": { 19 | "enabled": true 20 | }, 21 | "settings": { 22 | "vnext": [ 23 | { 24 | "users": [ 25 | { 26 | "alterId": 100, 27 | "security": "aes-128-gcm", 28 | "id": "0cdf8a45-303d-4fed-9780-29aa7f54175e" 29 | } 30 | ], 31 | "port": 443, 32 | "address": "example.domain" 33 | } 34 | ] 35 | } 36 | }, 37 | "log": { 38 | "access": "", 39 | "loglevel": "info", 40 | "error": "" 41 | }, 42 | "outboundDetour": [ 43 | { 44 | "tag": "direct", 45 | "protocol": "freedom", 46 | "settings": { 47 | "response": null 48 | } 49 | }, 50 | { 51 | "tag": "blockout", 52 | "protocol": "blackhole", 53 | "settings": { 54 | "response": { 55 | "type": "http" 56 | } 57 | } 58 | } 59 | ], 60 | "inbound": { 61 | "streamSettings": null, 62 | "settings": { 63 | "ip": "127.0.0.1", 64 | "udp": true, 65 | "clients": null, 66 | "auth": "noauth" 67 | }, 68 | "protocol": "socks", 69 | "port": 1080, 70 | "listen": "0.0.0.0" 71 | }, 72 | "inboundDetour": null, 73 | "routing": { 74 | "settings": { 75 | "rules": [ 76 | { 77 | "ip": [ 78 | "0.0.0.0/8", 79 | "10.0.0.0/8", 80 | "100.64.0.0/10", 81 | "127.0.0.0/8", 82 | "169.254.0.0/16", 83 | "172.16.0.0/12", 84 | "192.0.0.0/24", 85 | "192.0.2.0/24", 86 | "192.168.0.0/16", 87 | "198.18.0.0/15", 88 | "198.51.100.0/24", 89 | "203.0.113.0/24", 90 | "::1/128", 91 | "fc00::/7", 92 | "fe80::/10" 93 | ], 94 | "domain": null, 95 | "type": "field", 96 | "port": null, 97 | "outboundTag": "direct" 98 | } 99 | ], 100 | "domainStrategy": "IPIfNonMatch" 101 | }, 102 | "strategy": "rules" 103 | }, 104 | "dns": { 105 | "servers": [ 106 | "8.8.8.8", 107 | "8.8.4.4", 108 | "localhost" 109 | ] 110 | } 111 | } 112 | -------------------------------------------------------------------------------- /websocket+TLS/config_server.json: -------------------------------------------------------------------------------- 1 | { 2 | "outbound": { 3 | "streamSettings": null, 4 | "tag": null, 5 | "protocol": "freedom", 6 | "mux": null, 7 | "settings": null 8 | }, 9 | "log": { 10 | "access": "/var/log/v2ray/access.log", 11 | "loglevel": "error", 12 | "error": "/var/log/v2ray/error.log" 13 | }, 14 | "inboundDetour": null, 15 | "inbound": { 16 | "streamSettings": { 17 | "network": "ws", 18 | "kcpSettings": null, 19 | "wsSettings": { 20 | "headers": { 21 | "host": "example.domain" 22 | }, 23 | "path": "" 24 | }, 25 | "tcpSettings": null, 26 | "tlsSettings": { 27 | "certificates": [ 28 | { 29 | "keyFile": "/path/to/example.domain.key", 30 | "certificateFile": "/path/to/example.domain/fullchain.cer" 31 | } 32 | ] 33 | }, 34 | "security": "tls" 35 | }, 36 | "listen": null, 37 | "protocol": "vmess", 38 | "port": 443, 39 | "settings": { 40 | "ip": null, 41 | "udp": true, 42 | "clients": [ 43 | { 44 | "alterId": 100, 45 | "security": "aes-128-gcm", 46 | "id": "0cdf8a45-303d-4fed-9780-29aa7f54175e" 47 | } 48 | ], 49 | "auth": null 50 | } 51 | }, 52 | "outboundDetour": [ 53 | { 54 | "tag": "blocked", 55 | "protocol": "blackhole", 56 | "settings": null 57 | } 58 | ], 59 | "routing": { 60 | "strategy": "rules", 61 | "settings": { 62 | "rules": [ 63 | { 64 | "ip": [ 65 | "0.0.0.0/8", 66 | "10.0.0.0/8", 67 | "100.64.0.0/10", 68 | "127.0.0.0/8", 69 | "169.254.0.0/16", 70 | "172.16.0.0/12", 71 | "192.0.0.0/24", 72 | "192.0.2.0/24", 73 | "192.168.0.0/16", 74 | "198.18.0.0/15", 75 | "198.51.100.0/24", 76 | "203.0.113.0/24", 77 | "::1/128", 78 | "fc00::/7", 79 | "fe80::/10" 80 | ], 81 | "domain": null, 82 | "type": "field", 83 | "port": null, 84 | "outboundTag": "blocked" 85 | } 86 | ], 87 | "domainStrategy": null 88 | } 89 | }, 90 | "dns": null 91 | } -------------------------------------------------------------------------------- /websocket/config_client.json: -------------------------------------------------------------------------------- 1 | { 2 | "outbound": { 3 | "streamSettings": { 4 | "network": "ws", 5 | "kcpSettings": null, 6 | "wsSettings": { 7 | "headers": { 8 | "host": "example.domain" 9 | }, 10 | "path": "" 11 | }, 12 | "tcpSettings": null, 13 | "tlsSettings": {}, 14 | "security": "" 15 | }, 16 | "tag": "agentout", 17 | "protocol": "vmess", 18 | "mux": { 19 | "enabled": true 20 | }, 21 | "settings": { 22 | "vnext": [ 23 | { 24 | "users": [ 25 | { 26 | "alterId": 100, 27 | "security": "aes-128-gcm", 28 | "id": "e2b39869-7e9e-411b-a561-00904419bed9" 29 | } 30 | ], 31 | "port": 1234, 32 | "address": "Your_IP_Address" 33 | } 34 | ] 35 | } 36 | }, 37 | "log": { 38 | "access": "", 39 | "loglevel": "info", 40 | "error": "" 41 | }, 42 | "outboundDetour": [ 43 | { 44 | "tag": "direct", 45 | "protocol": "freedom", 46 | "settings": { 47 | "response": null 48 | } 49 | }, 50 | { 51 | "tag": "blockout", 52 | "protocol": "blackhole", 53 | "settings": { 54 | "response": { 55 | "type": "http" 56 | } 57 | } 58 | } 59 | ], 60 | "inbound": { 61 | "streamSettings": null, 62 | "settings": { 63 | "ip": "127.0.0.1", 64 | "udp": true, 65 | "clients": null, 66 | "auth": "noauth" 67 | }, 68 | "protocol": "socks", 69 | "port": 1080, 70 | "listen": "0.0.0.0" 71 | }, 72 | "inboundDetour": null, 73 | "routing": { 74 | "settings": { 75 | "rules": [ 76 | { 77 | "ip": [ 78 | "0.0.0.0/8", 79 | "10.0.0.0/8", 80 | "100.64.0.0/10", 81 | "127.0.0.0/8", 82 | "169.254.0.0/16", 83 | "172.16.0.0/12", 84 | "192.0.0.0/24", 85 | "192.0.2.0/24", 86 | "192.168.0.0/16", 87 | "198.18.0.0/15", 88 | "198.51.100.0/24", 89 | "203.0.113.0/24", 90 | "::1/128", 91 | "fc00::/7", 92 | "fe80::/10" 93 | ], 94 | "domain": null, 95 | "type": "field", 96 | "port": null, 97 | "outboundTag": "direct" 98 | } 99 | ], 100 | "domainStrategy": "IPIfNonMatch" 101 | }, 102 | "strategy": "rules" 103 | }, 104 | "dns": { 105 | "servers": [ 106 | "8.8.8.8", 107 | "8.8.4.4", 108 | "localhost" 109 | ] 110 | } 111 | } -------------------------------------------------------------------------------- /websocket/config_server.json: -------------------------------------------------------------------------------- 1 | { 2 | "outbound": { 3 | "streamSettings": null, 4 | "tag": null, 5 | "protocol": "freedom", 6 | "mux": null, 7 | "settings": null 8 | }, 9 | "log": { 10 | "access": "/var/log/v2ray/access.log", 11 | "loglevel": "info", 12 | "error": "/var/log/v2ray/error.log" 13 | }, 14 | "inboundDetour": null, 15 | "inbound": { 16 | "streamSettings": { 17 | "network": "ws", 18 | "kcpSettings": null, 19 | "wsSettings": { 20 | "headers": { 21 | "host": "example.domain" 22 | }, 23 | "path": "" 24 | }, 25 | "tcpSettings": null, 26 | "tlsSettings": {}, 27 | "security": "" 28 | }, 29 | "listen": null, 30 | "protocol": "vmess", 31 | "port": 1234, 32 | "settings": { 33 | "ip": null, 34 | "udp": true, 35 | "clients": [ 36 | { 37 | "alterId": 100, 38 | "security": "aes-128-gcm", 39 | "id": "e2b39869-7e9e-411b-a561-00904419bed9" 40 | } 41 | ], 42 | "auth": null 43 | } 44 | }, 45 | "outboundDetour": [ 46 | { 47 | "tag": "blocked", 48 | "protocol": "blackhole", 49 | "settings": null 50 | } 51 | ], 52 | "routing": { 53 | "strategy": "rules", 54 | "settings": { 55 | "rules": [ 56 | { 57 | "ip": [ 58 | "0.0.0.0/8", 59 | "10.0.0.0/8", 60 | "100.64.0.0/10", 61 | "127.0.0.0/8", 62 | "169.254.0.0/16", 63 | "172.16.0.0/12", 64 | "192.0.0.0/24", 65 | "192.0.2.0/24", 66 | "192.168.0.0/16", 67 | "198.18.0.0/15", 68 | "198.51.100.0/24", 69 | "203.0.113.0/24", 70 | "::1/128", 71 | "fc00::/7", 72 | "fe80::/10" 73 | ], 74 | "domain": null, 75 | "type": "field", 76 | "port": null, 77 | "outboundTag": "blocked" 78 | } 79 | ], 80 | "domainStrategy": null 81 | } 82 | }, 83 | "dns": null 84 | } --------------------------------------------------------------------------------