2020-05-04 09:16:02 +00:00
|
|
|
{
|
2020-05-28 06:34:26 +00:00
|
|
|
"log": {
|
|
|
|
"error": "error.log",
|
|
|
|
"loglevel": "warning",
|
|
|
|
"access": "access.log"
|
|
|
|
},
|
|
|
|
|
|
|
|
"dns": {
|
|
|
|
"servers": [
|
2020-06-09 02:40:04 +00:00
|
|
|
"223.5.5.5",
|
2020-05-28 06:34:26 +00:00
|
|
|
"114.114.114.114",
|
2020-06-09 02:40:04 +00:00
|
|
|
{
|
|
|
|
"address": "8.8.8.8",
|
|
|
|
"port": 53,
|
|
|
|
"domains": [
|
|
|
|
"geosite:geolocation-!cn"
|
|
|
|
]
|
|
|
|
},
|
2020-05-28 06:34:26 +00:00
|
|
|
{
|
|
|
|
"address": "1.1.1.1",
|
|
|
|
"port": 53,
|
|
|
|
"domains": [
|
|
|
|
"geosite:geolocation-!cn"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"routing": {
|
2020-06-09 02:40:04 +00:00
|
|
|
"domainStrategy": "IPIfNonMatch",
|
2020-05-28 06:34:26 +00:00
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"type": "field",
|
2020-06-01 07:25:22 +00:00
|
|
|
"outboundTag": "direct",
|
2020-06-09 02:40:04 +00:00
|
|
|
"ip": [
|
|
|
|
"223.5.5.5",
|
|
|
|
"114.114.114.114"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "field",
|
|
|
|
"outboundTag": "proxy",
|
|
|
|
"ip": [
|
|
|
|
"8.8.8.8",
|
|
|
|
"1.1.1.1"
|
|
|
|
]
|
2020-05-28 06:34:26 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "field",
|
2020-06-01 07:25:22 +00:00
|
|
|
"outboundTag": "direct",
|
2020-05-28 06:34:26 +00:00
|
|
|
"ip": [
|
2020-06-01 07:25:22 +00:00
|
|
|
"geoip:cn",
|
2020-05-28 06:34:26 +00:00
|
|
|
"geoip:private"
|
|
|
|
]
|
|
|
|
},
|
2020-06-09 02:40:04 +00:00
|
|
|
{
|
|
|
|
"type": "field",
|
|
|
|
"outboundTag": "direct",
|
|
|
|
"domain": ["geosite:cn"]
|
|
|
|
},
|
2020-05-28 06:34:26 +00:00
|
|
|
{
|
|
|
|
"type": "field",
|
|
|
|
"outboundTag": "proxy",
|
|
|
|
"network": "udp,tcp"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
2020-05-04 09:16:02 +00:00
|
|
|
"inbounds": [
|
|
|
|
{
|
|
|
|
"port": 1080,
|
|
|
|
"listen": "127.0.0.1",
|
|
|
|
"protocol": "socks",
|
|
|
|
"sniffing": {
|
|
|
|
"enabled": true,
|
|
|
|
"destOverride": ["http", "tls"]
|
|
|
|
},
|
|
|
|
"settings": {
|
|
|
|
"auth": "noauth",
|
|
|
|
"udp": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"outbounds": [
|
|
|
|
{
|
2020-05-28 06:34:26 +00:00
|
|
|
"tag": "proxy",
|
2020-05-04 09:16:02 +00:00
|
|
|
"protocol": "vmess",
|
|
|
|
"settings": {
|
|
|
|
"vnext": [
|
|
|
|
{
|
2020-05-04 09:58:24 +00:00
|
|
|
"address": "{{ server_name }}",
|
2020-05-04 09:16:02 +00:00
|
|
|
"port": 443,
|
|
|
|
"users": [
|
|
|
|
{
|
|
|
|
"id": "{{ uuid }}",
|
2020-06-03 10:29:52 +00:00
|
|
|
"alterId": 64,
|
|
|
|
"security": "none"
|
2020-05-04 09:16:02 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"streamSettings": {
|
|
|
|
"network": "ws",
|
|
|
|
"security": "tls",
|
|
|
|
"wsSettings": {
|
|
|
|
"path": "/{{ path }}"
|
|
|
|
}
|
|
|
|
}
|
2020-05-28 06:34:26 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"protocol": "freedom",
|
|
|
|
"settings": {},
|
|
|
|
"tag": "direct"
|
2020-06-09 02:40:04 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"protocol": "blackhole",
|
|
|
|
"settings": {},
|
|
|
|
"tag": "block"
|
2020-05-04 09:16:02 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|