forked from scomper/Surge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
36 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
# 配置为策略组模式(groupList ) | ||
# 本地需创建 Auto/groupAuto.list;Video/groupHK.list;Speed/groupSpeed.list | ||
# Auto、Video 群组建议各放 2~3 个服务器,Speed 中放 6~9 个服务器,如此 UI 显示会更清爽 | ||
# 简单策略模式参见 https://github.com/scomper/Surge/blob/master/surge3.conf.ini | ||
# 详情可阅读 [Surge Mac 3 配置文件变化](https://scomper.me/surge/surge3-mac-pei-zhi-bian-hua) | ||
|
||
|
||
[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, 8.8.8.8, system | ||
dns-server = 223.5.5.5, 119.29.29.29, 114.114.114.114 | ||
external-controller-access = [email protected]:6170 | ||
ipv6 = false | ||
exclude-simple-hostnames = true | ||
|
@@ -13,19 +20,17 @@ socks5-listen = 0.0.0.0:8889 | |
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 = 密码 | ||
Ad-Pass = direct | ||
Ad-Block = reject | ||
Ad-GIF = reject-tinygif | ||
|
||
[Proxy Group] | ||
Proxy = select, Auto, Proxy01 , Proxy02, Proxy03 | ||
Scene = ssid, default = Auto, cellular = Proxy01 | ||
Auto = fallback, Proxy01, Proxy02, Proxy03, url = http://www.bing.com/ | ||
Video = url-test, Proxy02, Proxy03, url = http://www.bing.com | ||
AdBlock = select, Ad-GIF,Ad-Block,Ad-Pass | ||
Proxy = select, Auto, Scene, Video, Speed | ||
AdBlock = select, Ad-GIF, Ad-Block, Ad-Pass | ||
Scene = ssid, default = Auto, cellular = Speed, "SSIDNAME" = Auto | ||
Auto = fallback, policy-path=groupAuto.list, url = http://www.bing.com/ | ||
Video = url-test, policy-path=groupHK.list, url = http://www.bing.com/ | ||
Speed = url-test, policy-path=groupSpeed.list, url = http://www.bing.com/ | ||
|
||
[Rule] | ||
USER-AGENT,App%20Store*,DIRECT | ||
|
@@ -38,7 +43,7 @@ DOMAIN,guzzoni.apple.com,DIRECT | |
DOMAIN-SUFFIX,cdn-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 | ||
|
||
# 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 | ||
|
@@ -48,7 +53,7 @@ RULE-SET,https://github.com/scomper/surge-list/raw/master/video.list,Video | |
RULE-SET,https://github.com/scomper/surge-list/raw/master/blocked.list,Proxy | ||
RULE-SET,https://github.com/scomper/surge-list/raw/master/telegram.list,Proxy | ||
RULE-SET,LAN,DIRECT | ||
|
||
# GeoIP CN | ||
GEOIP,CN,DIRECT | ||
FINAL,Proxy,dns-failed | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ loglevel = notify | |
# (macOS 版本中,如果启用了 Set as System Proxy, 这些值会被写入到系统网络代理设置.) | ||
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 服务器 | ||
dns-server = 223.5.5.5, 119.29.29.29, 114.114.114.114, 8.8.8.8, system | ||
dns-server = 223.5.5.5, 119.29.29.29, 114.114.114.114 | ||
|
||
# 允许外部控制器访问 Surge,Surge Dashboard 或 Surge CLI 进行管理控制 | ||
external-controller-access = [email protected]:6170 | ||
|
@@ -41,50 +41,59 @@ hide-apple-request = true | |
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 = 密码 | ||
|
||
# 利用服务器定义的方式实现的广告通过选择 | ||
# Ad-Pass 不拦截广告,Ad-Block 直接拒绝,Ad-GIF 返回一个透明像素图 | ||
Ad-Pass = direct | ||
Ad-Block = reject | ||
Ad-GIF = reject-tinygif | ||
|
||
|
||
# 该段定义可用的策略组 | ||
# 有 4 种策略组类型: "select", "url-test","fallback" 和 "ssid" | ||
# select: 具体哪个子策略将被使用,由用户界面上进行选择。 | ||
# url-test: 具体哪个子策略将被使用,通过测试到具体 URL 的访问速度选择 | ||
# fallback: 具体哪个子策略将被使用,通过测试到具体 URL 的可用性决定 | ||
# ssid: 具体哪个子策略将被使用,根据 Wi-FI 的 SSID 决定 | ||
|
||
[Proxy Group] | ||
Proxy = select, Auto, Proxy01 , Proxy02, Proxy03 | ||
Scene = ssid, default = Auto, cellular = Proxy01 | ||
# 以代理服务器的选择模式实现广告的通过选择 | ||
AdBlock = select, Ad-GIF,Ad-Block,Ad-Pass | ||
# 场景选择模式 | ||
# 缺省走 Auto;蜂窝网络走 Proxy01; | ||
# 接入 Wi-Fi 时走 Auto(SSIDNAME 改成需要判断的 Wi-Fi 的名称) | ||
Scene = ssid, default = Auto, cellular = Proxy01, "SSIDNAME" = Auto | ||
# 自动选择代理 | ||
Auto = fallback, Proxy01, Proxy02, Proxy03, url = http://www.bing.com/ | ||
# Video 策略群组的写法,将用于视频服务的代理放在一个群组(Netflix会判断代理的地域) | ||
# Video = url-test, policy-path=groupHK.list, url = http://www.bing.com/ | ||
# Video 策略群组的写法,将用于视频服务的代理放在一个群组(Netflix会判断代理的地域) | ||
# Video = url-test, policy-path=groupHK.list, url = http://www.bing.com/ | ||
|
||
# Video 策略组的简单写法,两种写法可选一个 | ||
Video = url-test, Proxy02, Proxy03, url = http://www.bing.com | ||
# 以代理服务器的选择模式实现广告的通过选择 | ||
AdBlock = select, Ad-GIF,Ad-Block,Ad-Pass | ||
|
||
|
||
# 规则定义部分 | ||
[Rule] | ||
# Apple 的下载规则前置走直连 | ||
USER-AGENT,App%20Store*,DIRECT | ||
USER-AGENT,MacAppStore*,DIRECT | ||
USER-AGENT,%E8%BD%AF%E4%BB%B6%E6%9B%B4%E6%96%B0*,DIRECT | ||
|
||
# HTTP 规则,基于正则表达式匹配 URL 请求 | ||
URL-REGEX,^https?://www\.duokan\.com/pictures?,REJECT | ||
URL-REGEX,^https?://www\.duokan\.com/promotion_day,REJECT | ||
|
||
# 其它前置规则 | ||
DOMAIN,reserve-prime.apple.com,DIRECT | ||
DOMAIN,guzzoni.apple.com,DIRECT | ||
DOMAIN-SUFFIX,cdn-apple.com,DIRECT | ||
|
||
# 触发通知,匹配规则时弹出 notification-text 定义的字符串 | ||
DOMAIN-SUFFIX,scomper.me,DIRECT,notification-text="Welcome to scomper's blog." | ||
AND,((SRC-IP,10.211.55.3), (DOMAIN-SUFFIX,scomper.me)),Proxy | ||
|
||
# Rulesets,规则集 | ||
# Rulesets,规则集(每 24 小时后台自动更新) | ||
# 规则集包含多条子规则,可以是另一个本地 list 文件,或者是一个 URL | ||
#(当前版本中固定为每 24 小时进行一次自动更新) | ||
|
||
# 内置了两个规则集:SYSTEM 和 LAN | ||
# 内置规则集的具体内容可在 Surge Mac 设置界面查看 | ||
RULE-SET,SYSTEM,DIRECT | ||
|
@@ -127,4 +136,4 @@ FINAL,Proxy,dns-failed | |
# 需要 Web 验证登录的 Wi-Fi 网络以及路由器已经科学上网的 Surge 挂起 | ||
"Apple Store" suspend=true | ||
# 计费网络模式,当连接到热点名为 iPhone X 的网络时自动切换为计费模式 | ||
"iPhone X" cellular-mode=true | ||
"iPhone X" cellular-mode=true |