Skip to content

Commit

Permalink
add template of [vmess and mtproto]
Browse files Browse the repository at this point in the history
  • Loading branch information
veekxt committed Nov 15, 2018
1 parent 2360071 commit 1fce9dc
Show file tree
Hide file tree
Showing 2 changed files with 166 additions and 0 deletions.
82 changes: 82 additions & 0 deletions tcp+vmess and mtproto/config_client.json
Original file line number Diff line number Diff line change
@@ -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":{}
}
84 changes: 84 additions & 0 deletions tcp+vmess and mtproto/config_server.json
Original file line number Diff line number Diff line change
@@ -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": {}
}

0 comments on commit 1fce9dc

Please sign in to comment.