Profiles/Surge/Outbound.conf

286 lines
12 KiB
Plaintext
Raw Normal View History

2020-04-18 00:10:53 +08:00
# 除了注释建议浏览官方手册https://manual.nssurge.com/、帮助中心https://nssurge.zendesk.com/以及技术社区https://community.nssurge.com
2020-01-20 22:34:13 +08:00
[General]
2020-04-18 00:10:53 +08:00
# ---(通用)---
# 延迟测试
# > Internet 测试 URL
internet-test-url = http://www.aliyun.com
# > 代理测速 URL
proxy-test-url = http://www.gstatic.com/generate_204
2020-04-18 00:10:53 +08:00
# > 测试超时(秒)
# test-timeout = 5
# TLS 引擎
tls-provider = openssl
# IPv6 支持(关闭)
2020-01-20 22:34:13 +08:00
ipv6 = false
2020-04-18 00:10:53 +08:00
# ------
# ---(Wi-Fi 访问)---
allow-wifi-access = false
wifi-access-http-port = 6152
wifi-access-socks5-port = 6153
# ------
# ---(远程控制器)---
# 允许 Surge 请求查看器或 Surge CLI 进行管理控制。
# 如果允许由 Wi-Fi 控制则将「127.0.0.1」修改为「0.0.0.0」
# external-controller-access = password@127.0.0.1:6170
# ------
# ---(兼容性)---
# 兼容模式
# compatibility-mode = 0
# 跳过代理
2020-08-03 17:48:20 +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, mfs.ykimg.com*.ttf
2020-04-21 19:55:49 +08:00
# 排除简单主机名
exclude-simple-hostnames = true
2020-04-18 00:10:53 +08:00
# SSID 组策略
# 当 Wi-Fi 不是首选网络时 SSID 组策略使用默认策略(仅 macOS 版)
use-default-policy-if-wifi-not-primary = false
# ------
# ---(DNS 服务器)---
2020-07-30 23:13:10 +08:00
# 电信 118.118.118.118
# 联通 116.116.116.116
dns-server = 119.29.29.29,system
2020-04-18 00:10:53 +08:00
# ------
# ---(实验性功能)---
# 使用 Network framework
# network-framework = true
# ------
# ---(高级)---
# 日志级别
loglevel = notify
# 当遇到 REJECT 策略时返回错误页
2020-01-20 22:34:13 +08:00
show-error-page-for-reject = true
2020-04-18 00:10:53 +08:00
# Always Real IP Hosts
# 当 Surge VIF 处理 DNS 问题时,此选项要求 Surge 返回一个真正的 IP 地址,而不是一个假 IP 地址。
# DNS 数据包将被转发到上游 DNS 服务器。
always-real-ip = msftconnecttest.com, msftncsi.com, *.msftconnecttest.com, *.msftncsi.com, *.srv.nintendo.net, *.stun.playstation.net, xbox.*.microsoft.com, *.xboxlive.com
# Hijack DNS
# 默认情况下Surge 只返回发送到 Surge DNS 地址的 DNS 查询的假 IP 地址(198.18.0.2)。
# 有些设备或软件总是使用硬编码的 DNS 服务器。 (例如 Google Speakers 总是使用 8.8.8.8)。 您可以使用此选项劫持查询,以获得一个假地址。
# hijack-dns = 8.8.8.8:53, 8.8.4.4:53
2020-04-18 00:10:53 +08:00
# TCP Force HTTP Hosts
# 让 Surge 把 TCP 连接当作 HTTP 请求来处理。Surge HTTP 引擎将处理这些请求,所有的高级功能,如捕获、重写和脚本等都可以使用。
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
2020-04-18 00:10:53 +08:00
# VIF Excluded Routes
# Surge VIF 只能处理 TCP 和 UDP 协议。使用此选项可以绕过特定的 IP 范围,允许所有流量通过。
# tun-excluded-routes = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
# VIF Included Routes
# 默认情况下Surge VIF 接口会声明自己是默认路由。但是,由于 Wi-Fi 接口的路由较小,有些流量可能不会通过 Surge VIF 接口。使用此选项可以添加一条较小的路由。
# tun-included-routes = 192.168.1.12/32
# ------
2020-01-20 22:34:13 +08:00
[Replica]
2020-04-18 00:10:53 +08:00
# ---(实验性功能)---
# 0 为关闭1 为开启
# > 隐藏 Apple 请求
2020-02-16 09:51:08 +08:00
hide-apple-request=0
2020-05-31 17:31:03 +08:00
# > 隐藏崩溃追踪器请求
hide-crash-reporter-request=1
2020-04-18 00:10:53 +08:00
# > 隐藏 UDP 会话
2020-02-16 09:51:08 +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-06-25 09:36:16 +08:00
# 游戏模式(⚠️所用节点需开启 UDP 转发支持)
# 🎮Game = 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
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 局域网
IP-CIDR,192.168.0.0/16,🌐Direct
IP-CIDR,10.0.0.0/8,🌐Direct
IP-CIDR,172.16.0.0/12,🌐Direct
IP-CIDR,127.0.0.0/8,🌐Direct
IP-CIDR,100.64.0.0/10,🌐Direct
IP-CIDR,224.0.0.0/4,🌐Direct
2020-01-20 22:34:13 +08:00
# 使用来自 ipipdotnet 的 ChinaIP 以解决数据不准确的问题,使用 ChinaIP.list 时禁用「GEOIP,CN」规则
2020-08-18 23:09:07 +08:00
RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Extra/ChinaIP.list,🌐Direct
# GeoIP China(若启用,则禁用 ChinaIP.list)
# GEOIP,CN,🌐Direct
2020-01-20 22:34:13 +08:00
2020-08-20 17:55:40 +08:00
# RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Extra/Game/Game.list,🎮Game
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
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
# Weibo Short URL
^http:\/\/t\.cn https://sinaurl.cn 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-10-15 17:31:53 +08:00
# TikTok - *.tiktokv.com, *.byteoversea.com, *.musical.ly, *.snssdk.com
# ^https://api[\w-]*?.tiktokv.com/aweme/v\d/policy/notice/? - reject
2020-06-23 13:20:49 +08:00
2020-10-15 17:31:53 +08:00
# (?<=_region=)CN(?=&) JP 307
# (?<=&app_version=)1[6-9]..(?=.?.?&) 100. 307
# (?<=\?version_code=)1[6-9]..(?=.?.?&) 100. 307
2020-01-20 22:34:13 +08:00
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