From 417fa9d9dd545d3f7ace14a7998622693089bd6c Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Sun, 4 Feb 2024 21:04:20 +0800 Subject: [PATCH] nixos/clash-meta-client: update rules --- .../opt-in/clash-meta-client/config.yaml | 30 ++++++++++++++----- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/nixos/profiles/common/opt-in/clash-meta-client/config.yaml b/nixos/profiles/common/opt-in/clash-meta-client/config.yaml index 3641dfc..14aea22 100644 --- a/nixos/profiles/common/opt-in/clash-meta-client/config.yaml +++ b/nixos/profiles/common/opt-in/clash-meta-client/config.yaml @@ -40,11 +40,27 @@ proxy-groups: #- { name: 新加坡, <<: *use, type: url-test, filter: "(?i)(新|sg|singapore)" } rules: - - GEOIP, lan, DIRECT, no-resolve - - GEOSITE, category-ads, REJECT - - GEOSITE, spotify, 台湾 - - GEOIP, cn, DIRECT - - GEOSITE, cn, DIRECT + ### WHITELIST + # FILTER + - GEOIP, lan, DIRECT, no-resolve + - GEOSITE, private, DIRECT + - GEOSITE, category-ads, REJECT - # 未匹配到任何规则 - - MATCH, PROXY + # DIRECT + - DOMAIN-SUFFIX, envs.net, DIRECT + - DOMAIN-SUFFIX, catgirl.cloud, DIRECT + - GEOSITE, freecodecamp, DIRECT # music radio + - GEOSITE, icloud, DIRECT + - GEOSITE, apple@cn, DIRECT + - GEOSITE, google@cn, DIRECT + - GEOSITE, category-games@cn, DIRECT + + # PROXY + - GEOSITE, spotify, 台湾 + - GEOSITE, google, PROXY + - GEOSITE, telegram, PROXY + + # NOMATCH + - GEOSITE, cn, DIRECT + - GEOIP, cn, DIRECT + - MATCH, PROXY