vernesong / OpenClash

A Clash Client For OpenWrt
MIT License
17.54k stars 3.18k forks source link

不使用tracker作爲DOMAIN-KEYWORD來過濾BT/P2P #1213

Closed Mr-Sheep closed 2 years ago

Mr-Sheep commented 3 years ago

https://github.com/vernesong/OpenClash/blob/e6a064f07665a879f8f08a3499ce72f7c6c3145f/luci-app-openclash/root/usr/share/openclash/yml_rules_change.sh#L68

OpenClash在開啓Rule Match Proxy ModeCommon Ports Proxy Mode後會添加以下內容至config.json

- DOMAIN-KEYWORD,tracker,DIRECT
- DOMAIN-KEYWORD,announce.php?passkey=,DIRECT
- DOMAIN-KEYWORD,torrent,DIRECT
- DOMAIN-KEYWORD,peer_id=,DIRECT
- DOMAIN-KEYWORD,info_hash,DIRECT

由於Clash執行規則的順序是從上到下,添加第一條以後會放行部分廣告域名/數據跟蹤域名,如

tracker.sns.iqiyi.com
adeventtracker.spotify.com
epowernetworktrackerimages.s3.amazonaws.com
eviltracker.net
tracker.baidu.com
tracker.yhd.com
tracker.tgbus.com

對於BT的識別,是否可以使用process-name來判斷?

vernesong commented 3 years ago

路由上process-name只针对本机,放在最后拦截强度不够,没有太好的办法

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days