-
Notifications
You must be signed in to change notification settings - Fork 5
/
sd.conf
65 lines (57 loc) · 2.89 KB
/
sd.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
# Shadowrocket: 17:05 2024/6/19
[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.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 = system
#dns-server = system, 223.5.5.5, 114.114.114.114, 8.8.8.8, 8.8.4.4
#http://www.alidns.com/ http://www.114dns.com/ https://dudns.baidu.com/intro/publicdns/
fallback-dns-server = system
ipv6 = true
prefer-ipv6 = false
dns-direct-system = false
icmp-auto-reply = true
always-reject-url-rewrite = false
private-ip-answer = true
# direct domain fail to resolve use proxy rule
dns-direct-fallback-proxy = true
# The fallback behavior when UDP traffic matches a policy that doesn't support the UDP relay. Possible values: DIRECT, REJECT.
udp-policy-not-supported-behaviour = REJECT
update-url = https://raw.githubusercontent.com/vokins/ad/main/sd.conf
[Rule]
# 规则设置
# DOMAIN:严格匹配某域名。
# DOMAIN-SUFFIX:匹配某域名及其子域名,如 DOMAIN-SUFFIX,apple.com 可以匹配 apple.com 和 www.apple.com,但是不会匹配 anapple.com。
# DOMAIN-KEYWORD:简单的字符串搜索,只要域名包含子串就会匹配。
# DOMAIN-SET:专为大量域名集列表文件设计,支持上万条记录的快速查询。文件中每行为一个域名,如果某行以 . 开头则表示匹配所有子域名和该域名本身。可用于广告过滤。
# 直连
#RULE-SET,https://raw.githubusercontent.com/vokins/ad/main/dr.list,DIRECT
#https://raw.githubusercontent.com/Script-Hub-Org/Script-Hub/main/modules/script-hub.rocket.module
# 广告
RULE-SET,http://script.hub/file/_start_/https://raw.githubusercontent.com/vokins/ad/main/ad.list/_end_/ad.list?type=rule-set&target=shadowrocket-rule-set&del=true,REJECT
# 代理
RULE-SET,http://script.hub/file/_start_/https://raw.githubusercontent.com/vokins/ad/main/pr.list/_end_/pr.list?type=rule-set&target=shadowrocket-rule-set&del=true,PROXY
RULE-SET,http://script.hub/file/_start_/https://core.telegram.org/resources/cidr.txt/_end_/cidr.list?type=rule-set&target=shadowrocket-rule-set&del=true,PROXY
# Block HTTP3/QUIC
# AND,((PROTOCOL,UDP),(DEST-PORT,443)),REJECT-NO-DROP
# UA
USER-AGENT,MicroMessenger*,DIRECT
USER-AGENT,QQ*,DIRECT
USER-AGENT,Speedtest*,DIRECT
USER-AGENT,TIM*,DIRECT
USER-AGENT,Telegram*,PROXY
# LAN #判断是否是局域网,如果是,走直连
IP-CIDR,192.168.0.0/16,DIRECT
IP-CIDR,10.0.0.0/8,DIRECT
IP-CIDR,172.16.0.0/12,DIRECT
IP-CIDR,127.0.0.0/8,DIRECT
# China #判断服务器所在地,如果是国内,走直连
GEOIP,CN,DIRECT
# Final #其他的走直连
#FINAL,PROXY
FINAL,DIRECT
[Host]
localhost = 127.0.0.1
[URL Rewrite]
^https?://(www.)?g.cn https://www.google.com 302
^https?://(www.)?google.cn https://www.google.com 302