-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShadowrocket.conf
More file actions
94 lines (76 loc) · 5.86 KB
/
Shadowrocket.conf
File metadata and controls
94 lines (76 loc) · 5.86 KB
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
# Shadowrocket配置 2025/09/06
# ======= 注释 ======= #
# > Shadowrocket打开HTTPS解密方法:
# > 1 点击配置文件ⓘ - HTTPS解密 - 证书 - 安装证书
# > 2 手机设置 - 已下载描述文件 - 安装
# > 3 手机设置 - 通用 - 关于本机 - 证书信任设置 - 开启对应Shadowrocket证书信任
# ======= 手动 ======= #
# > 0. 首页 - + - 类型 Subscribe - URL 输入订阅地址
# > 1. 首页 - 全局路由 - 分组 - 简单模式 - 打开
# > 2. 配置 - 配置文件 - + - https://raw.githubusercontent.com/gitx6/ios_rule_script/main/Shadowrocket.conf + 选择新添加的配置文件
# > 3. 设置 - 按需求连接 - 始终开启 ON
# > 4. 设置 - 代理 - 代理类型 - None
# > 5. 设置 - 配置 - 自动后台更新 ON 提醒 ON
# > 6. 设置 - UDP - 禁用 STUN ON
# > 7. 设置 - 订阅 - 提醒 ON
# > 8. 设置 - GeoLite2 数据库 自动后台更新 ON 提醒 ON
# > 9. 请在「设置」-「GeoLite2资料库」-「国家」-「URL」填写下面链接
# https://raw.githubusercontent.com/Loyalsoldier/geoip/release/Country.mmdb
# > 10. 请在「设置」-「GeoLite2资料库」-「ASN」-「URL」填写下面链接
# https://raw.githubusercontent.com/Loyalsoldier/geoip/release/GeoLite2-ASN.mmdb
# > 11. 配置 - 模块 - https://whatshub.top/shadowrocket - 需要按照前述打开HTTPS解密
# > 12. 进阶 https://github.com/LOWERTOP/Shadowrocket
[General]
bypass-system = true
skip-proxy = localhost, *.local, passenger.t3go.cn, e.crashlytics.com, captive.apple.com, seed-sequoia.siri.apple.com, sequoia.siri.apple.com, sequoia.apple.com, app.yinxiang.com, injections.adguard.org, local.adguard.org, cable.auth.com, *.id.ui.direct, www.baidu.com, yunbusiness.ccb.com, wxh.wo.cn, gate.lagou.com, www.abchina.com.cn, 10.0.0.0/8, 100.64.0.0/10, 127.0.0.1/32, 169.254.0.0/16, 172.16.0.0/12, 192.168.0.0/16, 192.168.122.1/32, 193.168.0.1/32, 224.0.0.0/4, 240.0.0.0/4, 255.255.255.255/32, ::1/128, fc00::/7, fd00::/8, fe80::/10, ff00::/8, 2001::/32, 2001:db8::/32, 2002::/16, ::ffff:0:0:0:0/1, ::ffff:128:0:0:0/1
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.51.100.0/24, 203.0.113.0/24, 224.0.0.0/4, 255.255.255.255/32, 239.255.255.250/32
dns-server = 119.29.29.29, 223.5.5.5, 223.6.6.6
doh-server = https://dns.alidns.com/dns-query,https://doh.pub/dns-query
always-real-ip = *.lan, *.id.ui.direct, cable.auth.com, *.msftconnecttest.com, *.msftncsi.com, network-test.debian.org, detectportal.firefox.com, resolver1.opendns.com, *.srv.nintendo.net, *.stun.playstation.net, xbox.*.microsoft.com, *.xboxlive.com, stun.*, global.turn.twilio.com, global.stun.twilio.com, localhost.*.qq.com, localhost.*.weixin.qq.com, *.logon.battlenet.com.cn, *.logon.battle.net, *.blzstatic.cn, music.163.com, *.music.163.com, *.126.net, musicapi.taihe.com, music.taihe.com, songsearch.kugou.com, trackercdn.kugou.com, *.kuwo.cn, api-jooxtt.sanook.com, api.joox.com, joox.com, y.qq.com, *.y.qq.com, streamoc.music.tc.qq.com, mobileoc.music.tc.qq.com, isure.stream.qqmusic.qq.com, dl.stream.qqmusic.qq.com, aqqmusic.tc.qq.com, amobile.music.tc.qq.com, *.xiami.com, *.music.migu.cn, music.migu.cn, proxy.golang.org, *.mcdn.bilivideo.cn, *.cmpassport.com, id6.me, open.e.189.cn, mdn.open.wo.cn, auth.wosms.cn, *.jegotrip.com.cn, *.icitymobile.mobi, *.pingan.com.cn, *.cmbchina.com, pool.ntp.org, *.pool.ntp.org, ntp.*.com, time.*.com, ntp?.*.com, time?.*.com, time.*.gov, time.*.edu.cn, *.ntp.org.cn, PDC._msDCS.*.*, DC._msDCS.*.*, GC._msDCS.*.*
fallback-dns-server = system
ipv6 = false
prefer-ipv6 = false
dns-fallback-system = false
dns-direct-system = false
icmp-auto-reply = true
always-reject-url-rewrite = false
private-ip-answer = true
dns-direct-fallback-proxy = true
update-url = https://raw.githubusercontent.com/gitx6/ios_rule_script/main/Shadowrocket.conf
[Proxy Group]
[Rule]
# Advertising 广告
RULE-SET,https://raw.githubusercontent.com/Cats-Team/AdRules/main/adrules.list,REJECT
RULE-SET,https://raw.githubusercontent.com/VirgilClyne/GetSomeFries/main/ruleset/HTTPDNS.Block.list,REJECT
# Exception
RULE-SET,https://raw.githubusercontent.com/gitx6/ios_rule_script/main/LoonBlock.list,REJECT
RULE-SET,https://raw.githubusercontent.com/gitx6/ios_rule_script/main/LoonDirect.list,DIRECT
RULE-SET,https://raw.githubusercontent.com/gitx6/ios_rule_script/main/LoonProxy.list,PROXY
# AI
#RULE-SET,https://kelee.one/Tool/Loon/Rule/AI.list,CF
# TikTok
#RULE-SET,https://kelee.one/Tool/Loon/Rule/TikTok.list,CF
# Microsoft
#RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Shadowrocket/Microsoft/Microsoft.list,CF
# Domestic
GEOIP,CN,DIRECT
FINAL,PROXY
[Host]
[URL Rewrite]
# ======= Google搜索重写 ======= #
^https?://(www.)?g.cn https://www.google.com 302
^https?://(www.)?google.cn https://www.google.com 302
# ======= 油管视频广告请求 ======= #
(^https?:\/\/[\w-]+\.googlevideo\.com\/(?!dclk_video_ads).+?)&ctier=L(&.+?),ctier,(.+) $1$2$3 302
^https?:\/\/[\w-]+\.googlevideo\.com\/(?!(dclk_video_ads|videoplayback\?)).+&oad - reject
# ======= 需要手动添加模块 ====== #
# > 1 Youtube去广告及功能增强 https://github.com/Maasea/sgmodule/raw/master/YouTube.Enhance.sgmodule
# > 2 墨鱼去广告模块[去开屏2.0|喜马拉雅|哔哩哔哩|微博|KEEP|知乎|高德地图|小红书|网易云|什么值得买|菜鸟|彩云天气|豆瓣网页] https://github.com/ddgksf2013/Modules/raw/main/Adblock.sgmodule
# > 3 猫猫VIP解锁模块 https://github.com/ddgksf2013/Modules/raw/main/RevenueCat.Vip.sgmodule
# > 4 Spotify音乐VIP https://raw.githubusercontent.com/app2smile/rules/master/module/spotify.module
[Script]
[MITM]
enable = true
ca-passphrase =
ca-p12 =
hostname = www.google.cn, -*.facebook.com, -*.instagram.com, -*.twitter.com, -*.snssdk.com, -*.pstatp.com, -*.gateway.icloud.com, -*.gateway.icloud.com.cn, -*.weather-data.apple.com, -*.buy.itunes.apple.com