# Yaml : config.yaml
external-controller: 127.0.0.1:9090
mixed-port: 1080
allow-lan: false
mode: Rule
# info / warning / error / debug / silent
log-level: debug
# RESTful API for clash
dns:
enable: true
ipv6: false
listen: :53
enhanced-mode: fake-ip #redir-host #
nameserver:
- https://223.5.5.5/dns-query
- https://doh.pub/dns-query
fallback:
- 'https://cloudflare-dns.com/dns-query#PROXY'
- 'https://dns.google/dns-query#PROXY'
- 'tls://dns.google:853#PROXY'
fake-ip-filter:
- "dns.msftncsi.com"
- "www.msftconnecttest.com"
- "www.msftncsi.com"
fallback-filter:
# geoip: cn
geosite:
- geolocation-!cn # `geosite` filter only use fallback server to resolve ip, prevent DNS leaks to unsafe DNS providers.
domain:
# - +.example.com
ipcidr:
# - 0.0.0.0/32
tun:
enable: true
stack: gvisor #system #
dns-hijack:
- 198.18.0.2:53
auto-route: true # auto set global route
auto-detect-interface: true # conflict with interface-name
proxies:
---------
proxy-groups:
- name: "PROXY"
type: select
proxies:
---------
- name: "YouTube"
type: select
proxies:
---------
- name: "Final"
type: select
proxies:
- "PROXY"
rule-providers:
tencent:
type: http
behavior: ipcidr
url: "*"
path: ./ruleset/tencent.yaml
interval: 86400
alibaba:
type: http
behavior: ipcidr
url: "*"
path: ./ruleset/alibaba.yaml
interval: 86400
youtube:
type: http
behavior: classical
url: "*"
path: ./ruleset/youtube.yaml
interval: 86400
rules:
- PROCESS-NAME,v2ray.exe,DIRECT
- PROCESS-NAME,ss-local,DIRECT
- PROCESS-NAME,privoxy,DIRECT
- PROCESS-NAME,v2rayN.exe,DIRECT
- PROCESS-NAME,wvray.exe,DIRECT
- DOMAIN-SUFFIX,google.com,PROXY
- GEOSITE,private,DIRECT,no-resolve
- GEOIP,private,DIRECT,no-resolve
- GEOSITE,category-ads-all,REJECT
- RULE-SET,tencent,DIRECT
- RULE-SET,alibaba,DIRECT
- RULE-SET,youtube,YouTube
- DOMAIN-SUFFIX,cn,DIRECT
- GEOSITE,icloud@cn,DIRECT
- GEOSITE,apple@cn,DIRECT
- GEOSITE,apple-cn,DIRECT
- GEOSITE,microsoft@cn,DIRECT
- GEOSITE,category-games@cn,DIRECT
- GEOSITE,geolocation-cn,DIRECT
- GEOIP,cn,DIRECT
- MATCH,Final
time="2022-04-07T11:23:46+08:00" level=info msg="Start initial configuration in progress"
time="2022-04-07T11:23:46+08:00" level=warning msg="Auto detect interface: WLAN"
time="2022-04-07T11:23:46+08:00" level=info msg="Geodata Loader mode: memconservative"
time="2022-04-07T11:23:46+08:00" level=info msg="Start initial GeoSite rule private => DIRECT, records: 14"
time="2022-04-07T11:23:46+08:00" level=info msg="Start initial GeoSite rule category-ads-all => REJECT, records: 55156"
time="2022-04-07T11:23:46+08:00" level=info msg="Start initial GeoSite rule icloud@cn => DIRECT, records: 6"
time="2022-04-07T11:23:46+08:00" level=info msg="Start initial GeoSite rule apple@cn => DIRECT, records: 222"
time="2022-04-07T11:23:46+08:00" level=info msg="Start initial GeoSite rule apple-cn => DIRECT, records: 125"
time="2022-04-07T11:23:46+08:00" level=info msg="Start initial GeoSite rule microsoft@cn => DIRECT, records: 45"
time="2022-04-07T11:23:46+08:00" level=info msg="Start initial GeoSite rule category-games@cn => DIRECT, records: 51"
time="2022-04-07T11:23:46+08:00" level=info msg="Start initial GeoSite rule geolocation-cn => DIRECT, records: 2710"
time="2022-04-07T11:23:46+08:00" level=info msg="Start initial GeoSite dns fallback filter `geolocation-!cn`, records: 30176"
time="2022-04-07T11:23:46+08:00" level=info msg="Initial configuration complete, total time: 277ms"
time="2022-04-07T11:23:46+08:00" level=info msg="RESTful API listening at: 127.0.0.1:9090"
time="2022-04-07T11:23:46+08:00" level=info msg="DNS server listening at: [::]:53"
time="2022-04-07T11:23:46+08:00" level=info msg="Use interface name: WLAN"
time="2022-04-07T11:23:46+08:00" level=info msg="Mixed(http+socks) proxy listening at: 127.0.0.1:1080"
2022/04/07 11:23:46 Using existing driver 0.14
2022/04/07 11:23:46 Creating adapter
time="2022-04-07T11:23:47+08:00" level=info msg="TUN stack listening at: Meta(198.18.0.1), mtu: 9000, auto route: true, ip stack: gVisor"
time="2022-04-07T11:23:47+08:00" level=info msg="Start initial compatible provider default"
time="2022-04-07T11:23:47+08:00" level=info msg="Start initial compatible provider PROXY"
time="2022-04-07T11:23:47+08:00" level=info msg="Start initial compatible provider YouTube"
time="2022-04-07T11:23:47+08:00" level=info msg="Start initial compatible provider Final"
time="2022-04-07T11:23:47+08:00" level=info msg="Start initial provider tencent"
time="2022-04-07T11:23:47+08:00" level=info msg="Start initial provider alibaba"
time="2022-04-07T11:23:47+08:00" level=info msg="Start initial provider youtube"
time="2022-04-07T11:23:47+08:00" level=debug msg="[TUN] hijack dns udp: 198.18.0.2:53"
time="2022-04-07T11:23:47+08:00" level=debug msg="[Process] 224.0.0.251 from process \\Device\\HarddiskVolume3\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
time="2022-04-07T11:23:47+08:00" level=debug msg="[Process] chrome.cloudflare-dns.com from process \\Device\\HarddiskVolume3\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
time="2022-04-07T11:23:47+08:00" level=debug msg="[Process] 224.0.0.251 from process \\Device\\HarddiskVolume3\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
time="2022-04-07T11:23:47+08:00" level=debug msg="[Process] chrome.cloudflare-dns.com from process \\Device\\HarddiskVolume3\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
time="2022-04-07T11:23:47+08:00" level=debug msg="[Process] find process 224.0.0.252: process not found"
time="2022-04-07T11:23:47+08:00" level=debug msg="[Process] chrome.cloudflare-dns.com from process \\Device\\HarddiskVolume3\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
time="2022-04-07T11:23:47+08:00" level=debug msg="[Process] 224.0.0.251 from process \\Device\\HarddiskVolume3\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
time="2022-04-07T11:23:47+08:00" level=debug msg="[Process] 224.0.0.251 from process \\Device\\HarddiskVolume3\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
time="2022-04-07T11:23:47+08:00" level=debug msg="[Process] 198.18.255.255 from process :System"
time="2022-04-07T11:23:47+08:00" level=debug msg="[TUN] hijack dns udp: 198.18.0.2:53"
time="2022-04-07T11:23:47+08:00" level=debug msg="[Process] dmd.metaservices.microsoft.com from process \\Device\\HarddiskVolume3\\Windows\\System32\\svchost.exe"
time="2022-04-07T11:23:47+08:00" level=debug msg="[TUN] hijack dns udp:
time="2022-04-07T11:23:47+08:00" level=debug msg="[Process] 198.18.255.255 from process :System"
time="2022-04-07T11:23:48+08:00" level=debug msg="[Process] chrome.cloudflare-dns.com from process \\Device\\HarddiskVolume3\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
time="2022-04-07T11:23:48+08:00" level=debug msg="[Process] chrome.cloudflare-dns.com from process \\Device\\HarddiskVolume3\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
time="2022-04-07T11:23:48+08:00" level=debug msg="[Process] chrome.cloudflare-dns.com from process \\Device\\HarddiskVolume3\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
time="2022-04-07T11:23:48+08:00" level=debug msg="[TUN] hijack dns udp: 198.18.0.2:53"
time="2022-04-07T11:23:48+08:00" level=debug msg="[Process] 239.255.255.250 from process \\Device\\HarddiskVolume3\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
time="2022-04-07T11:23:48+08:00" level=debug msg="[Process] 198.18.255.255 from process :System"
time="2022-04-07T11:23:49+08:00" level=debug msg="[Process] 198.18.255.255 from process :System"
time="2022-04-07T11:23:49+08:00" level=debug msg="[Process] chrome.cloudflare-dns.com from process \\Device\\HarddiskVolume3\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
time="2022-04-07T11:23:49+08:00" level=debug msg="[Process] 239.255.255.250 from process \\Device\\HarddiskVolume3\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
time="2022-04-07T11:23:49+08:00" level=debug msg="[Process] chrome.cloudflare-dns.com from process \\Device\\HarddiskVolume3\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
time="2022-04-07T11:23:49+08:00" level=debug msg="[Process] chrome.cloudflare-dns.com from process \\Device\\HarddiskVolume3\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
time="2022-04-07T11:23:50+08:00" level=debug msg="[Process] 198.18.255.255 from process :System"
time="2022-04-07T11:23:50+08:00" level=debug msg="[Process] 198.18.255.255 from process :System"
time="2022-04-07T11:23:50+08:00" level=debug msg="[Process] 198.18.255.255 from process :System"
time="2022-04-07T11:23:50+08:00" level=debug msg="[Process] 239.255.255.250 from process \\Device\\HarddiskVolume3\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
time="2022-04-07T11:23:50+08:00" level=debug msg="[Process] 198.18.255.255 from process :System"
time="2022-04-07T11:23:50+08:00" level=debug msg="[Process] 198.18.255.255 from process :System"
time="2022-04-07T11:23:51+08:00" level=debug msg="[TUN] hijack dns udp: 198.18.0.2:53"
time="2022-04-07T11:23:51+08:00" level=debug msg="[Process] chrome.cloudflare-dns.com from process \\Device\\HarddiskVolume3\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
time="2022-04-07T11:23:51+08:00" level=debug msg="[Process] chrome.cloudflare-dns.com from process \\Device\\HarddiskVolume3\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
time="2022-04-07T11:23:51+08:00" level=debug msg="[Process] chrome.cloudflare-dns.com from process \\Device\\HarddiskVolume3\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
time="2022-04-07T11:23:51+08:00" level=debug msg="[Process] 224.0.0.251 from process \\Device\\HarddiskVolume3\\Windows\\System32\\svchost.exe"
time="2022-04-07T11:23:51+08:00" level=debug msg="[Process] 224.0.0.251 from process \\Device\\HarddiskVolume3\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
time="2022-04-07T11:23:51+08:00" level=debug msg="[Process] 239.255.255.250 from process \\Device\\HarddiskVolume3\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
time="2022-04-07T11:23:51+08:00" level=debug msg="[Process] 198.18.255.255 from process :System"
time="2022-04-07T11:23:51+08:00" level=debug msg="[Process] 198.18.255.255 from process :System"
time="2022-04-07T11:23:52+08:00" level=debug msg="[Process] 239.255.255.250 from process \\Device\\HarddiskVolume3\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
time="2022-04-07T11:23:52+08:00" level=debug msg="[Process] 198.18.255.255 from process :System"
time="2022-04-07T11:23:52+08:00" level=debug msg="[Process] 198.18.255.255 from process :System"
time="2022-04-07T11:23:53+08:00" level=debug msg="[Process] 239.255.255.250 from process \\Device\\HarddiskVolume3\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
time="2022-04-07T11:23:54+08:00" level=debug msg="[Process] 239.255.255.250 from process \\Device\\HarddiskVolume3\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
time="2022-04-07T11:23:54+08:00" level=debug msg="[Process] chrome.cloudflare-dns.com from process \\Device\\HarddiskVolume3\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
time="2022-04-07T11:23:54+08:00" level=warning msg="Clash shutting down"