forked from blankmagic/surge
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSurge_Pro.conf
126 lines (111 loc) · 8.85 KB
/
Surge_Pro.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
[General]
loglevel = notify
bypass-system = true
internet-test-url = http://bing.com
proxy-test-url = http://www.qualcomm.cn/generate_204
test-timeout = 3
ipv6 = true
allow-wifi-access = true
wifi-assist = true
external-controller-access = maicoo@127.0.0.1:6170
compatibility-mode = false
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 17.0.0.0/8, 100.64.0.0/10, 127.0.0.1, ::ffff:0.0.0.0/1, ::ffff:128.0.0.0/1, localhost, *.local, *.crashlytics.com
// TLS Provider
tls-provider = openssl
network-framework = false
// DNS Server
dns-server = 223.5.5.5, 8.8.8.8, 2400:3200::1
#doh-server = https://dns.rubyfish.cn/dns-query
doh-format = wireformat
// Others
show-error-page-for-reject = true
# > NextDNS (https://nextdns.io/)
always-real-ip = link-ip.nextdns.io
hijack-dns = 8.8.8.8:53, 8.8.4.4:53
# > TCP Force HTTP Hosts
force-http-engine-hosts = 123.59.31.1, 119.18.193.135, 122.14.246.33, 175.102.178.52
tun-excluded-routes = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
tun-included-routes = 192.168.1.12/32
[Replica]
# 抓取流量 => 过滤器
# > 隐藏 Apple 请求
hide-apple-request= 1
# > 隐藏 Crash Reporter 请求
hide-crash-reporter-request = 0
# > 隐藏 UDP 会话
hide-udp= 0
# > 关键词过滤器
keyword-filter-type= blacklist
keyword-filter= icloud, ocsp, logs, analytic, imap, adthor, applovin, appnext, talk, dropbox, github, spys, 149.154, 91.108
[Proxy]
# 当请求为 HTTP 请求时返回一个极小的 GIF
ad-gif = reject-tinygif
# 阻止请求
ad-block = reject
# 直接连接
DIRECT = direct
[Proxy Group]
# 白名单模式 PROXY,黑名单模式 DIRECT
𝗙𝗶𝗻𝗮𝗹 = select, DIRECT, 𝙋𝙍𝙊𝙓𝙔 ⛷
# ssid: 具体哪个子策略将被使用, 根据 Wi-FI 的 SSID 决定
# 𝗛𝗼𝗺𝗲 ⛺️ = ssid, default = 𝙋𝙍𝙊𝙓𝙔 ⛷, cellular = 𝙋𝙍𝙊𝙓𝙔 ⛷, "ssid1" = 𝙋𝙍𝙊𝙓𝙔 ⛷, "ssid2" = DIRECT, "ssid3" = 𝙋𝙍𝙊𝙓𝙔 ⛷
𝙋𝙍𝙊𝙓𝙔 ⛷ = url-test, policy-path=订阅地址, url=http://www.gstatic.com/generate_204, interval=600, tolerance=50
𝙎𝙀𝙇𝙀𝘾𝙏 🪁 = select, policy-path=订阅地址
𝗬𝗼𝘂𝗧𝘂𝗯𝗲 = select, 𝙋𝙍𝙊𝙓𝙔 ⛷, DIRECT
𝗡𝗲𝘁𝗳𝗹𝗶𝘅 = select, 𝙎𝙀𝙇𝙀𝘾𝙏 🪁
𝗚𝗹𝗼𝗯𝗮𝗹𝗠𝗲𝗱𝗶𝗮 = select, 𝙋𝙍𝙊𝙓𝙔 ⛷, DIRECT
𝗔𝘀𝗶𝗮𝗻𝗠𝗲𝗱𝗶𝗮 = select, 𝙎𝙀𝙇𝙀𝘾𝙏 🪁, DIRECT
𝗧𝗲𝗹𝗲𝗴𝗿𝗮𝗺 = select, 𝙋𝙍𝙊𝙓𝙔 ⛷, DIRECT
𝗔𝗽𝗽𝗹𝗲 = select, DIRECT, 𝙋𝙍𝙊𝙓𝙔 ⛷
[Rule]
# RULE-SET
# > YouTube、Netflix、PronHub
RULE-SET,https://raw.githubusercontent.com/maicoo-l/Surge/master/rules/media/YouTube.list,𝗬𝗼𝘂𝗧𝘂𝗯𝗲
RULE-SET,https://raw.githubusercontent.com/maicoo-l/Surge/master/rules/media/Netflix.list,𝗡𝗲𝘁𝗳𝗹𝗶𝘅
RULE-SET,https://raw.githubusercontent.com/maicoo-l/Surge/master/rules/media/Pornhub.list,𝙋𝙍𝙊𝙓𝙔 ⛷
# > GlobalMedia Services
RULE-SET,https://raw.githubusercontent.com/maicoo-l/Surge/master/rules/GlobalMedia.list,𝗚𝗹𝗼𝗯𝗮𝗹𝗠𝗲𝗱𝗶𝗮
# > AsianMedia Services
RULE-SET,https://raw.githubusercontent.com/maicoo-l/Surge/master/rules/AsianMedia.list,𝗔𝘀𝗶𝗮𝗻𝗠𝗲𝗱𝗶𝗮
RULE-SET,https://raw.githubusercontent.com/maicoo-l/Surge/master/rules/Telegram.list,𝗧𝗲𝗹𝗲𝗴𝗿𝗮𝗺
# > Outlook、Gmail
RULE-SET,https://raw.githubusercontent.com/maicoo-l/Surge/master/rules/Mail.list,𝙋𝙍𝙊𝙓𝙔 ⛷
# > Proxy
RULE-SET,https://raw.githubusercontent.com/maicoo-l/Surge/master/rules/Global.list,𝙋𝙍𝙊𝙓𝙔 ⛷
# > Direct and Domestic
RULE-SET,https://raw.githubusercontent.com/maicoo-l/Surge/master/rules/China.list,DIRECT
# > Apple Services
RULE-SET,https://raw.githubusercontent.com/maicoo-l/Surge/master/rules/Apple.list,𝗔𝗽𝗽𝗹𝗲
# Surge 的自动 REJECT 保护丢包,防止应用循环请求
IP-CIDR,0.0.0.0/32,REJECT
# Local Area Network
RULE-SET,LAN,DIRECT
# GeoIP China
GEOIP,CN,DIRECT
FINAL,𝗙𝗶𝗻𝗮𝗹,dns-failed
[Host]
# NextDNS (https://nextdns.io/)
*.nextdns.io = server:8.8.8.8
# CUSTOM DNS
[URL Rewrite]
# CUSTOM URL
[MITM]
skip-server-cert-verify = true
hostname = -*.googlevideo.com,*.snssdk.com, -Custom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j2pL5xUD9iKALg9FQLX7BfV6He62e38Zggmf01TrBZG3s/njPQL556ClN7r8CZfpSsGHNWsoTPeP71Uipgp8hcem71U4islPoyYrQ+nufqEPphtswq5DFsMCMGCSqGSIb3DQEJFTEWBBSqQgk5gDVjxkBJb64eSFLoljjRKzBFBgkqhkiG9w0BCRQxOB42AFMAdQByAGcAZQAgAEcAZQBuAGUAcgBhAHQAZQBkACAAQwBBACAARABEADAAQwAxAEYAQgBEMC0wITAJBgUrDgMCGgUABBR+wuuNk8hmWb8MXPW1qU2Ir9PfEwQI1LpT1I6QCUI=
[Script]
# > Appstore Speed up download
Dnspod = type=dns,script-path=https://raw.githubusercontent.com/maicoo-l/Surge/master/Script/dnspod.js,script-update-interval=-1
# > Outbound Mode
Outbound-changed = type=event,event-name=network-changed,debug=1,script-path=JS/Outbound Mode.js
# > 天气、降雨概率、风速、紫外线。。。(需要填key)
天气预报 = type=cron,cronexp=0 0 8-20/3 * * *,script-path=https://raw.githubusercontent.com/maicoo-l/Surge/master/Script/weather_pro.js
# > DingDing clock in
钉钉打卡提醒 = type=cron,cronexp=0 9,18 * * 1-5,script-path=https://raw.githubusercontent.com/yichahucha/surge/master/clock_in.js
# > Super’s Remove Ad & Logo
# 如果只需要去广告安装Rewrite模块即可,强烈建议禁用该脚本,在需要的时候开启脚本去水印!!
//Super’s = type=http-response,pattern=^https?:\/\/.*\.snssdk\.com/bds/feed/stream/,requires-body=1,max-size=-1,script-path=https://raw.githubusercontent.com/Liquor030/Sub_Ruleset/master/Script/Super.js,script-update-interval=0
# > bear unlock pro
//bear = requires-body=1,max-size=0,type=http-response,pattern=^https:\/\/buy\.itunes\.apple\.com\/verifyReceipt,script-path=JS/bear.js