#default config
#Date: 2022.06.01
#Author: Loon

[General]
doh-server = https://dns.alidns.com/dns-query,https://dns.google/dns-query
ipv6 = false
skip-proxy = 192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,localhost,*.local,e.crashlynatics.com
bypass-tun = 10.0.0.0/8,100.64.0.0/10,127.0.0.0/8,169.254.0.0/16,172.16.0.0/12,192.0.0.0/24,192.0.2.0/24,192.88.99.0/24,192.168.0.0/16,198.51.100.0/24,203.0.113.0/24,224.0.0.0/4,255.255.255.255/32
dns-server = system,119.29.29.29,114.114.114.114,223.5.5.5,8.8.4.4,8.8.8.8
allow-wifi-access = false
wifi-access-http-port = 7222
wifi-access-socks5-port = 7221
proxy-test-url = http://cp.cloudflare.com/generate_204
test-timeout = 3
interface-mode = auto

[Proxy]

[Remote Proxy]

[Proxy Group]

[Remote Filter]

[Rule]
#Type:DOMAIN-SUFFIX,DOMAIN,DOMAIN-KEYWORD,USER-AGENT,URL-REGEX,IP-CIDR
#Strategy:DIRECT,PROXY,REJECT
#Options:no-resolve(only for cidr)

# DIRECT
# PROXY
# Ads

GEOIP,cn,DIRECT
FINAL,PROXY

[Remote Rule]
https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/BanAD.list, policy=REJECT-DROP, tag=广告联盟, enabled=true
https://raw.githubusercontent.com/Loyalsoldier/surge-rules/release/ruleset/reject.txt, policy=REJECT-DROP, tag=ads, enabled=false
https://raw.githubusercontent.com/VirgilClyne/GetSomeFries/auto-update/ruleset/ASN.China.list, policy=DIRECT, tag=🌐ASN for Mainland China, enabled=true
https://raw.githubusercontent.com/Loyalsoldier/surge-rules/release/ruleset/apple.txt, policy=DIRECT, tag=Apple, enabled=true
https://github.com/ACL4SSR/ACL4SSR/raw/master/Clash/Ruleset/Wechat.list, policy=DIRECT, tag=wechat, enabled=true
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/YouTube/YouTube.list, policy=PROXY, tag=YouTube, enabled=true
https://raw.githubusercontent.com/VirgilClyne/GetSomeFries/main/ruleset/ASN.Telegram.list, policy=PROXY, tag=🌐ASN for Telegram Messenger Inc, enabled=true
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/Proxy/Proxy.list, policy=PROXY, tag=Global, enabled=true

[Host]

[Rewrite]
^https?:\/\/(www.)?(g|google)\.(cn|com\.hk) 302 https://www.google.com

[Script]

[Remote Script]

[Plugin]

[Mitm]
#ca-p12 =
#ca-passphrase =
hostname = *.google.cn,*.google.com.hk
skip-server-cert-verify = true