Skip to content

Instantly share code, notes, and snippets.

@xiaokangwang
Created June 12, 2016 08:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xiaokangwang/5714b12755e49e8abdb478030dcf24f5 to your computer and use it in GitHub Desktop.
Save xiaokangwang/5714b12755e49e8abdb478030dcf24f5 to your computer and use it in GitHub Desktop.
{
"log" : {
"access": "",
"error": "",
"loglevel": "info"
},
"inbound": {
"port": 10086,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "0f8d9dc3-4072-4d29-9042-d39fb26c3ea9",
"level": 1,
"alterId": 64
}
]
}
},
"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"
}
]
}
},
"transport": {
"connectionReuse": true,
"EnableKCP":true,
"KcpConfig":{
"Mode":"fast2",
"Key":"key"
}
}
}
{
"log": {
"loglevel": "info"
},
"inbound": {
"port": 10844,
"listen": "127.0.0.1",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": false,
"ip": "127.0.0.1"
}
},
"outbound": {
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "ip.1.2.3",
"port": 10086,
"users": [
{
"id": "0f8d9dc3-4072-4d29-9042-d39fb26c3ea9",
"alterId": 64
}
]
}
]
}
},
"outboundDetour": [
{
"protocol": "freedom",
"settings": {},
"tag": "direct"
}
],
"dns": {
"servers": [
"8.8.8.8",
"8.8.4.4",
"localhost"
]
},
"routing": {
"strategy": "rules",
"settings": {
"domainStrategy": "AsIs",
"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"
}
]
}
},
"transport": {
"connectionReuse": true,
"EnableKCP":true,
"KcpConfig":{
"Mode":"fast2",
"Key":"key"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment