From 1fce9dcdbcb936b3f179cade02ccc2d8c3b7c127 Mon Sep 17 00:00:00 2001 From: veekxt Date: Thu, 15 Nov 2018 17:25:34 +0800 Subject: [PATCH] add template of [vmess and mtproto] --- tcp+vmess and mtproto/config_client.json | 82 +++++++++++++++++++++++ tcp+vmess and mtproto/config_server.json | 84 ++++++++++++++++++++++++ 2 files changed, 166 insertions(+) create mode 100644 tcp+vmess and mtproto/config_client.json create mode 100644 tcp+vmess and mtproto/config_server.json diff --git a/tcp+vmess and mtproto/config_client.json b/tcp+vmess and mtproto/config_client.json new file mode 100644 index 0000000..627f76e --- /dev/null +++ b/tcp+vmess and mtproto/config_client.json @@ -0,0 +1,82 @@ +{ + "log":{}, + "dns":{}, + "stats":{}, + "inbounds":[ + { + "port":"1080", + "protocol":"socks", + "settings":{ + "auth":"noauth", + "udp":true + }, + "tag":"in-0" + }, + { + "port":"1081", + "protocol":"http", + "settings":{}, + "tag":"in-1" + } + ], + "outbounds":[ + { + "protocol":"vmess", + "settings":{ + "vnext":[ + { + "address":"", + "port":44222, + "users":[ + { + "id":"302c2877-8b32-4ca2-9905-134083c51f04", + "alterId":32 + } + ] + } + ] + }, + "tag":"out-0", + "streamSettings":{ + "network":"tcp", + "security":"none", + "tcpSettings":{} + } + }, + { + "tag":"direct", + "protocol":"freedom", + "settings":{} + }, + { + "tag":"blocked", + "protocol":"blackhole", + "settings":{} + } + ], + "routing":{ + "domainStrategy":"IPOnDemand", + "rules":[ + { + "type":"field", + "ip":[ + "geoip:private" + ], + "outboundTag":"direct" + }, + { + "type":"field", + "ip":[ + "geoip:cn" + ], + "inboundTag":[ + "in-1" + ], + "outboundTag":"direct" + } + ] + }, + "policy":{}, + "reverse":{}, + "transport":{} +} \ No newline at end of file diff --git a/tcp+vmess and mtproto/config_server.json b/tcp+vmess and mtproto/config_server.json new file mode 100644 index 0000000..80498b1 --- /dev/null +++ b/tcp+vmess and mtproto/config_server.json @@ -0,0 +1,84 @@ +{ + "log": { + "access": "/var/log/v2ray/access.log", + "error": "/var/log/v2ray/error.log", + "loglevel": "warning" + }, + "dns": {}, + "stats": {}, + "inbounds": [ + { + "port": 44222, + "protocol": "vmess", + "settings": { + "clients": [ + { + "id": "302c2877-8b32-4ca2-9905-134083c51f04", + "alterId": 32 + } + ] + }, + "tag": "in-0", + "streamSettings": { + "network": "tcp", + "security": "none", + "tcpSettings": {} + } + }, + { + "port": 45222, + "protocol": "mtproto", + "settings": { + "users": [ + { + "email": "love@v2ray.com", + "level": 0, + "secret": "b2a6413a52f40956e108dfd7ce9b3c78" + } + ] + }, + "tag": "in-etag", + "streamSettings": {}, + "listen": "0.0.0.0" + } + ], + "outbounds": [ + { + "tag": "direct", + "protocol": "freedom", + "settings": {} + }, + { + "tag": "blocked", + "protocol": "blackhole", + "settings": {} + }, + { + "tag": "out-tg", + "protocol": "mtproto", + "settings": {} + } + ], + "routing": { + "domainStrategy": "AsIs", + "rules": [ + { + "type": "field", + "ip": [ + "geoip:private" + ], + "outboundTag": "blocked" + }, + { + "type": "field", + "inboundTag": [ + "in-etag" + ], + "outboundTag": "out-tg" + } + ] + }, + "policy": {}, + "reverse": {}, + "transport": {} +} \ No newline at end of file