Profiles/Surge/Outbound.conf

253 lines
11 KiB
Plaintext
Raw Normal View History

2021-03-08 21:58:41 +08:00
# 官方手册 - https://manual.nssurge.com/
# 理解原理 - https://manual.nssurge.com/book/understanding-surge/cn/
# 帮助中心 - https://nssurge.zendesk.com/
# 技术社区 - https://community.nssurge.com
2020-04-18 00:10:53 +08:00
2020-01-20 22:34:13 +08:00
[General]
2021-03-08 21:58:41 +08:00
# 通用设置
# > 增强版 Wi-Fi 助理
# (在 Wi-Fi 网络不佳时尝试使用数据网络建立连接,请仅当使用不限量的数据流量时开启)
wifi-assist = false
2020-04-18 00:10:53 +08:00
# > Internet 测试 URL
2021-03-08 21:58:41 +08:00
internet-test-url = http://wifi.vivo.com.cn/generate_204
2020-04-18 00:10:53 +08:00
# > 代理测速 URL
2021-03-08 21:58:41 +08:00
proxy-test-url = http://cp.cloudflare.com/generate_204
2020-04-18 00:10:53 +08:00
# > 测试超时(秒)
2021-03-08 21:58:41 +08:00
test-timeout = 5
# > TLS 引擎
2020-04-18 00:10:53 +08:00
tls-provider = openssl
2021-03-08 21:58:41 +08:00
# > 自定义 GeoIP 数据库
2020-12-31 22:36:19 +08:00
geoip-maxmind-url = https://raw.githubusercontent.com/JMVoid/ipip2mmdb/release/Country.mmdb
2021-03-08 21:58:41 +08:00
# > IPv6 支持(默认关闭)
2020-01-20 22:34:13 +08:00
ipv6 = false
2020-04-18 00:10:53 +08:00
2021-03-08 21:58:41 +08:00
# > 允许 Wi-Fi 访问 (仅 iOS若允许远程访问将「false」改为「true」)
2020-04-18 00:10:53 +08:00
allow-wifi-access = false
wifi-access-http-port = 6152
wifi-access-socks5-port = 6153
2021-03-08 21:58:41 +08:00
# > 允许 Wi-Fi 访问 (仅 macOS若允许远程访问将「127.0.0.1」改为「0.0.0.0」)
http-listen = 127.0.0.1:6152
socks5-listen = 127.0.0.1:6153
2020-04-18 00:10:53 +08:00
2021-03-08 21:58:41 +08:00
# > 兼容模式 (仅 iOS)
2020-04-18 00:10:53 +08:00
# compatibility-mode = 0
2021-03-08 21:58:41 +08:00
# > 跳过代理
2021-03-05 23:19:25 +08:00
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, localhost, *.local, passenger.t3go.cn
2021-03-08 21:58:41 +08:00
# > 排除简单主机名
2020-04-21 19:55:49 +08:00
exclude-simple-hostnames = true
2021-03-08 21:58:41 +08:00
# > Network framwork
network-framework = false
# > DNS 服务器 (如无必要不建议使用 DNS over HTTPS)
2020-07-30 23:13:10 +08:00
dns-server = 119.29.29.29,system
2021-03-08 21:58:41 +08:00
# > 从 /etc/hosts 读取 DNS 记录
read-etc-hosts = true
2020-04-18 00:10:53 +08:00
2021-03-08 21:58:41 +08:00
# 高级设置
2020-04-18 00:10:53 +08:00
2021-03-08 21:58:41 +08:00
# > 日志级别
2020-04-18 00:10:53 +08:00
loglevel = notify
2021-03-08 21:58:41 +08:00
# > 当遇到 REJECT 策略时返回错误页
2020-01-20 22:34:13 +08:00
show-error-page-for-reject = true
2021-03-08 21:58:41 +08:00
# > Always Real IP Hosts
2021-04-01 00:17:09 +08:00
always-real-ip = msftconnecttest.com, msftncsi.com, *.msftconnecttest.com, *.msftncsi.com, *.srv.nintendo.net, *.stun.playstation.net, xbox.*.microsoft.com, *.xboxlive.com, *.battlenet.com.cn, *.battlenet.com, *.blzstatic.cn, *.battle.net
2020-04-18 00:10:53 +08:00
2021-03-08 21:58:41 +08:00
# > TCP Force HTTP Hosts
force-http-engine-hosts = *.ott.cibntv.net,123.59.31.1,119.18.193.135,122.14.246.33,175.102.178.52
2020-01-20 22:34:13 +08:00
# > VIF Excluded Routes
tun-excluded-routes = 239.255.255.250/32
2020-01-20 22:34:13 +08:00
[Replica]
2020-04-18 00:10:53 +08:00
# 0 为关闭1 为开启
# > 隐藏 Apple 请求
2021-03-08 22:04:19 +08:00
hide-apple-request = 0
2020-05-31 17:31:03 +08:00
# > 隐藏崩溃追踪器请求
2021-03-08 22:04:19 +08:00
hide-crash-reporter-request = 1
2020-04-18 00:10:53 +08:00
# > 隐藏 UDP 会话
2021-03-08 22:04:19 +08:00
hide-udp = 0
2020-04-18 00:10:53 +08:00
# > 关键词过滤器
# none关闭关键词过滤器 / whitelistblacklist仅记录包含关键字的请求 / blacklist仅记录不包含关键字的请求 / pattern匹配通配符的请求
# keyword-filter-type = none
# > 关键词
# keyword-filter = (null)
2020-01-20 22:34:13 +08:00
[Proxy]
2020-02-16 09:51:08 +08:00
🌐Direct = direct
2020-01-20 22:34:13 +08:00
Reject = reject
🇨🇳TheHub = ss, 1.2.3.4, 443, encrypt-method=chacha20-ietf-poly1305, password=password
🇺🇸LosSantos = vmess, v2ray.cool, 443, username=a3482e88-686a-4a58-8126-99c9df64b7bf, tls=true, ws=true, ws-path=/v2ray.cool/
2020-03-31 19:49:42 +08:00
🇭🇰Sandbox = trojan, trojan.com, 443, password=password
2020-01-20 22:34:13 +08:00
[Proxy Group]
# 白名单模式 PROXY黑名单模式 DIRECT
2020-02-16 09:51:08 +08:00
🧭Final = select,🌑Proxy,🌐Direct
2020-01-20 22:34:13 +08:00
# 节点选项
2020-01-29 14:52:52 +08:00
🌑Proxy = select,🧯Fallback,🕹AutoTest
2020-04-05 22:46:37 +08:00
# 国际流媒体服务
2020-01-29 14:52:52 +08:00
🎞Streaming = select,🌑Proxy,🕹AutoTest,🦆DuckDuckGo
2020-04-05 22:46:37 +08:00
# 中国流媒体服务(面向海外版本)
2020-02-16 09:51:08 +08:00
🎞StreamingSE = select,🌐Direct,🇭🇰Sandbox
2020-01-20 22:34:13 +08:00
# 防御
2020-02-16 09:51:08 +08:00
🛡Guard = select,⛔Reject,🌐Direct
2020-01-20 22:34:13 +08:00
# 可用性自动测试
🧯Fallback = fallback,🇺🇸LosSantos,🇨🇳TheHub,url = http://www.gstatic.com/generate_204
2020-01-20 22:34:13 +08:00
# 延迟自动测试
🕹AutoTest = url-test,🦆DuckDuckGo,🇺🇸LosSantos,🇭🇰Sandbox,url = http://www.gstatic.com/generate_204
2021-03-08 21:58:41 +08:00
# 冲鸭机场 (代理服务商提供的代理列表订阅示例)
2020-01-20 22:34:13 +08:00
🦆DuckDuckGo = select, policy-path=https://duckduckgo.security/user/sub.php?token=DivineEngine
[Rule]
2020-06-10 21:52:00 +08:00
# https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Filter/Extra/Apple/BlockiOSUpdate.list,⛔Reject
2020-01-20 22:34:13 +08:00
# Client
# > Proxy
2020-02-16 09:51:08 +08:00
PROCESS-NAME,v2ray,🌐Direct
PROCESS-NAME,ss-local,🌐Direct
2020-03-31 19:32:34 +08:00
PROCESS-NAME,UUBooster,🌐Direct
2020-01-20 22:34:13 +08:00
# > Download
2020-02-16 09:51:08 +08:00
PROCESS-NAME,aria2c,🌐Direct
PROCESS-NAME,fdm,🌐Direct
PROCESS-NAME,Folx,🌐Direct
PROCESS-NAME,NetTransport,🌐Direct
PROCESS-NAME,Thunder,🌐Direct
PROCESS-NAME,Transmission,🌐Direct
PROCESS-NAME,uTorrent,🌐Direct
PROCESS-NAME,WebTorrent,🌐Direct
PROCESS-NAME,WebTorrent Helper,🌐Direct
2020-01-20 22:34:13 +08:00
# Unbreak 后续规则修正
2020-06-10 21:52:00 +08:00
RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Unbreak.list,🌐Direct
2020-01-20 22:34:13 +08:00
# Advertising 广告
2020-06-10 21:52:00 +08:00
RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Guard/Advertising.list,🛡Guard
2020-01-20 22:34:13 +08:00
# Privacy 隐私
2020-06-10 21:52:00 +08:00
# RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Guard/Privacy.list,🛡Guard
2020-01-20 22:34:13 +08:00
# Hijacking 运营商劫持或恶意网站
2020-06-10 21:52:00 +08:00
RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Guard/Hijacking.list,🛡Guard
2020-01-20 22:34:13 +08:00
2020-04-05 22:46:37 +08:00
# Streaming 国际流媒体服务
2020-06-10 21:52:00 +08:00
RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/StreamingMedia/Streaming.list,🎞Streaming
2020-01-20 22:34:13 +08:00
2020-04-05 22:46:37 +08:00
# StreamingSE 中国流媒体服务(面向海外版本)
2020-06-10 21:52:00 +08:00
RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/StreamingMedia/StreamingSE.list,🎞StreamingSE
2020-01-20 22:34:13 +08:00
# Apple 服务
2020-04-05 22:46:37 +08:00
# 在 https://github.com/DivineEngine/Profiles/tree/master/Surge/Rulesets/Extra/Apple 获取所需服务引入 Ruleset 类型规则及新建策略组。
2020-01-20 22:34:13 +08:00
# Global 全球加速
2020-06-10 21:52:00 +08:00
RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Global.list,🌑Proxy
2020-01-20 22:34:13 +08:00
# China 中国直连
2020-06-10 21:52:00 +08:00
RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/China.list,🌐Direct
2020-01-20 22:34:13 +08:00
# Local Area Network 局域网
2020-12-10 18:39:05 +08:00
RULE-SET,LAN,🌐Direct
2020-01-20 22:34:13 +08:00
2020-12-31 22:36:19 +08:00
# GeoIP China
GEOIP,CN,🌐Direct
2020-06-25 09:36:16 +08:00
2020-01-20 22:34:13 +08:00
FINAL,🧭Final,dns-failed
[Host]
2020-08-31 11:45:31 +08:00
# Firebase Cloud Messaging
2020-04-24 13:03:55 +08:00
mtalk.google.com = 108.177.125.188
2021-02-18 12:38:24 +08:00
# Google Dl
dl.google.com = server:119.29.29.29
dl.l.google.com = server:119.29.29.29
2020-01-20 22:34:13 +08:00
[Header Rewrite]
2020-08-22 13:11:18 +08:00
# 据粗略统计,有大概三分之二的本项目使用者停留在了 Surge 2、3 时期故而保留了 Rewrite 及 MitM所以如果你解锁了「模块」功能可以使用 sgmodule 后清空 [URL Rewrite] 及 [MITM] 部分MitM 证书重新生成配置。
2020-08-19 13:40:33 +08:00
2020-08-22 13:11:18 +08:00
# 建议必选使用 General.sgmodule其他 .sgmodule 按需加入
2020-08-19 13:40:33 +08:00
2020-01-20 22:34:13 +08:00
[URL Rewrite]
# Redirect Google Search Service
^(http|https):\/\/(www.)?(g|google)\.cn https://www.google.com 302
2020-08-11 12:54:36 +08:00
# Redirect Google Maps Service
^(http|https):\/\/(ditu|maps).google\.cn https://maps.google.com 302
2020-01-20 22:34:13 +08:00
# Redirect HTTP to HTTPS
^(http|https):\/\/(www.)?taobao\.com\/ https://taobao.com/ 302
^(http|https):\/\/(www.)?jd\.com\/ https://www.jd.com/ 302
^(http|https):\/\/(www.)?mi\.com\/ https://www.mi.com/ 302
^(http|https):\/\/you\.163\.com\/ https://you.163.com/ 302
2020-02-16 02:51:50 +08:00
^(http|https):\/\/(www.)?suning\.com\/ https://suning.com/ 302
^(http|https):\/\/(www.)?yhd\.com\/ https://yhd.com/ 302
2020-01-20 22:34:13 +08:00
# Redirect False to True
# > IGN China to IGN Global
^(http|https):\/\/(www.)?ign\.xn--fiqs8s\/ http://cn.ign.com/ccpref/us 302
# > Fake Website Made By C&J Marketing
^(http|https):\/\/(www.)?abbyychina\.com\/ https://www.abbyy.cn/ 302
^(http|https):\/\/(www.)?bartender\.cc\/ https://www.macbartender.com/ 302
^(http|https):\/\/(www.)?(betterzipcn|betterzip)\.(com|net)\/ https://macitbetter.com/ 302
^(http|https):\/\/(www.)?beyondcompare\.cc\/ https://www.scootersoftware.com/ 302
^(http|https):\/\/(www.)?bingdianhuanyuan\.cn\/ https://www.faronics.com/zh-hans/products/deep-freeze 302
^(http|https):\/\/(www.)?chemdraw\.com\.cn\/ https://www.perkinelmer.com.cn/ 302
^(http|https):\/\/(www.)?codesoftchina\.com\/ https://www.teklynx.com/ 302
^(http|https):\/\/(www.)?coreldrawchina\.com\/ https://www.coreldraw.com/cn/ 302
^(http|https):\/\/(www.)?crossoverchina\.com\/ https://www.codeweavers.com/ 302
^(http|https):\/\/(www.)?dongmansoft\.com\/ https://www.udongman.cn/ 302
^(http|https):\/\/(www.)?earmasterchina\.cn\/ https://www.earmaster.com/ 302
^(http|https):\/\/(www.)?easyrecoverychina\.com\/ https://www.ontrack.com/ 302
^(http|https):\/\/(www.)?ediuschina\.com\/ https://www.grassvalley.com/ 302
^(http|https):\/\/(www.)?flstudiochina\.com\/ https://www.image-line.com/ 302
^(http|https):\/\/(www.)?formysql\.com\/ https://www.navicat.com.cn/ 302
^(http|https):\/\/(www.)?guitarpro\.cc\/ https://www.guitar-pro.com/ 302
^(http|https):\/\/(www.)?huishenghuiying\.com\.cn\/ https://www.coreldraw.com/cn/ 302
^(http|https):\/\/hypersnap\.mairuan\.com\/ https://www.hyperionics.com/ 302
^(http|https):\/\/(www.)?iconworkshop\.cn\/ https://www.axialis.com/ 302
2020-08-31 10:04:42 +08:00
^(http|https):\/\/(www.)?idmchina\.net\/ https://www.internetdownloadmanager.com/ 302
2020-01-20 22:34:13 +08:00
^(http|https):\/\/(www.)?imindmap\.cc\/ https://www.ayoa.com/previously-imindmap/ 302
2020-02-16 02:51:50 +08:00
^(http|https):\/\/(www.)?jihehuaban\.com\.cn\/ https://www.chartwellyorke.com/sketchpad/x24795.html 302
2020-01-20 22:34:13 +08:00
^(http|https):\/\/hypersnap\.mairuan\.com\/ https://www.keyshot.com/ 302
^(http|https):\/\/(www.)?kingdeecn\.cn\/ http://www.kingdee.com/ 302
^(http|https):\/\/(www.)?logoshejishi\.com https://www.sothink.com/product/logo-design-software/ 302
^(http|https):\/\/logoshejishi\.mairuan\.com\/ https://www.sothink.com/product/logo-design-software/ 302
^(http|https):\/\/(www.)?luping\.net\.cn\/ https://www.techsmith.com/ 302
^(http|https):\/\/(www.)?mathtype\.cn\/ https://www.dessci.com/ 302
^(http|https):\/\/(www.)?mindmanager\.(cc|cn)\/ https://www.mindjet.com/cn/ 302
^(http|https):\/\/(www.)?mindmapper\.cc\/ https://www.mindmapper.com/ 302
2020-02-16 02:51:50 +08:00
^(http|https):\/\/(www.)?(mycleanmymac|xitongqingli)\.com\/ https://macpaw.com/ 302
2020-01-20 22:34:13 +08:00
^(http|https):\/\/(www.)?nicelabel\.cc\/ https://www.nicelabel.com/zh/ 302
^(http|https):\/\/(www.)?ntfsformac\.cc\/ https://www.tuxera.com/products/tuxera-ntfs-for-mac-cn/ 302
^(http|https):\/\/(www.)?ntfsformac\.cn\/ https://china.paragon-software.com/home-mac/ntfs-for-mac/ 302
^(http|https):\/\/(www.)?overturechina\.com\/ https://sonicscores.com/ 302
^(http|https):\/\/(www.)?passwordrecovery\.cn\/ https://cn.elcomsoft.com/aopr.html 302
^(http|https):\/\/(www.)?pdfexpert\.cc\/ https://pdfexpert.com/zh 302
^(http|https):\/\/(www.)?photozoomchina\.com\/ https://www.benvista.com/ 302
^(http|https):\/\/(www.)?shankejingling\.com\/ https://www.sothink.com/product/flashdecompiler/ 302
^(http|https):\/\/cn\.ultraiso\.net\/ https://cn.ezbsystems.com/ultraiso/ 302
^(http|https):\/\/(www.)?vegaschina\.cn\/ https://www.vegascreativesoftware.com/ 302
^(http|https):\/\/(www.)?xshellcn\.com\/ https://www.netsarang.com/zh/xshell/ 302
^(http|https):\/\/(www.)?yuanchengxiezuo\.com\/ https://www.teamviewer.com/ 302
^(http|https):\/\/(www.)?zbrushcn.com/ https://pixologic.com/ 302
2020-06-23 13:20:49 +08:00
# AbeamTV - api.abema.io
2020-06-25 09:36:16 +08:00
^(http|https):\/\/api\.abema\.io\/v\d\/ip\/check - reject
2020-06-23 13:20:49 +08:00
# Block Ads Start
# Block Ads End
2020-01-20 22:34:13 +08:00
[Script]
[SSID Setting]
[MITM]
skip-server-cert-verify = true
hostname = www.google.cn,api.abema.io