Skip to content

Instantly share code, notes, and snippets.

@Ehekatl
Created December 30, 2016 08:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ehekatl/31a52599d3579e4c42de117400f37aa7 to your computer and use it in GitHub Desktop.
Save Ehekatl/31a52599d3579e4c42de117400f37aa7 to your computer and use it in GitHub Desktop.
v2ray client
{
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning"
},
"inbound": {
"port": 1080,
"protocol": "http",
"settings": {
"timeout": 300
}
},
"inboundDetour": [{
"port": 1081,
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": false
}
}],
"outbound": {
"protocol": "vmess",
"settings": {
"vnext": [{
"address": "",
"port": 443,
"users": [{
"id": "",
"alterId": 20
}]
}, {
"address": "",
"port": 443,
"users": [{
"id": "",
"alterId": 20
}]
}]
}
},
"outboundDetour": [{
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIP"
},
"tag": "direct"
}],
"routing": {
"strategy": "rules",
"domainStrategy": "IPIfNonMatch",
"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"
]
}, {
"type": "chinaip",
"outboundTag": "direct"
}, {
"type": "chinasites",
"outboundTag": "direct"
}]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment