-
Notifications
You must be signed in to change notification settings - Fork 3
/
advance-DIRECT.conf
37 lines (34 loc) · 1.63 KB
/
advance-DIRECT.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
# Shadowrocket: 2023-10-01 15:30:00
[General]
bypass-system = true
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 127.0.0.0/8, 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, 233.252.0.0/24, 255.255.255.255/32
dns-server = 223.5.5.5, 223.6.6.6
fallback-dns-server = system
always-real-ip = *.apple.com,*.icloud.com
ipv6 = true
prefer-ipv6 = false
dns-fallback-system = 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
[Rule]
IP-CIDR,0.0.0.0/32,REJECT-DROP
# RuleSets
DOMAIN-SET,https://cdn.jsdelivr.net/gh/harmonsir/Shadowrocket-rules@main/ruleset-ocsp.conf,DIRECT
DOMAIN-SET,https://cdn.jsdelivr.net/gh/harmonsir/Shadowrocket-rules@main/ruleset-adguard-dns.conf,REJECT
DOMAIN-SET,https://cdn.jsdelivr.net/gh/harmonsir/Shadowrocket-rules@main/ruleset-adguard-easylistCN.conf,REJECT
RULE-SET,https://cdn.jsdelivr.net/gh/harmonsir/Shadowrocket-rules@main/ruleset-v2fly-ads.conf,REJECT
RULE-SET,https://cdn.jsdelivr.net/gh/harmonsir/Shadowrocket-rules@main/ruleset-v2fly-proxy.conf,PROXY
# Final
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