README: geosite premium usage: attribute

This commit is contained in:
loyalsoldier 2021-02-26 20:29:18 +08:00
parent 2f1bd7ab4d
commit a5493afd04
No known key found for this signature in database
GPG Key ID: 23829BBC1ACF2C90

View File

@ -139,9 +139,24 @@
- [**慎用**]`geosite:win-update`:包含 [@crazy-max/WindowsSpyBlocker/hosts/update.txt](https://github.com/crazy-max/WindowsSpyBlocker/blob/master/data/hosts/update.txt) 文件里的域名,供希望屏蔽 Windows 操作系统自动升级的用户使用。 - [**慎用**]`geosite:win-update`:包含 [@crazy-max/WindowsSpyBlocker/hosts/update.txt](https://github.com/crazy-max/WindowsSpyBlocker/blob/master/data/hosts/update.txt) 文件里的域名,供希望屏蔽 Windows 操作系统自动升级的用户使用。
- [**慎用**]`geosite:win-extra`:包含 [@crazy-max/WindowsSpyBlocker/hosts/extra.txt](https://github.com/crazy-max/WindowsSpyBlocker/blob/master/data/hosts/extra.txt) 文件里的域名,供希望屏蔽 Windows 操作系统附加隐私跟踪域名的用户使用。 - [**慎用**]`geosite:win-extra`:包含 [@crazy-max/WindowsSpyBlocker/hosts/extra.txt](https://github.com/crazy-max/WindowsSpyBlocker/blob/master/data/hosts/extra.txt) 文件里的域名,供希望屏蔽 Windows 操作系统附加隐私跟踪域名的用户使用。
> ⚠️注意:在 Routing 配置中,类别越靠前(上),优先级越高,所以 `geosite:apple-cn``geosite:google-cn` 要放置在 `geosite:geolocation-!cn` 前(上)面。 > ⚠️ 注意:在 Routing 配置中,类别越靠前(上),优先级越高,所以 `geosite:apple-cn``geosite:google-cn` 要放置在 `geosite:geolocation-!cn` 前(上)面才能生效
配置参考下面 👇👇👇 #### 高级用法
v2fly/domain-list-community 项目 [data](https://github.com/v2fly/domain-list-community/tree/master/data) 目录中某些列表里的规则会被标记诸如 `@cn` 的 attribute如下所示意为该域名在中国大陆有接入点可直连。
```
steampowered.com.8686c.com @cn
steamstatic.com.8686c.com @cn
```
对于玩 Steam 国区游戏,想要直连的用户,可以设置类别 `geosite:steam@cn` 为直连,意为将 [steam](https://github.com/v2fly/domain-list-community/blob/master/data/steam) 列表内所有被标记了 `@cn` attribute 的规则(域名)设置为直连。同理,由于 [category-games](https://github.com/v2fly/domain-list-community/blob/master/data/category-games) 列表包含了 `steam`、`ea`、`blizzard`、`epicgames` 和 `nintendo` 等常见的游戏厂商。设置类别 `geosite:category-games@cn` 为直连,即可节省大量服务器流量。
> ⚠️ 注意:在 Routing 配置中,类别越靠前(上),优先级越高,所以 `geosite:category-games@cn` 等所有带有 `@cn` attribute 的规则都要放置在 `geosite:geolocation-!cn` 前(上)面才能生效。
>
> `category-games` 列表内的规则(域名)可能会有疏漏,请留意规则命中情况。如发现遗漏,欢迎到项目 v2fly/domain-list-community 提 [issue](https://github.com/v2fly/domain-list-community/issues) 反馈。
#### 配置参考下面 👇👇👇
**白名单模式 Routing 配置方式** **白名单模式 Routing 配置方式**
@ -162,7 +177,8 @@
"geosite:private", "geosite:private",
"geosite:apple-cn", "geosite:apple-cn",
"geosite:google-cn", "geosite:google-cn",
"geosite:tld-cn" "geosite:tld-cn",
"geosite:category-games@cn"
] ]
}, },
{ {
@ -234,18 +250,21 @@
"address": "114.114.114.114", "address": "114.114.114.114",
"port": 53, "port": 53,
"domains": [ "domains": [
"geosite:cn" "geosite:cn",
"geosite:category-games@cn"
],
"expectIPs": [
"geoip:cn"
] ]
}, },
{ {
"address": "1.1.1.1", "address": "https://1.1.1.1/dns-query",
"port": 53,
"domains": [ "domains": [
"geosite:geolocation-!cn" "geosite:geolocation-!cn"
] ]
}, },
"223.5.5.5", "https+local://223.5.5.5/dns-query",
"8.8.8.8" "119.29.29.29"
] ]
} }
``` ```
@ -276,7 +295,8 @@
"address": "https+local://223.5.5.5/dns-query", "address": "https+local://223.5.5.5/dns-query",
"domains": [ "domains": [
"geosite:cn", "geosite:cn",
"geosite:icloud" "geosite:icloud",
"geosite:category-games@cn"
], ],
"expectIPs": [ "expectIPs": [
"geoip:cn" "geoip:cn"
@ -386,7 +406,8 @@
"outboundTag": "Direct", "outboundTag": "Direct",
"domain": [ "domain": [
"geosite:tld-cn", "geosite:tld-cn",
"geosite:icloud" "geosite:icloud",
"geosite:category-games@cn"
] ]
}, },
{ {