-
Notifications
You must be signed in to change notification settings - Fork 101
/
Copy pathSurge_Old.conf
107 lines (103 loc) · 5.42 KB
/
Surge_Old.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# Author:https://github.com/Repcz
# TG:https://t.me/QVQ_Channel
#
# Surge Version ≥ 5.8.3
#
# 以 ';' 或 '#' 或 '//' 开头的配置文件行为注释行
#
# 最后更新时间: 2025-03-09 18:40
#
# ================
[General]
# 日志级别
loglevel = notify
# 节点超时
test-timeout = 5
# 直连测试 URL
internet-test-url = http://connectivitycheck.platform.hicloud.com/generate_204
# 代理测速 URL
proxy-test-url = http://1.1.1.1/generate_204
# 游戏优化: 开启后优先处理 UDP 数据,会增加系统负载
udp-priority = false
# UDP 回退行为
udp-policy-not-supported-behaviour = REJECT
# DNS 服务器
dns-server = 223.5.5.5, 119.29.29.29
# IPv6 DNS 查询
ipv6 = false
# IPv6 VIF 模式
ipv6-vif = disabled
# DNS 劫持
hijack-dns = *:53
# Always Real IP Hosts
always-real-ip = <simple-hostname>, *.msftconnecttest.com, *.msftncsi.com, *.srv.nintendo.net, *.stun.playstation.net, xbox.*.microsoft.com, *.xboxlive.com, *.logon.battlenet.com.cn, *.logon.battle.net, stun.l.google.com, easy-login.10099.com.cn,*-update.xoyocdn.com, *.prod.cloud.netflix.com, appboot.netflix.com, *-appboot.netflix.com
# 展示错误页面
show-error-page-for-reject = true
# 排除简单主机名
exclude-simple-hostnames = true
# 自定义 GeoIP 数据库
geoip-maxmind-url = https://raw.githubusercontent.com/Loyalsoldier/geoip/release/Country.mmdb
[Proxy Group]
手动选择 = select, include-all-proxies=1
国外网站 = select, 手动选择, 香港节点, 美国节点, 狮城节点, 日本节点, 台湾节点
国际媒体 = select, 手动选择, 香港节点, 美国节点, 狮城节点, 日本节点, 台湾节点
微软服务 = select, 手动选择, 香港节点, 美国节点, 狮城节点, 日本节点, 台湾节点
谷歌服务 = select, 手动选择, 香港节点, 美国节点, 狮城节点, 日本节点, 台湾节点
AI = select, 手动选择, 香港节点, 美国节点, 狮城节点, 日本节点, 台湾节点
社交媒体 = select, 手动选择, 香港节点, 美国节点, 狮城节点, 日本节点, 台湾节点
电报消息 = select, 手动选择, 香港节点, 美国节点, 狮城节点, 日本节点, 台湾节点
游戏平台 = select, 手动选择, 香港节点, 美国节点, 狮城节点, 日本节点, 台湾节点
Emby = select, 手动选择, 香港节点, 美国节点, 狮城节点, 日本节点, 台湾节点, DIRECT, include-other-group=手动选择
Spotify = select, 手动选择, 香港节点, 美国节点, 狮城节点, 日本节点, 台湾节点
兜底分流 = select, 手动选择, 香港节点, 美国节点, 狮城节点, 日本节点, 台湾节点, DIRECT
香港节点 = url-test, policy-regex-filter=(?i)🇭🇰|香港|(\b(HK|Hong)\b), include-other-group=手动选择
美国节点 = url-test, policy-regex-filter=(?i)🇺🇸|美国|洛杉矶|圣何塞|(\b(US|United States)\b), include-other-group=手动选择
狮城节点 = url-test, policy-regex-filter=(?i)🇸🇬|新加坡|狮|(\b(SG|Singapore)\b), include-other-group=手动选择
日本节点 = url-test, policy-regex-filter=(?i)🇯🇵|日本|东京|(\b(JP|Japan)\b), include-other-group=手动选择
台湾节点 = url-test, policy-regex-filter=(?i)🇨🇳|🇹🇼|台湾|(\b(TW|Tai|Taiwan)\b), include-other-group=手动选择
[Rule]
# Direct Fix
RULE-SET,https://github.com/Repcz/Tool/raw/X/Surge/Rules/Direct.list,DIRECT
# Reject Ads
RULE-SET,https://github.com/Repcz/Tool/raw/X/Surge/Rules/Reject.list,REJECT
# AIGC
RULE-SET,https://github.com/Repcz/Tool/raw/X/Surge/Rules/AI.list,AI
# Telegram
RULE-SET,https://github.com/Repcz/Tool/raw/X/Surge/Rules/Telegram.list,电报消息
AND,((OR,((PROCESS-NAME,Telegram), (IN-PORT,6153))), (HOSTNAME-TYPE,IPv4)),REJECT-NO-DROP
# Social Media
RULE-SET,https://github.com/Repcz/Tool/raw/X/Surge/Rules/Twitter.list,社交媒体
RULE-SET,https://github.com/Repcz/Tool/raw/X/Surge/Rules/Instagram.list,社交媒体
RULE-SET,https://github.com/Repcz/Tool/raw/X/Surge/Rules/TikTok.list,社交媒体
# Game
RULE-SET,https://github.com/Repcz/Tool/raw/X/Surge/Rules/Steam.list,游戏平台
RULE-SET,https://github.com/Repcz/Tool/raw/X/Surge/Rules/Epic.list,游戏平台
# Google
RULE-SET,https://github.com/Repcz/Tool/raw/X/Surge/Rules/YouTube.list,谷歌服务
RULE-SET,https://github.com/Repcz/Tool/raw/X/Surge/Rules/Google.list,谷歌服务
# Microsoft
RULE-SET,https://github.com/Repcz/Tool/raw/X/Surge/Rules/Github.list,微软服务
RULE-SET,https://github.com/Repcz/Tool/raw/X/Surge/Rules/OneDrive.list,微软服务
RULE-SET,https://github.com/Repcz/Tool/raw/X/Surge/Rules/Microsoft.list,微软服务
# Streaming
RULE-SET,https://github.com/Repcz/Tool/raw/X/Surge/Rules/Emby.list,Emby
RULE-SET,https://github.com/Repcz/Tool/raw/X/Surge/Rules/Spotify.list,Spotify
RULE-SET,https://github.com/Repcz/Tool/raw/X/Surge/Rules/Bahamut.list,国际媒体
RULE-SET,https://github.com/Repcz/Tool/raw/X/Surge/Rules/Netflix.list,国际媒体,extended-matching
RULE-SET,https://github.com/Repcz/Tool/raw/X/Surge/Rules/Disney.list,国际媒体
RULE-SET,https://github.com/Repcz/Tool/raw/X/Surge/Rules/PrimeVideo.list,国际媒体
RULE-SET,https://github.com/Repcz/Tool/raw/X/Surge/Rules/HBO.list,国际媒体
# GFW
RULE-SET,https://github.com/Repcz/Tool/raw/X/Surge/Rules/ProxyGFW.list,国外网站
# Apple
RULE-SET,https://github.com/Repcz/Tool/raw/X/Surge/Rules/AppleProxy.list,国外网站
RULE-SET,https://github.com/Repcz/Tool/raw/X/Surge/Rules/Apple.list,DIRECT
# Local Aera Network
RULE-SET,LAN,DIRECT
# China
GEOIP,CN,DIRECT
# FInal
FINAL,兜底分流
[MITM]
# MITM over HTTP/2
h2 = true