This commit is contained in:
quackerd 2020-05-28 02:34:26 -04:00
parent 1d08426363
commit 5a0bf7470b
1 changed files with 52 additions and 0 deletions

View File

@ -1,4 +1,50 @@
{
"log": {
"error": "error.log",
"loglevel": "warning",
"access": "access.log"
},
"dns": {
"servers": [
"114.114.114.114",
{
"address": "1.1.1.1",
"port": 53,
"domains": [
"geosite:geolocation-!cn"
]
}
]
},
"routing": {
"domainStrategy": "IPOnDemand",
"rules": [
// 第一条规则
{
"type": "field",
"outboundTag": "direct", // freedom 的 tag
"domain": ["geosite:cn"] // 中国大陆网站
},
// 第二条规则
{
"type": "field",
"outboundTag": "direct", // freedom 的 tag
"ip": [
"geoip:cn", // 中国大陆 IP
"geoip:private"
]
},
// 第三条规则
{
"type": "field",
"outboundTag": "proxy",
"network": "udp,tcp"
}
]
},
"inbounds": [
{
"port": 1080,
@ -16,6 +62,7 @@
],
"outbounds": [
{
"tag": "proxy",
"protocol": "vmess",
"settings": {
"vnext": [
@ -38,6 +85,11 @@
"path": "/{{ path }}"
}
}
},
{
"protocol": "freedom",
"settings": {},
"tag": "direct"
}
]
}