Skip to content

Instantly share code, notes, and snippets.

@yknext
Created April 11, 2018 16:29
Show Gist options
  • Save yknext/cb1426e920420a21cb65607a0a4243ec to your computer and use it in GitHub Desktop.
Save yknext/cb1426e920420a21cb65607a0a4243ec to your computer and use it in GitHub Desktop.
V2ray Vmessage simple
{
"log" : {
"loglevel" : "none"
},
"inbound" : {
"port" : 1080,
"listen" : "0.0.0.0",
"protocol" : "socks",
"settings" : {
"auth" : "noauth",
"udp" : true,
"ip" : "0.0.0.0"
}
},
"outbound" : {
"protocol" : "vmess",
"settings" : {
"vnext" : [
{
"address" : "IP",
"port" : 443,
"users" : [{
"id" : "UUID",
"security" : "aes-128-gcm"
}
]
}
]
}
},
"outboundDetour" : [{
"protocol" : "freedom",
"settings" : {},
"tag" : "direct"
}
],
"dns" : {
"servers" : [
"8.8.8.8",
"8.8.4.4",
"localhost"
]
},
"routing" : {
"strategy" : "rules",
"settings" : {
"rules" : [{
"type" : "field",
"ip" : [
"0.0.0.0/8",
"10.0.0.0/8",
"100.64.0.0/10",
"127.0.0.0/8",
"169.254.0.0/16",
"172.16.0.0/12",
"192.0.0.0/24",
"192.0.2.0/24",
"192.168.0.0/16",
"198.18.0.0/15",
"198.51.100.0/24",
"203.0.113.0/24",
"::1/128",
"fc00::/7",
"fe80::/10"
],
"outboundTag" : "direct"
}
]
}
}
}
{
"log" : {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "none"
},
"inbound": {
"port": 443,
"protocol": "vmess",
"settings": {
"clients": [{
"id": "UUID",
"level": 0,
"security": "aes-128-gcm",
"alterId": 100
}
]
}
},
"outbound": {
"protocol": "freedom",
"settings": {}
},
"outboundDetour": [
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}
],
"routing": {
"strategy": "rules",
"settings": {
"rules": [
{
"type": "field",
"ip": [
"0.0.0.0/8",
"10.0.0.0/8",
"100.64.0.0/10",
"127.0.0.0/8",
"169.254.0.0/16",
"172.16.0.0/12",
"192.0.0.0/24",
"192.0.2.0/24",
"192.168.0.0/16",
"198.18.0.0/15",
"198.51.100.0/24",
"203.0.113.0/24",
"::1/128",
"fc00::/7",
"fe80::/10"
],
"outboundTag": "blocked"
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment