forked from scomper/Surge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
surgeNew.conf
92 lines (83 loc) · 4.15 KB
/
surgeNew.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
[General]
loglevel = notify
skip-proxy = 127.0.0.1, 192.168.0.0/16, 193.168.0.0/24, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10,localhost,*.local
dns-server = 223.5.5.5, 119.29.29.29, 114.114.114.114, 101.6.6.6, 2001:da8::666
#doh-server = https://223.6.6.6/dns-query
always-real-ip = *.apple.com, *.srv.nintendo.net, *.stun.playstation.net, xbox.*.microsoft.com, *.xboxlive.com
external-controller-access = [email protected]:6170
ipv6 = true
exclude-simple-hostnames = true
allow-wifi-access = true
test-timeout = 5
[Replica]
hide-apple-request = true
[Proxy]
Proxy01 = https,adc-us.com,443,username = 用户名,password = 密码
Proxy02 = ss, abc-kt.com, 443, encrypt-method = rc4-md5, password = 密码
Proxy03 = socks5, abc-cn.com, 443, username = 用户名, password = 密码
Game01 = ss, abc-cn.com, 443, encrypt-method=aes-256-gcm, password=密码, udp-relay=true
Ad-Pass = direct
Ad-Block = reject
Ad-GIF = reject-tinygif
[Proxy Group]
Proxy = select, Auto, Scene, Video, Speed, Balance,Game01
AdBlock = select, Ad-GIF, Ad-Block, Ad-Pass
Scene = ssid, default = Auto, cellular = Speed, "SSIDNAME" = Auto
Auto = fallback, Proxy01,Proxy02,Proxy03, url = http://www.bing.com/
Video = url-test, Proxy02,Proxy03, url = http://www.bing.com/
Speed = url-test, Proxy01,Proxy02,Proxy03, url = http://www.bing.com/
Balance = load-balance, Proxy01,Proxy02,Proxy03, url = http://www.bing.com/
[Rule]
#Surge 更新自身或者外部资源更新用指定的 Proxy
PROCESS-NAME,Surge,Proxy
# Apple
USER-AGENT,geod*,DIRECT
USER-AGENT,App%20Store*,DIRECT
USER-AGENT,MacAppStore*,DIRECT
USER-AGENT,FBiOSSDK*,REJECT
USER-AGENT,%E8%BD%AF%E4%BB%B6%E6%9B%B4%E6%96%B0*,DIRECT
DOMAIN,ocsp.apple.com,Proxy
DOMAIN,apps.apple.com,Proxy
DOMAIN-SUFFIX,ampproject.org,Proxy
DOMAIN,reserve-prime.apple.com,DIRECT
DOMAIN-SUFFIX,scomper.me,DIRECT,notification-text="Welcome to scomper's blog."
AND,((SRC-IP,10.211.55.3), (DOMAIN-SUFFIX,scomper.me)),Proxy
AND,((PROCESS-NAME,Telegram), (OR,((IP-CIDR,0.0.0.0/8), (IP-CIDR,224.0.0.0/4)))),REJECT
# PS4 的IP,让游戏机走单独的代理,代理需要支持 UDP
SRC-IP,10.0.1.206,Game01
# DOMAIN-SET 广告过滤,自行选择开启
DOMAIN-SET,https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-surge2.txt,AdBlock
# DOMAIN-SET,https://raw.githubusercontent.com/scomper/surge-list/master/domain-set/adaway.txt,AdBlock
# DOMAIN-SET,https://raw.githubusercontent.com/scomper/surge-list/master/domain-set/annoyances-filter.txt,AdBlock
DOMAIN-SET,https://raw.githubusercontent.com/scomper/surge-list/master/domain-set/base-filter.txt,AdBlock
DOMAIN-SET,https://raw.githubusercontent.com/scomper/surge-list/master/domain-set/chinese-filter.txt,AdBlock
# DOMAIN-SET,https://raw.githubusercontent.com/scomper/surge-list/master/domain-set/neohosts.txt,AdBlock
# DOMAIN-SET,https://raw.githubusercontent.com/scomper/surge-list/master/domain-set/social-media-filter.txt,AdBlock
DOMAIN-SET,https://raw.githubusercontent.com/scomper/surge-list/master/domain-set/tracking-protection-filter.txt,AdBlock
# RULE-SET
RULE-SET,SYSTEM,DIRECT
RULE-SET,https://github.com/scomper/surge-list/raw/master/apple.list,Proxy
RULE-SET,https://github.com/scomper/surge-list/raw/master/adblock.list,AdBlock
RULE-SET,https://github.com/scomper/surge-list/raw/master/reject.list,AdBlock
RULE-SET,https://github.com/scomper/surge-list/raw/master/cn.list,DIRECT
RULE-SET,https://github.com/scomper/surge-list/raw/master/video.list,Video
AND,((RULE-SET,https://github.com/scomper/surge-list/raw/master/blocked.list), (PROTOCOL,UDP)),Game01
RULE-SET,https://github.com/scomper/surge-list/raw/master/telegram.list,Proxy
RULE-SET,LAN,DIRECT
# GeoIP CN
GEOIP,CN,DIRECT
PROTOCOL,UDP,Game01
FINAL,Proxy,dns-failed
[Host]
router.com = router
*.taobao.com = server:223.5.5.5
*.jd.com = server:223.5.5.5
*.tmall.com = server:223.5.5.5
owner-api.vn.tesla.services = server:223.5.5.5
[URL Rewrite]
^https?:\/\/(www.)?(g|google)\.cn https://www.google.com 302
[Header Rewrite]
^https?://www.zhihu.com/question/ header-replace User-Agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.45 Safari/537.36"
[SSID Setting]
"Apple Store" suspend=true
"iPhone X" cellular-mode=true