-
Notifications
You must be signed in to change notification settings - Fork 168
/
Shadowrocket.conf
185 lines (160 loc) · 7.4 KB
/
Shadowrocket.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
[General]
bypass-system = true
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local, captive.apple.com
tun-excluded-routes = 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.18.0.0/15, 198.51.100.0/24, 203.0.113.0/24, 224.0.0.0/4, 255.255.255.255/32
dns-server = https://dns.alidns.com/dns-query, 223.5.5.5, 114.114.114.114, 119.29.29.29
fallback-dns-server = system
ipv6 = false
prefer-ipv6 = false
dns-direct-system = false
dns-direct-fallback-proxy = true
icmp-auto-reply = true
always-reject-url-rewrite = false
private-ip-answer = true
[Rule]
# Reject
// 广告联盟版
RULE-SET,https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/BanAD.list,REJECT
// 常规版(默认未启用)
#DOMAIN-SET,https://raw.githubusercontent.com/Loyalsoldier/surge-rules/release/reject.txt,REJECT
// others
DOMAIN-SET,https://raw.githubusercontent.com/TG-Twilight/AWAvenue-Ads-Rule/main/Filters/AWAvenue-Ads-Rule-Surge.list,REJECT
DOMAIN-SUFFIX,log.tagtic.cn,REJECT
DOMAIN-SUFFIX,gzads.com,REJECT
DOMAIN-SUFFIX,gozendata.com,REJECT
DOMAIN-SUFFIX,gz-data.com,REJECT
DOMAIN-KEYWORD,umeng,REJECT
// google reject
DOMAIN-SUFFIX,ads.fmdisk.com,REJECT
DOMAIN-SUFFIX,ads.feemoo.com,REJECT
DOMAIN-SUFFIX,googleads.g.doubleclick.net,REJECT
DOMAIN-KEYWORD,googleads,REJECT
DOMAIN-SUFFIX,ads.google.com,REJECT
DOMAIN-SUFFIX,afd.l.google.com,REJECT
DOMAIN-SUFFIX,doubleclick.com,REJECT
DOMAIN-SUFFIX,doubleclick.net,REJECT
DOMAIN-SUFFIX,google-analytics.com,REJECT
DOMAIN-SUFFIX,googlesyndication.com,REJECT
DOMAIN-SUFFIX,googletagmanager.com,REJECT
DOMAIN-SUFFIX,googletakes.com,REJECT
DOMAIN-SUFFIX,mobileads.google.com,REJECT
# DIRECT
// China
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/China/China.list,DIRECT
DOMAIN-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/China/China_Domain.list,DIRECT
// WeChat
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/WeChat/WeChat.list,DIRECT
// BiliBili
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/BiliBili/BiliBili.list,DIRECT
// Weibo
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/Weibo/Weibo.list,DIRECT
// special direct
USER-AGENT,netease*,DIRECT
DOMAIN-SUFFIX,softpedia.com,DIRECT
DOMAIN-KEYWORD,moutai,DIRECT
DOMAIN-KEYWORD,sina,DIRECT
// Apple direct
DOMAIN-SET,https://raw.githubusercontent.com/Loyalsoldier/surge-rules/release/apple.txt,DIRECT
DOMAIN-SUFFIX,gdmf.apple.com,DIRECT
IP-CIDR,17.0.0.0/8,DIRECT,no-resolve
IP-CIDR,63.92.224.0/19,DIRECT,no-resolve
IP-CIDR,65.199.22.0/23,DIRECT,no-resolve
IP-CIDR,139.178.128.0/18,DIRECT,no-resolve
IP-CIDR,144.178.0.0/19,DIRECT,no-resolve
IP-CIDR,144.178.36.0/22,DIRECT,no-resolve
IP-CIDR,144.178.48.0/20,DIRECT,no-resolve
IP-CIDR,192.35.50.0/24,DIRECT,no-resolve
IP-CIDR,198.183.17.0/24,DIRECT,no-resolve
IP-CIDR,205.180.175.0/24,DIRECT,no-resolve
// steam direct
DOMAIN-SUFFIX,steamcdn-a.akamaihd.net,DIRECT
DOMAIN-SUFFIX,cm.steampowered.com,DIRECT
DOMAIN-SUFFIX,steamserver.net,DIRECT
DOMAIN-SUFFIX,cdn.mileweb.cs.steampowered.com.8686c.com,DIRECT
DOMAIN-SUFFIX,cdn-ws.content.steamchina.com,DIRECT
DOMAIN-SUFFIX,cdn-qc.content.steamchina.com,DIRECT
DOMAIN-SUFFIX,cdn-ali.content.steamchina.com,DIRECT
DOMAIN-SUFFIX,epicgames-download1-1251447533.file.myqcloud.com,DIRECT
DOMAIN-SUFFIX,dl.steam.clngaa.com,DIRECT
DOMAIN-SUFFIX,dl.steam.ksyna.com,DIRECT
DOMAIN-SUFFIX,st.dl.bscstorage.net,DIRECT
DOMAIN-SUFFIX,st.dl.eccdnx.com,DIRECT
DOMAIN-SUFFIX,st.dl.pinyuncloud.com,DIRECT
DOMAIN-SUFFIX,steampipe.steamcontent.tnkjmec.com,DIRECT
DOMAIN-SUFFIX,steampowered.com.8686c.com,DIRECT
DOMAIN-SUFFIX,steamstatic.com.8686c.com,DIRECT
DOMAIN-SUFFIX,wmsjsteam.com,DIRECT
DOMAIN-SUFFIX,xz.pphimalayanrt.com,DIRECT
DOMAIN-SUFFIX,cm.steampowered.com,DIRECT
DOMAIN-SUFFIX,steamcontent.com,DIRECT
DOMAIN-SUFFIX,steamusercontent.com,DIRECT
IP-CIDR,45.121.184.0/24,DIRECT,no-resolve
IP-CIDR,103.10.124.0/23,DIRECT,no-resolve
IP-CIDR,103.28.54.0/24,DIRECT,no-resolve
IP-CIDR,146.66.152.0/24,DIRECT,no-resolve
IP-CIDR,146.66.155.0/24,DIRECT,no-resolve
IP-CIDR,153.254.86.0/24,DIRECT,no-resolve
IP-CIDR,155.133.224.0/22,DIRECT,no-resolve
IP-CIDR,155.133.230.0/24,DIRECT,no-resolve
IP-CIDR,155.133.232.0/23,DIRECT,no-resolve
IP-CIDR,155.133.234.0/24,DIRECT,no-resolve
IP-CIDR,155.133.236.0/22,DIRECT,no-resolve
IP-CIDR,155.133.240.0/23,DIRECT,no-resolve
IP-CIDR,155.133.244.0/23,DIRECT,no-resolve
IP-CIDR,155.133.246.0/24,DIRECT,no-resolve
IP-CIDR,155.133.248.0/21,DIRECT,no-resolve
IP-CIDR,162.254.192.0/21,DIRECT,no-resolve
IP-CIDR,185.25.182.0/23,DIRECT,no-resolve
IP-CIDR,190.217.32.0/22,DIRECT,no-resolve
IP-CIDR,192.69.96.0/22,DIRECT,no-resolve
IP-CIDR,205.196.6.0/24,DIRECT,no-resolve
IP-CIDR,208.64.200.0/22,DIRECT,no-resolve
IP-CIDR,208.78.164.0/22,DIRECT,no-resolve
IP-CIDR,205.185.194.0/24,DIRECT,no-resolve
# PROXY
// 精简版
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/ProxyLite/ProxyLite.list,PROXY,force-remote-dns
// 常规版(默认未启用)
#RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/Proxy/Proxy.list,PROXY,force-remote-dns
#DOMAIN-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/Proxy/Proxy_Domain.list,PROXY,force-remote-dns
// Telegram
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/Telegram/Telegram.list,PROXY,force-remote-dns
// AI
RULE-SET,https://kelee.one/Tool/Loon/Rule/AI.list,PROXY,force-remote-dns
// GitHub
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/GitHub/GitHub.list,PROXY,force-remote-dns
// special proxy
DOMAIN-SUFFIX,developer.apple.com,PROXY,force-remote-dns
DOMAIN-SUFFIX,v2ex.com,PROXY,force-remote-dns
DOMAIN-SUFFIX,emby.wtf,PROXY,force-remote-dns
// steam proxy
DOMAIN-SUFFIX,steamcommunity-a.akamaihd.net,PROXY,force-remote-dns
DOMAIN-SUFFIX,steamstore-a.akamaihd.net,PROXY,force-remote-dns
DOMAIN-SUFFIX,steam-chat.com,PROXY,force-remote-dns
DOMAIN-SUFFIX,steamcommunity.com,PROXY,force-remote-dns
// google proxy
DOMAIN-SUFFIX,ampproject.org,PROXY,force-remote-dns
DOMAIN-SUFFIX,ampproject.net,PROXY,force-remote-dns
DOMAIN-SUFFIX,goo.gl,PROXY,force-remote-dns
DOMAIN-SUFFIX,gvt1.com,PROXY,force-remote-dns
DOMAIN-SUFFIX,youtu.be,PROXY,force-remote-dns
DOMAIN-SUFFIX,ytimg.com,PROXY,force-remote-dns
DOMAIN-SUFFIX,ggpht.com,PROXY,force-remote-dns
DOMAIN-KEYWORD,gmail,PROXY,force-remote-dns
DOMAIN-KEYWORD,google,PROXY,force-remote-dns
DOMAIN-KEYWORD,gstatic,PROXY,force-remote-dns
DOMAIN-KEYWORD,youtube,PROXY,force-remote-dns
DOMAIN-KEYWORD,googleapis.cn,PROXY,force-remote-dns
// 本地/局域网地址
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/Lan/Lan.list,DIRECT
# ASN-CN 列表(若启用先取消下行注释,再删除或注释 "GEOIP,CN,DIRECT")
#RULE-SET,https://raw.githubusercontent.com/deezertidal/shadowrocket-rules/main/rule/ASN-CN.list,DIRECT
#推荐geoip数据库:https://raw.githubusercontent.com/Loyalsoldier/geoip/release/Country-only-cn-private.mmdb
GEOIP,CN,DIRECT
FINAL,PROXY
[Host]
localhost = 127.0.0.1
[URL Rewrite]
^https?:\/\/(www.)?(g|google)\.(cn|com\.hk) https://www.google.com 302
[MITM]
hostname = *.google.cn,*.google.com.hk