This method is only applicable to the clash meta new version kernel and needs to set geox-url
in the General section of the configuration.
- If you need the rule-provider mode, please click here
- If you need the foss version of the regular rules, please click here
geox-url setting#
geox-url:
geoip: "https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/geoip.dat"
geosite: "https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/geosite.dat"
mmdb: "https://cdn.jsdelivr.net/gh/Loyalsoldier/geoip@release/Country.mmdb"
Rules#
rules:
# > RULES_LOCAL
- DOMAIN-SUFFIX,ip6-localhost,DIRECT
- DOMAIN-SUFFIX,ip6-loopback,DIRECT
- DOMAIN-SUFFIX,lan,DIRECT
- DOMAIN-SUFFIX,local,DIRECT
- DOMAIN-SUFFIX,localhost,DIRECT
- IP-CIDR,10.0.0.0/8,DIRECT,no-resolve
- IP-CIDR,100.64.0.0/10,DIRECT,no-resolve
- IP-CIDR,127.0.0.0/8,DIRECT,no-resolve
- IP-CIDR,172.16.0.0/12,DIRECT,no-resolve
- IP-CIDR,192.168.0.0/16,DIRECT,no-resolve
- IP-CIDR,198.18.0.0/16,DIRECT,no-resolve
- IP-CIDR,224.0.0.0/4,DIRECT,no-resolve
- IP-CIDR6,::1/128,DIRECT,no-resolve
- IP-CIDR6,fc00::/7,DIRECT,no-resolve
- IP-CIDR6,fe80::/10,DIRECT,no-resolve
- IP-CIDR6,fd00::/8,DIRECT,no-resolve
- DOMAIN-SUFFIX,cm.steampowered.com,DIRECT
- DOMAIN-SUFFIX,steamserver.net,DIRECT
# > GEOSITE
- GEOSITE,category-ads-all,REJECT
- GEOSITE,category-games@cn,DIRECT
- GEOSITE,apple@cn,DIRECT
- GEOSITE,netflix,🔰 Select Node
- GEOSITE,disney,🔰 Select Node
- GEOSITE,youtube,🔰 Select Node
- GEOSITE,google,🔰 Select Node
- GEOSITE,microsoft@cn,DIRECT
- GEOSITE,microsoft,🔰 Select Node
- GEOSITE,geolocation-!cn,🔰 Select Node
- GEOSITE,cn,DIRECT
- GEOIP,telegram,🔰 Select Node,no-resolve
- GEOIP,netflix,🔰 Select Node,no-resolve
- GEOIP,private,DIRECT,no-resolve
- GEOIP,CN,DIRECT,no-resolve
- MATCH,🔰 Select Node