From 647dea28ad2adea1b7bd187d0ed42eef98793f75 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 28 Nov 2017 23:11:54 +0800 Subject: [PATCH] beautified --- README.md | 29 +-- TCP/config_client.json | 197 ++++++++-------- TCP/config_server.json | 146 ++++++------ http/config_client.json | 279 +++++++++++------------ http/config_server.json | 238 ++++++++++--------- mKcp 伪装微信视频流量/config_client.json | 223 +++++++++--------- mKcp 伪装微信视频流量/config_server.json | 176 +++++++------- mKcp/config_client.json | 225 +++++++++--------- mKcp/config_server.json | 176 +++++++------- websocket+TLS/config_client.json | 207 ++++++++--------- websocket+TLS/config_server.json | 188 ++++++++------- websocket+caddy+tls/config_client.json | 202 ++++++++-------- websocket+caddy+tls/config_server.json | 165 +++++++------- websocket/config_client.json | 207 ++++++++--------- websocket/config_server.json | 158 ++++++------- 15 files changed, 1362 insertions(+), 1454 deletions(-) diff --git a/README.md b/README.md index 6d9b8de..39db056 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,16 @@ # vTemplate -这是一个社会实验性质的项目,提供数种常见的v2ray配置模板 ------------------------------------ -这两天雨落无声大佬的[v2ray.fun](https://github.com/FunctionClub/v2ray.fun)宣布弃坑,再次引发了v2ray水群里大佬关于一键脚本和伸手党的讨论。在讨论过程中,提出了一个有趣的命题: - -一键脚本是否会助长伸手之风?如果会,我们不提供一键脚本而只提供模板的话,情况是否又会好些? - -于是,这个项目就诞生了。在这里收录一些常用的v2ray配置模板,这些配置多由v2ray.fun生成,在这基础上加上少许改动。 -在你套用模板之前,请先仔细阅读v2ray官方文档,如果可能,尽量尝试不借助模板自己编写配置文件,以加深对配置的理解。 - -如果你在配置过程中遇到问题,请再看一遍文档,或是在Google搜索以求自己解决问题。当你确认你的问题无法独立解决时,你可以在v2ray的telegram群组里求助,或是在v2ray官方项目中提交issue。 -遇事不决,请RTFM/STFW。 -玩的愉快。 - -感谢Project V的所有开发人员,以及v2ray.fun的作者雨落无声。 + +## 这是一个社会实验性质的项目,提供数种常见的v2ray配置模板 + +这两天雨落无声大佬的[v2ray.fun](https://github.com/FunctionClub/v2ray.fun)宣布弃坑,再次引发了v2ray水群里大佬关于一键脚本和伸手党的讨论。在讨论过程中,提出了一个有趣的命题: + +一键脚本是否会助长伸手之风?如果会,我们不提供一键脚本而只提供模板的话,情况是否又会好些? + +于是,这个项目就诞生了。在这里收录一些常用的v2ray配置模板,这些配置多由v2ray.fun生成,在这基础上加上少许改动。
+在你套用模板之前,请先仔细阅读v2ray官方文档,如果可能,尽量尝试不借助模板自己编写配置文件,以加深对配置的理解。 + +如果你在配置过程中遇到问题,请再看一遍文档,或是在Google搜索以求自己解决问题。当你确认你的问题无法独立解决时,你可以在v2ray的telegram群组里求助,或是在v2ray官方项目中提交issue。
+遇事不决,请RTFM/STFW。
+玩的愉快。 + +感谢Project V的所有开发人员,以及v2ray.fun的作者雨落无声。 diff --git a/TCP/config_client.json b/TCP/config_client.json index c76ec15..4631914 100644 --- a/TCP/config_client.json +++ b/TCP/config_client.json @@ -1,106 +1,99 @@ { - "outbound": { - "streamSettings": { - "network": "tcp", - "kcpSettings": null, - "wsSettings": null, - "tcpSettings": null, - "tlsSettings": {}, - "security": "" - }, - "tag": "agentout", - "protocol": "vmess", - "mux": { - "enabled": true - }, - "settings": { - "vnext": [ - { - "users": [ - { - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" + "outbound": { + "streamSettings": { + "network": "tcp", + "kcpSettings": null, + "wsSettings": null, + "tcpSettings": null, + "tlsSettings": {}, + "security": "" + }, + "tag": "agentout", + "protocol": "vmess", + "mux": { + "enabled": true + }, + "settings": { + "vnext": [{ + "users": [{ + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + }], + "port": 1234, + "address": "Your_IP_Address" + }] + } + }, + "log": { + "access": "", + "loglevel": "info", + "error": "" + }, + "outboundDetour": [{ + "tag": "direct", + "protocol": "freedom", + "settings": { + "response": null } - ], - "port": 1234, - "address": "Your_IP_Address" - } - ] - } - }, - "log": { - "access": "", - "loglevel": "info", - "error": "" - }, - "outboundDetour": [ - { - "tag": "direct", - "protocol": "freedom", - "settings": { - "response": null - } - }, - { - "tag": "blockout", - "protocol": "blackhole", - "settings": { - "response": { - "type": "http" - } - } - } - ], - "inbound": { - "streamSettings": null, - "settings": { - "ip": "127.0.0.1", - "udp": true, - "clients": null, - "auth": "noauth" - }, - "protocol": "socks", - "port": 1080, - "listen": "0.0.0.0" - }, - "inboundDetour": null, - "routing": { - "settings": { - "rules": [ + }, { - "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" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "direct" + "tag": "blockout", + "protocol": "blackhole", + "settings": { + "response": { + "type": "http" + } + } } - ], - "domainStrategy": "IPIfNonMatch" - }, - "strategy": "rules" - }, - "dns": { - "servers": [ - "8.8.8.8", - "8.8.4.4", - "localhost" - ] - } -} \ No newline at end of file + ], + "inbound": { + "streamSettings": null, + "settings": { + "ip": "127.0.0.1", + "udp": true, + "clients": null, + "auth": "noauth" + }, + "protocol": "socks", + "port": 1080, + "listen": "0.0.0.0" + }, + "inboundDetour": null, + "routing": { + "settings": { + "rules": [{ + "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" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "direct" + }], + "domainStrategy": "IPIfNonMatch" + }, + "strategy": "rules" + }, + "dns": { + "servers": [ + "8.8.8.8", + "8.8.4.4", + "localhost" + ] + } +} diff --git a/TCP/config_server.json b/TCP/config_server.json index 1a00eb3..ff95a6d 100644 --- a/TCP/config_server.json +++ b/TCP/config_server.json @@ -1,79 +1,73 @@ { - "outbound": { - "streamSettings": null, - "tag": null, - "protocol": "freedom", - "mux": null, - "settings": null - }, - "log": { - "access": "/var/log/v2ray/access.log", - "loglevel": "info", - "error": "/var/log/v2ray/error.log" - }, - "inboundDetour": null, - "inbound": { - "streamSettings": { - "network": "tcp", - "kcpSettings": null, - "wsSettings": null, - "tcpSettings": null, - "tlsSettings": {}, - "security": "" - }, - "listen": null, - "protocol": "vmess", - "port": 1234, - "settings": { - "ip": null, - "udp": true, - "clients": [ - { - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" + "outbound": { + "streamSettings": null, + "tag": null, + "protocol": "freedom", + "mux": null, + "settings": null + }, + "log": { + "access": "/var/log/v2ray/access.log", + "loglevel": "info", + "error": "/var/log/v2ray/error.log" + }, + "inboundDetour": null, + "inbound": { + "streamSettings": { + "network": "tcp", + "kcpSettings": null, + "wsSettings": null, + "tcpSettings": null, + "tlsSettings": {}, + "security": "" + }, + "listen": null, + "protocol": "vmess", + "port": 1234, + "settings": { + "ip": null, + "udp": true, + "clients": [{ + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + }], + "auth": null } - ], - "auth": null - } - }, - "outboundDetour": [ - { - "tag": "blocked", - "protocol": "blackhole", - "settings": null - } - ], - "routing": { - "strategy": "rules", - "settings": { - "rules": [ - { - "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" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "blocked" + }, + "outboundDetour": [{ + "tag": "blocked", + "protocol": "blackhole", + "settings": null + }], + "routing": { + "strategy": "rules", + "settings": { + "rules": [{ + "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" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "blocked" + }], + "domainStrategy": null } - ], - "domainStrategy": null - } - }, - "dns": null -} \ No newline at end of file + }, + "dns": null +} diff --git a/http/config_client.json b/http/config_client.json index e49f60c..308be18 100644 --- a/http/config_client.json +++ b/http/config_client.json @@ -1,149 +1,142 @@ { - "outbound": { - "streamSettings": { - "network": "tcp", - "kcpSettings": null, - "wsSettings": null, - "tcpSettings": { - "header": { - "type": "http", - "request": { - "path": [ - "/" - ], - "version": "1.1", - "method": "GET", - "headers": { - "Host": "cloudflare.com", - "User-Agent": [ - "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36", - "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" - ], - "Connection": [ - "keep-alive" - ], - "Pragma": "no-cache", - "Accept-Encoding": [ - "gzip, deflate" - ] + "outbound": { + "streamSettings": { + "network": "tcp", + "kcpSettings": null, + "wsSettings": null, + "tcpSettings": { + "header": { + "type": "http", + "request": { + "path": [ + "/" + ], + "version": "1.1", + "method": "GET", + "headers": { + "Host": "cloudflare.com", + "User-Agent": [ + "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36", + "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" + ], + "Connection": [ + "keep-alive" + ], + "Pragma": "no-cache", + "Accept-Encoding": [ + "gzip, deflate" + ] + } + }, + "response": { + "status": "200", + "headers": { + "Transfer-Encoding": [ + "chunked" + ], + "Connection": [ + "keep-alive" + ], + "Content-Type": [ + "application/octet-stream", + "video/mpeg" + ], + "Pragma": "no-cache" + }, + "reason": "OK", + "version": "1.1" + } + } + }, + "tlsSettings": {}, + "security": "" + }, + "tag": "agentout", + "protocol": "vmess", + "mux": { + "enabled": true + }, + "settings": { + "vnext": [{ + "users": [{ + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + }], + "port": 1234, + "address": "Your_IP_Address" + }] + } + }, + "log": { + "access": "", + "loglevel": "info", + "error": "" + }, + "outboundDetour": [{ + "tag": "direct", + "protocol": "freedom", + "settings": { + "response": null } - }, - "response": { - "status": "200", - "headers": { - "Transfer-Encoding": [ - "chunked" - ], - "Connection": [ - "keep-alive" - ], - "Content-Type": [ - "application/octet-stream", - "video/mpeg" - ], - "Pragma": "no-cache" - }, - "reason": "OK", - "version": "1.1" - } - } - }, - "tlsSettings": {}, - "security": "" - }, - "tag": "agentout", - "protocol": "vmess", - "mux": { - "enabled": true - }, - "settings": { - "vnext": [ + }, { - "users": [ - { - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" + "tag": "blockout", + "protocol": "blackhole", + "settings": { + "response": { + "type": "http" + } } - ], - "port": 1234, - "address": "Your_IP_Address" } - ] + ], + "inbound": { + "streamSettings": null, + "settings": { + "ip": "127.0.0.1", + "udp": true, + "clients": null, + "auth": "noauth" + }, + "protocol": "socks", + "port": 1080, + "listen": "0.0.0.0" + }, + "inboundDetour": null, + "routing": { + "settings": { + "rules": [{ + "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" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "direct" + }], + "domainStrategy": "IPIfNonMatch" + }, + "strategy": "rules" + }, + "dns": { + "servers": [ + "8.8.8.8", + "8.8.4.4", + "localhost" + ] } - }, - "log": { - "access": "", - "loglevel": "info", - "error": "" - }, - "outboundDetour": [ - { - "tag": "direct", - "protocol": "freedom", - "settings": { - "response": null - } - }, - { - "tag": "blockout", - "protocol": "blackhole", - "settings": { - "response": { - "type": "http" - } - } - } - ], - "inbound": { - "streamSettings": null, - "settings": { - "ip": "127.0.0.1", - "udp": true, - "clients": null, - "auth": "noauth" - }, - "protocol": "socks", - "port": 1080, - "listen": "0.0.0.0" - }, - "inboundDetour": null, - "routing": { - "settings": { - "rules": [ - { - "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" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "direct" - } - ], - "domainStrategy": "IPIfNonMatch" - }, - "strategy": "rules" - }, - "dns": { - "servers": [ - "8.8.8.8", - "8.8.4.4", - "localhost" - ] - } -} \ No newline at end of file +} diff --git a/http/config_server.json b/http/config_server.json index 5d3a75f..4ee60de 100644 --- a/http/config_server.json +++ b/http/config_server.json @@ -1,123 +1,117 @@ { - "outbound": { - "streamSettings": null, - "tag": null, - "protocol": "freedom", - "mux": null, - "settings": null - }, - "log": { - "access": "/var/log/v2ray/access.log", - "loglevel": "info", - "error": "/var/log/v2ray/error.log" - }, - "outboundDetour": [ - { - "tag": "blocked", - "protocol": "blackhole", - "settings": null - } - ], - "inbound": { - "streamSettings": { - "network": "tcp", - "kcpSettings": null, - "wsSettings": null, - "tcpSettings": { - "header": { - "request": { - "path": [ - "/" - ], - "version": "1.1", - "method": "GET", - "headers": { - "Host": "cloudflare.com", - "Connection": [ - "keep-alive" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Pragma": "no-cache", - "User-Agent": [ - "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36", - "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" - ] - } - }, - "type": "http", - "response": { - "status": "200", - "headers": { - "Transfer-Encoding": [ - "chunked" - ], - "Connection": [ - "keep-alive" - ], - "Content-Type": [ - "application/octet-stream", - "video/mpeg" - ], - "Pragma": "no-cache" - }, - "reason": "OK", - "version": "1.1" - } - }, - "connectionReuse": true - }, - "tlsSettings": {}, - "security": "" - }, - "settings": { - "ip": null, - "udp": true, - "clients": [ - { - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" - } - ], - "auth": null - }, - "protocol": "vmess", - "port": 1234, - "listen": null - }, - "inboundDetour": null, - "routing": { - "settings": { - "rules": [ - { - "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" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "blocked" - } - ], - "domainStrategy": null - }, - "strategy": "rules" - }, - "dns": null -} \ No newline at end of file + "outbound": { + "streamSettings": null, + "tag": null, + "protocol": "freedom", + "mux": null, + "settings": null + }, + "log": { + "access": "/var/log/v2ray/access.log", + "loglevel": "info", + "error": "/var/log/v2ray/error.log" + }, + "outboundDetour": [{ + "tag": "blocked", + "protocol": "blackhole", + "settings": null + }], + "inbound": { + "streamSettings": { + "network": "tcp", + "kcpSettings": null, + "wsSettings": null, + "tcpSettings": { + "header": { + "request": { + "path": [ + "/" + ], + "version": "1.1", + "method": "GET", + "headers": { + "Host": "cloudflare.com", + "Connection": [ + "keep-alive" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Pragma": "no-cache", + "User-Agent": [ + "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36", + "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" + ] + } + }, + "type": "http", + "response": { + "status": "200", + "headers": { + "Transfer-Encoding": [ + "chunked" + ], + "Connection": [ + "keep-alive" + ], + "Content-Type": [ + "application/octet-stream", + "video/mpeg" + ], + "Pragma": "no-cache" + }, + "reason": "OK", + "version": "1.1" + } + }, + "connectionReuse": true + }, + "tlsSettings": {}, + "security": "" + }, + "settings": { + "ip": null, + "udp": true, + "clients": [{ + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + }], + "auth": null + }, + "protocol": "vmess", + "port": 1234, + "listen": null + }, + "inboundDetour": null, + "routing": { + "settings": { + "rules": [{ + "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" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "blocked" + }], + "domainStrategy": null + }, + "strategy": "rules" + }, + "dns": null +} diff --git a/mKcp 伪装微信视频流量/config_client.json b/mKcp 伪装微信视频流量/config_client.json index 91e6dbb..c0c5db1 100644 --- a/mKcp 伪装微信视频流量/config_client.json +++ b/mKcp 伪装微信视频流量/config_client.json @@ -1,119 +1,112 @@ { - "outbound": { - "streamSettings": { - "network": "kcp", - "kcpSettings": { - "uplinkCapacity": 100, - "downlinkCapacity": 100, - "readBufferSize": 2, - "mtu": 1350, - "header": { - "type": "wechat-video", - "request": null, - "response": null - }, - "tti": 50, - "congestion": false, - "writeBufferSize": 2 - }, - "wsSettings": null, - "tcpSettings": null, - "tlsSettings": {}, - "security": "" - }, - "tag": "agentout", - "protocol": "vmess", - "mux": { - "enabled": true - }, - "settings": { - "vnext": [ - { - "users": [ - { - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" + "outbound": { + "streamSettings": { + "network": "kcp", + "kcpSettings": { + "uplinkCapacity": 100, + "downlinkCapacity": 100, + "readBufferSize": 2, + "mtu": 1350, + "header": { + "type": "wechat-video", + "request": null, + "response": null + }, + "tti": 50, + "congestion": false, + "writeBufferSize": 2 + }, + "wsSettings": null, + "tcpSettings": null, + "tlsSettings": {}, + "security": "" + }, + "tag": "agentout", + "protocol": "vmess", + "mux": { + "enabled": true + }, + "settings": { + "vnext": [{ + "users": [{ + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + }], + "port": 1234, + "address": "Your_IP_Address" + }] + } + }, + "log": { + "access": "", + "loglevel": "info", + "error": "" + }, + "outboundDetour": [{ + "tag": "direct", + "protocol": "freedom", + "settings": { + "response": null } - ], - "port": 1234, - "address": "Your_IP_Address" - } - ] - } - }, - "log": { - "access": "", - "loglevel": "info", - "error": "" - }, - "outboundDetour": [ - { - "tag": "direct", - "protocol": "freedom", - "settings": { - "response": null - } - }, - { - "tag": "blockout", - "protocol": "blackhole", - "settings": { - "response": { - "type": "http" - } - } - } - ], - "inbound": { - "streamSettings": null, - "settings": { - "ip": "127.0.0.1", - "udp": true, - "clients": null, - "auth": "noauth" - }, - "protocol": "socks", - "port": 1080, - "listen": "0.0.0.0" - }, - "inboundDetour": null, - "routing": { - "settings": { - "rules": [ + }, { - "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" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "direct" + "tag": "blockout", + "protocol": "blackhole", + "settings": { + "response": { + "type": "http" + } + } } - ], - "domainStrategy": "IPIfNonMatch" - }, - "strategy": "rules" - }, - "dns": { - "servers": [ - "8.8.8.8", - "8.8.4.4", - "localhost" - ] - } -} \ No newline at end of file + ], + "inbound": { + "streamSettings": null, + "settings": { + "ip": "127.0.0.1", + "udp": true, + "clients": null, + "auth": "noauth" + }, + "protocol": "socks", + "port": 1080, + "listen": "0.0.0.0" + }, + "inboundDetour": null, + "routing": { + "settings": { + "rules": [{ + "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" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "direct" + }], + "domainStrategy": "IPIfNonMatch" + }, + "strategy": "rules" + }, + "dns": { + "servers": [ + "8.8.8.8", + "8.8.4.4", + "localhost" + ] + } +} diff --git a/mKcp 伪装微信视频流量/config_server.json b/mKcp 伪装微信视频流量/config_server.json index b169559..bde7655 100644 --- a/mKcp 伪装微信视频流量/config_server.json +++ b/mKcp 伪装微信视频流量/config_server.json @@ -1,92 +1,86 @@ { - "outbound": { - "streamSettings": null, - "tag": null, - "protocol": "freedom", - "mux": null, - "settings": null - }, - "log": { - "access": "/var/log/v2ray/access.log", - "loglevel": "info", - "error": "/var/log/v2ray/error.log" - }, - "outboundDetour": [ - { - "tag": "blocked", - "protocol": "blackhole", - "settings": null - } - ], - "inbound": { - "streamSettings": { - "network": "kcp", - "kcpSettings": { - "uplinkCapacity": 100, - "downlinkCapacity": 100, - "readBufferSize": 2, - "mtu": 1350, - "header": { - "request": null, - "type": "wechat-video", - "response": null - }, - "tti": 50, - "congestion": false, - "writeBufferSize": 2 - }, - "wsSettings": null, - "tcpSettings": null, - "tlsSettings": {}, - "security": "" - }, - "settings": { - "ip": null, - "udp": true, - "clients": [ - { - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" - } - ], - "auth": null - }, - "protocol": "vmess", - "port": 1234, - "listen": null - }, - "inboundDetour": null, - "routing": { - "settings": { - "rules": [ - { - "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" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "blocked" - } - ], - "domainStrategy": null - }, - "strategy": "rules" - }, - "dns": null -} \ No newline at end of file + "outbound": { + "streamSettings": null, + "tag": null, + "protocol": "freedom", + "mux": null, + "settings": null + }, + "log": { + "access": "/var/log/v2ray/access.log", + "loglevel": "info", + "error": "/var/log/v2ray/error.log" + }, + "outboundDetour": [{ + "tag": "blocked", + "protocol": "blackhole", + "settings": null + }], + "inbound": { + "streamSettings": { + "network": "kcp", + "kcpSettings": { + "uplinkCapacity": 100, + "downlinkCapacity": 100, + "readBufferSize": 2, + "mtu": 1350, + "header": { + "request": null, + "type": "wechat-video", + "response": null + }, + "tti": 50, + "congestion": false, + "writeBufferSize": 2 + }, + "wsSettings": null, + "tcpSettings": null, + "tlsSettings": {}, + "security": "" + }, + "settings": { + "ip": null, + "udp": true, + "clients": [{ + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + }], + "auth": null + }, + "protocol": "vmess", + "port": 1234, + "listen": null + }, + "inboundDetour": null, + "routing": { + "settings": { + "rules": [{ + "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" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "blocked" + }], + "domainStrategy": null + }, + "strategy": "rules" + }, + "dns": null +} diff --git a/mKcp/config_client.json b/mKcp/config_client.json index 2f0e3bb..05ac94a 100644 --- a/mKcp/config_client.json +++ b/mKcp/config_client.json @@ -1,119 +1,112 @@ -{ - "outbound": { - "streamSettings": { - "network": "kcp", - "kcpSettings": { - "uplinkCapacity": 100, - "downlinkCapacity": 100, - "readBufferSize": 2, - "mtu": 1350, - "header": { - "type": "none", - "request": null, - "response": null - }, - "tti": 50, - "congestion": false, - "writeBufferSize": 2 - }, - "wsSettings": null, - "tcpSettings": null, - "tlsSettings": {}, - "security": "" - }, - "tag": "agentout", - "protocol": "vmess", - "mux": { - "enabled": true - }, - "settings": { - "vnext": [ - { - "users": [ - { - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" +`{ + "outbound": { + "streamSettings": { + "network": "kcp", + "kcpSettings": { + "uplinkCapacity": 100, + "downlinkCapacity": 100, + "readBufferSize": 2, + "mtu": 1350, + "header": { + "type": "none", + "request": null, + "response": null + }, + "tti": 50, + "congestion": false, + "writeBufferSize": 2 + }, + "wsSettings": null, + "tcpSettings": null, + "tlsSettings": {}, + "security": "" + }, + "tag": "agentout", + "protocol": "vmess", + "mux": { + "enabled": true + }, + "settings": { + "vnext": [{ + "users": [{ + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + }], + "port": 1234, + "address": "Your_IP_Address" + }] + } + }, + "log": { + "access": "", + "loglevel": "info", + "error": "" + }, + "outboundDetour": [{ + "tag": "direct", + "protocol": "freedom", + "settings": { + "response": null } - ], - "port": 1234, - "address": "Your_IP_Address" - } - ] - } - }, - "log": { - "access": "", - "loglevel": "info", - "error": "" - }, - "outboundDetour": [ - { - "tag": "direct", - "protocol": "freedom", - "settings": { - "response": null - } - }, - { - "tag": "blockout", - "protocol": "blackhole", - "settings": { - "response": { - "type": "http" - } - } - } - ], - "inbound": { - "streamSettings": null, - "settings": { - "ip": "127.0.0.1", - "udp": true, - "clients": null, - "auth": "noauth" - }, - "protocol": "socks", - "port": 1080, - "listen": "0.0.0.0" - }, - "inboundDetour": null, - "routing": { - "settings": { - "rules": [ + }, { - "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" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "direct" + "tag": "blockout", + "protocol": "blackhole", + "settings": { + "response": { + "type": "http" + } + } } - ], - "domainStrategy": "IPIfNonMatch" - }, - "strategy": "rules" - }, - "dns": { - "servers": [ - "8.8.8.8", - "8.8.4.4", - "localhost" - ] - } -} \ No newline at end of file + ], + "inbound": { + "streamSettings": null, + "settings": { + "ip": "127.0.0.1", + "udp": true, + "clients": null, + "auth": "noauth" + }, + "protocol": "socks", + "port": 1080, + "listen": "0.0.0.0" + }, + "inboundDetour": null, + "routing": { + "settings": { + "rules": [{ + "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" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "direct" + }], + "domainStrategy": "IPIfNonMatch" + }, + "strategy": "rules" + }, + "dns": { + "servers": [ + "8.8.8.8", + "8.8.4.4", + "localhost" + ] + } +}` diff --git a/mKcp/config_server.json b/mKcp/config_server.json index 96cd7cd..ba6e1aa 100644 --- a/mKcp/config_server.json +++ b/mKcp/config_server.json @@ -1,92 +1,86 @@ { - "outbound": { - "streamSettings": null, - "tag": null, - "protocol": "freedom", - "mux": null, - "settings": null - }, - "log": { - "access": "/var/log/v2ray/access.log", - "loglevel": "info", - "error": "/var/log/v2ray/error.log" - }, - "outboundDetour": [ - { - "tag": "blocked", - "protocol": "blackhole", - "settings": null - } - ], - "inbound": { - "streamSettings": { - "network": "kcp", - "kcpSettings": { - "uplinkCapacity": 100, - "downlinkCapacity": 100, - "readBufferSize": 2, - "mtu": 1350, - "header": { - "request": null, - "type": "none", - "response": null - }, - "tti": 50, - "congestion": false, - "writeBufferSize": 2 - }, - "wsSettings": null, - "tcpSettings": null, - "tlsSettings": {}, - "security": "" - }, - "settings": { - "ip": null, - "udp": true, - "clients": [ - { - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" - } - ], - "auth": null - }, - "protocol": "vmess", - "port": 1234, - "listen": null - }, - "inboundDetour": null, - "routing": { - "settings": { - "rules": [ - { - "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" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "blocked" - } - ], - "domainStrategy": null - }, - "strategy": "rules" - }, - "dns": null -} \ No newline at end of file + "outbound": { + "streamSettings": null, + "tag": null, + "protocol": "freedom", + "mux": null, + "settings": null + }, + "log": { + "access": "/var/log/v2ray/access.log", + "loglevel": "info", + "error": "/var/log/v2ray/error.log" + }, + "outboundDetour": [{ + "tag": "blocked", + "protocol": "blackhole", + "settings": null + }], + "inbound": { + "streamSettings": { + "network": "kcp", + "kcpSettings": { + "uplinkCapacity": 100, + "downlinkCapacity": 100, + "readBufferSize": 2, + "mtu": 1350, + "header": { + "request": null, + "type": "none", + "response": null + }, + "tti": 50, + "congestion": false, + "writeBufferSize": 2 + }, + "wsSettings": null, + "tcpSettings": null, + "tlsSettings": {}, + "security": "" + }, + "settings": { + "ip": null, + "udp": true, + "clients": [{ + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + }], + "auth": null + }, + "protocol": "vmess", + "port": 1234, + "listen": null + }, + "inboundDetour": null, + "routing": { + "settings": { + "rules": [{ + "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" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "blocked" + }], + "domainStrategy": null + }, + "strategy": "rules" + }, + "dns": null +} diff --git a/websocket+TLS/config_client.json b/websocket+TLS/config_client.json index 4cf8f14..8d8e2bd 100755 --- a/websocket+TLS/config_client.json +++ b/websocket+TLS/config_client.json @@ -1,112 +1,105 @@ { - "outbound": { - "streamSettings": { - "network": "ws", - "kcpSettings": null, - "wsSettings": { - "headers": { - "host": "example.domain" - }, - "path": "" - }, - "tcpSettings": null, - "tlsSettings": {}, - "security": "tls" - }, - "tag": "agentout", - "protocol": "vmess", - "mux": { - "enabled": true, - "concurrency": 8 - }, - "settings": { - "vnext": [ - { - "users": [ - { - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" + "outbound": { + "streamSettings": { + "network": "ws", + "kcpSettings": null, + "wsSettings": { + "headers": { + "host": "example.domain" + }, + "path": "" + }, + "tcpSettings": null, + "tlsSettings": {}, + "security": "tls" + }, + "tag": "agentout", + "protocol": "vmess", + "mux": { + "enabled": true, + "concurrency": 8 + }, + "settings": { + "vnext": [{ + "users": [{ + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + }], + "port": 443, + "address": "example.domain" + }] + } + }, + "log": { + "access": "", + "loglevel": "debug", + "error": "" + }, + "outboundDetour": [{ + "tag": "direct", + "protocol": "freedom", + "settings": { + "response": null } - ], - "port": 443, - "address": "example.domain" - } - ] - } - }, - "log": { - "access": "", - "loglevel": "debug", - "error": "" - }, - "outboundDetour": [ - { - "tag": "direct", - "protocol": "freedom", - "settings": { - "response": null - } - }, - { - "tag": "blockout", - "protocol": "blackhole", - "settings": { - "response": { - "type": "http" - } - } - } - ], - "inbound": { - "streamSettings": null, - "settings": { - "ip": "127.0.0.1", - "udp": true, - "clients": null, - "auth": "noauth" - }, - "protocol": "socks", - "port": 10086, - "listen": "0.0.0.0" - }, - "inboundDetour": null, - "routing": { - "settings": { - "rules": [ + }, { - "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" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "direct" + "tag": "blockout", + "protocol": "blackhole", + "settings": { + "response": { + "type": "http" + } + } } - ], - "domainStrategy": "IPIfNonMatch" - }, - "strategy": "rules" - }, - "dns": { - "servers": [ - "8.8.8.8", - "8.8.4.4", - "localhost" - ] - } + ], + "inbound": { + "streamSettings": null, + "settings": { + "ip": "127.0.0.1", + "udp": true, + "clients": null, + "auth": "noauth" + }, + "protocol": "socks", + "port": 10086, + "listen": "0.0.0.0" + }, + "inboundDetour": null, + "routing": { + "settings": { + "rules": [{ + "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" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "direct" + }], + "domainStrategy": "IPIfNonMatch" + }, + "strategy": "rules" + }, + "dns": { + "servers": [ + "8.8.8.8", + "8.8.4.4", + "localhost" + ] + } } diff --git a/websocket+TLS/config_server.json b/websocket+TLS/config_server.json index d25ef83..c03bd40 100644 --- a/websocket+TLS/config_server.json +++ b/websocket+TLS/config_server.json @@ -1,99 +1,91 @@ { - "outbound": { - "streamSettings": null, - "tag": null, - "protocol": "freedom", - "mux": null, - "settings": null - }, - "log": { - "access": "/var/log/v2ray/access.log", - "loglevel": "info", - "error": "/var/log/v2ray/error.log" - }, - "outboundDetour": [ - { - "tag": "blocked", - "protocol": "blackhole", - "settings": null - } - ], - "inbound": { - "streamSettings": { - "network": "kcp", - "kcpSettings": { - "uplinkCapacity": 100, - "downlinkCapacity": 100, - "readBufferSize": 2, - "mtu": 1350, - "header": { - "type": "srtp", - "request": null, - "response": null - }, - "tti": 50, - "congestion": false, - "writeBufferSize": 2 - }, - "wsSettings": null, - "tcpSettings": null, - "tlsSettings": { - "certificates": [ - { - "keyFile": "/path/to/example.domain.key", - "certificateFile": "/path/to/example.domain/fullchain.cer" - } - ] - }, - "security": "tls" - }, - "settings": { - "ip": null, - "udp": true, - "clients": [ - { - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" - } - ], - "auth": null - }, - "protocol": "vmess", - "port": 443, - "listen": null - }, - "inboundDetour": null, - "routing": { - "settings": { - "rules": [ - { - "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" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "blocked" - } - ], - "domainStrategy": null - }, - "strategy": "rules" - }, - "dns": null -} \ No newline at end of file + "outbound": { + "streamSettings": null, + "tag": null, + "protocol": "freedom", + "mux": null, + "settings": null + }, + "log": { + "access": "/var/log/v2ray/access.log", + "loglevel": "info", + "error": "/var/log/v2ray/error.log" + }, + "outboundDetour": [{ + "tag": "blocked", + "protocol": "blackhole", + "settings": null + }], + "inbound": { + "streamSettings": { + "network": "kcp", + "kcpSettings": { + "uplinkCapacity": 100, + "downlinkCapacity": 100, + "readBufferSize": 2, + "mtu": 1350, + "header": { + "type": "srtp", + "request": null, + "response": null + }, + "tti": 50, + "congestion": false, + "writeBufferSize": 2 + }, + "wsSettings": null, + "tcpSettings": null, + "tlsSettings": { + "certificates": [{ + "keyFile": "/path/to/example.domain.key", + "certificateFile": "/path/to/example.domain/fullchain.cer" + }] + }, + "security": "tls" + }, + "settings": { + "ip": null, + "udp": true, + "clients": [{ + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + }], + "auth": null + }, + "protocol": "vmess", + "port": 443, + "listen": null + }, + "inboundDetour": null, + "routing": { + "settings": { + "rules": [{ + "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" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "blocked" + }], + "domainStrategy": null + }, + "strategy": "rules" + }, + "dns": null +} diff --git a/websocket+caddy+tls/config_client.json b/websocket+caddy+tls/config_client.json index 510d4cf..847340f 100755 --- a/websocket+caddy+tls/config_client.json +++ b/websocket+caddy+tls/config_client.json @@ -1,113 +1,105 @@ { - "outbound": { - "streamSettings": { - "network": "ws", - "kcpSettings": null, + "outbound": { + "streamSettings": { + "network": "ws", + "kcpSettings": null, "wsSettings": { - "headers": { - "host": "example.domain" - }, - "path": "/test" - }, - "tcpSettings": null, - "tlsSettings": {}, + "headers": { + "host": "example.domain" + }, + "path": "/test" + }, + "tcpSettings": null, + "tlsSettings": {}, "security": "tls" - }, - "tag": "agentout", - "protocol": "vmess", - "mux": { + }, + "tag": "agentout", + "protocol": "vmess", + "mux": { "enabled": true, "concurrency": 8 - }, - "settings": { - "vnext": [ - { - "users": [ - { - "alterId": 100, - "security": "aes-128-gcm", + }, + "settings": { + "vnext": [{ + "users": [{ + "alterId": 100, + "security": "aes-128-gcm", "id": "e2b39869-7e9e-411b-a561-00904419bed9" - } - ], - "port": 443, + }], + "port": 443, "address": "example.domain" - } - ] - } - }, - "log": { - "access": "", - "loglevel": "info", - "error": "" - }, - "outboundDetour": [ - { - "tag": "direct", - "protocol": "freedom", - "settings": { - "response": null - } - }, - { - "tag": "blockout", - "protocol": "blackhole", - "settings": { - "response": { - "type": "http" - } - } - } - ], - "inbound": { - "streamSettings": null, - "settings": { - "ip": "127.0.0.1", - "udp": true, - "clients": null, - "auth": "noauth" - }, - "protocol": "socks", - "port": 10086, - "listen": "0.0.0.0" - }, - "inboundDetour": null, - "routing": { - "settings": { - "rules": [ - { - "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" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "direct" - } - ], - "domainStrategy": "IPIfNonMatch" - }, - "strategy": "rules" - }, - "dns": { - "servers": [ - "8.8.8.8", - "8.8.4.4", - "localhost" - ] + }] } - } - + }, + "log": { + "access": "", + "loglevel": "info", + "error": "" + }, + "outboundDetour": [{ + "tag": "direct", + "protocol": "freedom", + "settings": { + "response": null + } + }, + { + "tag": "blockout", + "protocol": "blackhole", + "settings": { + "response": { + "type": "http" + } + } + } + ], + "inbound": { + "streamSettings": null, + "settings": { + "ip": "127.0.0.1", + "udp": true, + "clients": null, + "auth": "noauth" + }, + "protocol": "socks", + "port": 10086, + "listen": "0.0.0.0" + }, + "inboundDetour": null, + "routing": { + "settings": { + "rules": [{ + "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" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "direct" + }], + "domainStrategy": "IPIfNonMatch" + }, + "strategy": "rules" + }, + "dns": { + "servers": [ + "8.8.8.8", + "8.8.4.4", + "localhost" + ] + } +} diff --git a/websocket+caddy+tls/config_server.json b/websocket+caddy+tls/config_server.json index 7e3e2d5..b643120 100644 --- a/websocket+caddy+tls/config_server.json +++ b/websocket+caddy+tls/config_server.json @@ -1,90 +1,85 @@ { - "outbound": { - "streamSettings": null, - "tag": null, - "protocol": "freedom", - "mux": null, - "settings": null - }, - "log": { - "access": "/var/log/v2ray/access.log", - "loglevel": "info", - "error": "/var/log/v2ray/error.log" - }, - "outboundDetour": [ - { - "tag": "direct", - "protocol": "freedom", - "settings": null - }, - { - "tag": "blocked", - "protocol": "blackhole", - "settings": null - } - ], - "inbound": { - "streamSettings": { - "network": "ws", - "kcpSettings": null, - "wsSettings": { - "headers": { - "host": "example.domain" - }, - "path": "/test", - "connectionReuse": true - }, - "tcpSettings": null, - "tlsSettings": {}, - "security": "" - }, - "settings": { - "ip": null, - "udp": true, - "clients": [ + "outbound": { + "streamSettings": null, + "tag": null, + "protocol": "freedom", + "mux": null, + "settings": null + }, + "log": { + "access": "/var/log/v2ray/access.log", + "loglevel": "info", + "error": "/var/log/v2ray/error.log" + }, + "outboundDetour": [{ + "tag": "direct", + "protocol": "freedom", + "settings": null + }, { - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" + "tag": "blocked", + "protocol": "blackhole", + "settings": null } - ], - "auth": null - }, - "protocol": "vmess", - "port": 1234, - "listen": null - }, - "inboundDetour": null, - "routing": { - "settings": { - "rules": [ - { - "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", + ], + "inbound": { + "streamSettings": { + "network": "ws", + "kcpSettings": null, + "wsSettings": { + "headers": { + "host": "example.domain" + }, + "path": "/test", + "connectionReuse": true + }, + "tcpSettings": null, + "tlsSettings": {}, + "security": "" + }, + "settings": { + "ip": null, + "udp": true, + "clients": [{ + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + }], + "auth": null + }, + "protocol": "vmess", + "port": 1234, + "listen": null + }, + "inboundDetour": null, + "routing": { + "settings": { + "rules": [{ + "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" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "blocked" - } - ], - "domainStrategy": null - }, - "strategy": "rules" - }, - "dns": null + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "blocked" + }], + "domainStrategy": null + }, + "strategy": "rules" + }, + "dns": null } diff --git a/websocket/config_client.json b/websocket/config_client.json index 7eae8c9..0601fae 100644 --- a/websocket/config_client.json +++ b/websocket/config_client.json @@ -1,111 +1,104 @@ { - "outbound": { - "streamSettings": { - "network": "ws", - "kcpSettings": null, - "wsSettings": { - "headers": { - "host": "example.domain" - }, - "path": "" - }, - "tcpSettings": null, - "tlsSettings": {}, - "security": "" - }, - "tag": "agentout", - "protocol": "vmess", - "mux": { - "enabled": true - }, - "settings": { - "vnext": [ - { - "users": [ - { - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" + "outbound": { + "streamSettings": { + "network": "ws", + "kcpSettings": null, + "wsSettings": { + "headers": { + "host": "example.domain" + }, + "path": "" + }, + "tcpSettings": null, + "tlsSettings": {}, + "security": "" + }, + "tag": "agentout", + "protocol": "vmess", + "mux": { + "enabled": true + }, + "settings": { + "vnext": [{ + "users": [{ + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + }], + "port": 1234, + "address": "Your_IP_Address" + }] + } + }, + "log": { + "access": "", + "loglevel": "info", + "error": "" + }, + "outboundDetour": [{ + "tag": "direct", + "protocol": "freedom", + "settings": { + "response": null } - ], - "port": 1234, - "address": "Your_IP_Address" - } - ] - } - }, - "log": { - "access": "", - "loglevel": "info", - "error": "" - }, - "outboundDetour": [ - { - "tag": "direct", - "protocol": "freedom", - "settings": { - "response": null - } - }, - { - "tag": "blockout", - "protocol": "blackhole", - "settings": { - "response": { - "type": "http" - } - } - } - ], - "inbound": { - "streamSettings": null, - "settings": { - "ip": "127.0.0.1", - "udp": true, - "clients": null, - "auth": "noauth" - }, - "protocol": "socks", - "port": 1080, - "listen": "0.0.0.0" - }, - "inboundDetour": null, - "routing": { - "settings": { - "rules": [ + }, { - "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" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "direct" + "tag": "blockout", + "protocol": "blackhole", + "settings": { + "response": { + "type": "http" + } + } } - ], - "domainStrategy": "IPIfNonMatch" - }, - "strategy": "rules" - }, - "dns": { - "servers": [ - "8.8.8.8", - "8.8.4.4", - "localhost" - ] - } -} \ No newline at end of file + ], + "inbound": { + "streamSettings": null, + "settings": { + "ip": "127.0.0.1", + "udp": true, + "clients": null, + "auth": "noauth" + }, + "protocol": "socks", + "port": 1080, + "listen": "0.0.0.0" + }, + "inboundDetour": null, + "routing": { + "settings": { + "rules": [{ + "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" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "direct" + }], + "domainStrategy": "IPIfNonMatch" + }, + "strategy": "rules" + }, + "dns": { + "servers": [ + "8.8.8.8", + "8.8.4.4", + "localhost" + ] + } +} diff --git a/websocket/config_server.json b/websocket/config_server.json index 8f22891..f4e8e30 100644 --- a/websocket/config_server.json +++ b/websocket/config_server.json @@ -1,85 +1,79 @@ { - "outbound": { - "streamSettings": null, - "tag": null, - "protocol": "freedom", - "mux": null, - "settings": null - }, - "log": { - "access": "/var/log/v2ray/access.log", - "loglevel": "info", - "error": "/var/log/v2ray/error.log" - }, - "inboundDetour": null, - "inbound": { - "streamSettings": { - "network": "ws", - "kcpSettings": null, - "wsSettings": { - "headers": { - "host": "example.domain" - }, - "path": "", - "connectionReuse": true - }, - "tcpSettings": null, - "tlsSettings": {}, - "security": "" - }, - "listen": null, - "protocol": "vmess", - "port": 1234, - "settings": { - "ip": null, - "udp": true, - "clients": [ - { - "alterId": 100, - "security": "aes-128-gcm", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" + "outbound": { + "streamSettings": null, + "tag": null, + "protocol": "freedom", + "mux": null, + "settings": null + }, + "log": { + "access": "/var/log/v2ray/access.log", + "loglevel": "info", + "error": "/var/log/v2ray/error.log" + }, + "inboundDetour": null, + "inbound": { + "streamSettings": { + "network": "ws", + "kcpSettings": null, + "wsSettings": { + "headers": { + "host": "example.domain" + }, + "path": "", + "connectionReuse": true + }, + "tcpSettings": null, + "tlsSettings": {}, + "security": "" + }, + "listen": null, + "protocol": "vmess", + "port": 1234, + "settings": { + "ip": null, + "udp": true, + "clients": [{ + "alterId": 100, + "security": "aes-128-gcm", + "id": "e2b39869-7e9e-411b-a561-00904419bed9" + }], + "auth": null } - ], - "auth": null - } - }, - "outboundDetour": [ - { - "tag": "blocked", - "protocol": "blackhole", - "settings": null - } - ], - "routing": { - "strategy": "rules", - "settings": { - "rules": [ - { - "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" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "blocked" + }, + "outboundDetour": [{ + "tag": "blocked", + "protocol": "blackhole", + "settings": null + }], + "routing": { + "strategy": "rules", + "settings": { + "rules": [{ + "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" + ], + "domain": null, + "type": "field", + "port": null, + "outboundTag": "blocked" + }], + "domainStrategy": null } - ], - "domainStrategy": null - } - }, - "dns": null -} \ No newline at end of file + }, + "dns": null +}