Skip to content

Instantly share code, notes, and snippets.

@heartnn
Forked from bankroft/clash.config.yml
Created November 27, 2024 16:05
Show Gist options
  • Save heartnn/61e192f2b797d4e7b9dc0cd44aee5c93 to your computer and use it in GitHub Desktop.
Save heartnn/61e192f2b797d4e7b9dc0cd44aee5c93 to your computer and use it in GitHub Desktop.
mixed-port: 7890
allow-lan: false
log-level: silent
dns:
enable: true
ipv6: false
listen: 0.0.0.0:12353
default-nameserver:
- 114.114.114.114
- 223.5.5.5
- 8.8.8.8
enhanced-mode: redir-host
fake-ip-filter:
- '*.lan'
- localhost.ptlogin2.qq.com
- '*.*.*.*.srv.nintendo.net'
- '*.*.*.stun.playstation.net'
- 'xbox.*.microsoft.com'
- '*.*.*.xboxlive.com'
nameserver:
- https://dns.google/dns-query
- https://dns.rubyfish.cn/dns-query
- https://223.5.5.5/dns-query
- https://1.1.1.1/dns-query
fallback:
- https://223.5.5.5/dns-query
- 114.114.114.114
fallback-filter:
geoip: true
ipcidr:
- 240.0.0.0/4
experimental:
ignore-resolve-fail: true
rule-providers:
reject:
type: http
behavior: domain
url: "https://anti-ad.net/clash.yaml"
path: ./ruleset/reject.yaml
interval: 86400
proxy:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/proxy.txt"
path: ./ruleset/proxy.yaml
interval: 86400
gfw:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/gfw.txt"
path: ./ruleset/gfw.yaml
interval: 86400
greatfire:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/greatfire.txt"
path: ./ruleset/greatfire.yaml
interval: 86400
tld-not-cn:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/tld-not-cn.txt"
path: ./ruleset/tld-not-cn.yaml
interval: 86400
lancidr:
type: http
behavior: ipcidr
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/lancidr.txt"
path: ./ruleset/lancidr.yaml
interval: 86400
telegramcidr:
type: http
behavior: ipcidr
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/telegramcidr.txt"
path: ./ruleset/telegramcidr.yaml
interval: 86400
rules:
- RULE-SET,lancidr,DIRECT
# Microsoft Edge --start--
- DOMAIN-SUFFIX,edge.activity.windows.com,DIRECT
# end
# 海岛奇兵 --start--
- DOMAIN-SUFFIX,game.boombeachgame.com,PROXY
- DOMAIN-SUFFIX,boombox.scinbox.qq.com,PROXY
- DOMAIN-SUFFIX,supercell.helpshift.com,PROXY
# end
- RULE-SET,reject,REJECT
- RULE-SET,tld-not-cn,PROXY
- RULE-SET,proxy,PROXY
- RULE-SET,gfw,PROXY
- RULE-SET,greatfire,PROXY
- RULE-SET,telegramcidr,PROXY
- GEOIP,AE,PROXY
- GEOIP,AU,PROXY
- GEOIP,BR,PROXY
- GEOIP,CA,PROXY
- GEOIP,DE,PROXY
- GEOIP,DK,PROXY
- GEOIP,ES,PROXY
- GEOIP,FI,PROXY
- GEOIP,FR,PROXY
- GEOIP,GB,PROXY
- GEOIP,GR,PROXY
- GEOIP,HK,PROXY
- GEOIP,ID,PROXY
- GEOIP,IL,PROXY
- GEOIP,IN,PROXY
- GEOIP,IQ,PROXY
- GEOIP,IR,PROXY
- GEOIP,IT,PROXY
- GEOIP,JP,PROXY
- GEOIP,KR,PROXY
- GEOIP,MO,PROXY
- GEOIP,MY,PROXY
- GEOIP,NL,PROXY
- GEOIP,NO,PROXY
- GEOIP,NZ,PROXY
- GEOIP,PH,PROXY
- GEOIP,RU,PROXY
- GEOIP,SA,PROXY
- GEOIP,SG,PROXY
- GEOIP,TH,PROXY
- GEOIP,TR,PROXY
- GEOIP,TW,PROXY
- GEOIP,US,PROXY
- GEOIP,VN,PROXY
- MATCH,DIRECT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment