mirror of
https://github.com/ssrsub/ssr.git
synced 2025-10-11 13:35:36 +08:00
140 lines
4.7 KiB
Plaintext
140 lines
4.7 KiB
Plaintext
#!MANAGED-CONFIG https://raw.githubusercontent.com/ssrsub/ssr/master/Surge.conf interval=86400
|
|
|
|
|
|
[General]
|
|
// Auto
|
|
loglevel = notify
|
|
dns-server = system,1.2.4.8,223.5.5.5,223.6.6.6
|
|
skip-proxy = 127.0.0.1,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,100.64.0.0/10,17.0.0.0/8,localhost,*.local,*.crashlytics.com
|
|
|
|
// iOS
|
|
external-controller-access = lhie1@0.0.0.0:6170
|
|
|
|
allow-wifi-access = true
|
|
|
|
// macOS
|
|
interface = 0.0.0.0
|
|
socks-interface = 0.0.0.0
|
|
port = 8888
|
|
socks-port = 8889
|
|
|
|
enhanced-mode-by-rule = false
|
|
show-error-page-for-reject = true
|
|
|
|
// Auto
|
|
exclude-simple-hostnames = true
|
|
ipv6 = true
|
|
replica = false
|
|
|
|
[Replica]
|
|
hide-apple-request = true
|
|
hide-crashlytics-request = true
|
|
hide-udp = false
|
|
use-keyword-filter = false
|
|
|
|
[Proxy]
|
|
🚀 Direct = direct
|
|
|
|
[Proxy Group]
|
|
🍃 Proxy = select, @SSRSUB, 🏃 Auto, 🚀 Direct
|
|
@SSRSUB = select, policy-path=https://gist.githubusercontent.com/ssrsub/0c8e688ab68f9433ef036a8d7d1447de/raw/5dff28871997fa6efc86a6b38ef26a21a35f8acc/surge.conf, update-interval=0
|
|
🏃 Auto = url-test, url=http://www.gstatic.com/generate_204, policy-path=https://gist.githubusercontent.com/ssrsub/0c8e688ab68f9433ef036a8d7d1447de/raw/5dff28871997fa6efc86a6b38ef26a21a35f8acc/surge.conf, update-interval=0, timeout=0, interval=1200, tolerance=0
|
|
🍂 Domestic = select, 🚀 Direct, 🍃 Proxy
|
|
🍎 Only = select, 🚀 Direct
|
|
☁️ Others = select , 🍃 Proxy, 🚀 Direct
|
|
|
|
[Rule]
|
|
|
|
|
|
# Custom
|
|
|
|
|
|
|
|
|
|
RULE-SET,SYSTEM,DIRECT
|
|
RULE-SET,https://raw.githubusercontent.com/lhie1/Rules/master/Surge3/Apple.list,🍎 Only
|
|
|
|
RULE-SET,https://raw.githubusercontent.com/lhie1/Rules/master/Surge3/AsianTV.list,🍂 Domestic
|
|
RULE-SET,https://raw.githubusercontent.com/lhie1/Rules/master/Surge3/GlobalTV.list,🍃 Proxy
|
|
RULE-SET,https://raw.githubusercontent.com/lhie1/Rules/master/Surge3/Proxy.list,🍃 Proxy
|
|
RULE-SET,https://raw.githubusercontent.com/lhie1/Rules/master/Surge3/Domestic.list,🍂 Domestic
|
|
RULE-SET,LAN,DIRECT
|
|
|
|
|
|
// Detect local network
|
|
GEOIP, CN, 🍂 Domestic
|
|
// Use Proxy for all others
|
|
FINAL, ☁️ Others, dns-failed
|
|
|
|
[Host]
|
|
|
|
|
|
// custom host
|
|
|
|
|
|
|
|
[URL Rewrite]
|
|
# > Google_Service_HTTPS_Jump
|
|
https?://(www.)?g.cn https://www.google.com 302
|
|
https?://(www.)?google.cn https://www.google.com 302
|
|
|
|
# > Anti_ISP_JD_Hijack
|
|
https?://coupon.m.jd.com/ https://coupon.m.jd.com/ 302
|
|
https?://h5.m.jd.com/ https://h5.m.jd.com/ 302
|
|
https?://item.m.jd.com/ https://item.m.jd.com/ 302
|
|
https?://m.jd.com/ https://m.jd.com/ 302
|
|
https?://newcz.m.jd.com/ https://newcz.m.jd.com/ 302
|
|
https?://p.m.jd.com/ https://p.m.jd.com/ 302
|
|
https?://so.m.jd.com/ https://so.m.jd.com/ 302
|
|
https?://union.click.jd.com/jda? http://union.click.jd.com/jda?adblock= header
|
|
https?://union.click.jd.com/sem.php? http://union.click.jd.com/sem.php?adblock= header
|
|
https?://www.jd.com/ https://www.jd.com/ 302
|
|
|
|
# > Anti_ISP_Taobao_Hijack
|
|
https?://m.taobao.com/ https://m.taobao.com/ 302
|
|
|
|
# > Wiki
|
|
https?://.+.(m.)?wikipedia.org/wiki http://www.wikiwand.com/en 302
|
|
https?://zh.(m.)?wikipedia.org/(zh-hans|zh-sg|zh-cn|zh(?=/)) http://www.wikiwand.com/zh 302
|
|
https?://zh.(m.)?wikipedia.org/zh-[a-zA-Z]{2,} http://www.wikiwand.com/zh-hant 302
|
|
|
|
# > NOMO
|
|
https://nomo.dafork.com/api/v3/iap/ios_product_list https://files.catbox.moe/fgmkpy.json 302
|
|
|
|
# > Other
|
|
https?://cfg.m.ttkvod.com/mobile/ttk_mobile_1.8.txt http://ogtre5vp0.bkt.clouddn.com/Static/TXT/ttk_mobile_1.8.txt header
|
|
https?://cnzz.com/ http://ogtre5vp0.bkt.clouddn.com/background.png? header
|
|
https?://m.qu.la/stylewap/js/wap.js http://ogtre5vp0.bkt.clouddn.com/qu_la_wap.js 302
|
|
https?://m.yhd.com/1/\? http://m.yhd.com/1/?adbock= 302
|
|
https?://n.mark.letv.com/m3u8api/ http://burpsuite.applinzi.com/Interface header
|
|
https?://sqimg.qq.com/ http://sqimg.qq.com/ 302
|
|
https?://static.m.ttkvod.com/static_cahce/index/index.txt http://ogtre5vp0.bkt.clouddn.com/Static/TXT/index.txt header
|
|
https?://www.iqshw.com/d/js/m http://burpsuite.applinzi.com/Interface header
|
|
https?://www.iqshw.com/d/js/m http://rewrite.websocket.site:10/Other/Static/JS/Package.js? header
|
|
|
|
// custom url rewrite
|
|
|
|
|
|
|
|
|
|
|
|
[Header Rewrite]
|
|
^*.bdimg.com header-del Referer
|
|
^*.qpic.cn header-replace User-Agent WeChat/6.5.22.32 CFNetwork/889.9 Darwin/17.2.0
|
|
^*.qpic.cn header-del Referer
|
|
^*.ph.126.net header-del Referer
|
|
^*.zhimg.com header-del Referer
|
|
^*.cnbetacdn.com header-del Referer
|
|
^*.zhiding.cn header-del Referer
|
|
^*.c114.com.cn header-del Referer
|
|
^https?://www.biquge.com.tw header-del Cookie
|
|
^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
|
|
|
|
// custom header rewrite
|
|
|
|
|
|
|
|
[SSID Setting]
|
|
// custom ssid
|
|
|