re
This commit is contained in:
parent
1d08426363
commit
5a0bf7470b
52
client.conf
52
client.conf
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user