362 lines
9.5 KiB
YAML
362 lines
9.5 KiB
YAML
mixed-port: 7890
|
|
allow-lan: false
|
|
mode: rule
|
|
log-level: info
|
|
unified-delay: true
|
|
tcp-concurrent: true
|
|
ipv6: false
|
|
|
|
# ----------------- DNS 配置 -----------------
|
|
dns:
|
|
enable: true
|
|
ipv6: false
|
|
enhanced-mode: fake-ip
|
|
fake-ip-range: 198.18.0.1/16
|
|
respect-rules: true
|
|
fake-ip-filter:
|
|
- "*.lan"
|
|
- "*.local"
|
|
- "*.localdomain"
|
|
- "captive.apple.com"
|
|
- "*.msftconnecttest.com"
|
|
- "*.msftncsi.com"
|
|
- "time.*.com"
|
|
- "ntp.*.com"
|
|
default-nameserver:
|
|
- 223.5.5.5
|
|
- 119.29.29.29
|
|
nameserver:
|
|
- https://dns.alidns.com/dns-query
|
|
- https://doh.pub/dns-query
|
|
proxy-server-nameserver:
|
|
- https://dns.alidns.com/dns-query
|
|
nameserver-policy:
|
|
"geosite:cn,private":
|
|
- https://dns.alidns.com/dns-query
|
|
- https://doh.pub/dns-query
|
|
"geosite:geolocation-!cn":
|
|
- https://dns.cloudflare.com/dns-query
|
|
- https://dns.google/dns-query
|
|
|
|
# ----------------- 节点列表 -----------------
|
|
proxies:
|
|
# 1. VLESS TCP Reality (首选日常低延迟、抗封锁)
|
|
- name: VPS-Reality
|
|
type: vless
|
|
server: 154.201.80.157
|
|
port: 29446
|
|
uuid: 3d96c59b-1c93-43fa-83d2-2dce7bd1d214
|
|
network: tcp
|
|
tls: true
|
|
flow: xtls-rprx-vision
|
|
servername: www.iij.ad.jp
|
|
client-fingerprint: firefox
|
|
reality-opts:
|
|
public-key: 2RUgMEAgtoMJBFwBk_V7m1909Jc3GoVMPFC2_JbMxnE
|
|
short-id: c6a20e304ae7ca2c
|
|
tfo: false
|
|
skip-cert-verify: false
|
|
|
|
# 2. VMess WS (通过 www.carousell.sg 优选 CDN 中转)
|
|
- name: VPS-VMess
|
|
type: vmess
|
|
server: www.carousell.sg
|
|
port: 443
|
|
uuid: 3d96c59b-1c93-43fa-83d2-2dce7bd1d214
|
|
alterId: 0
|
|
cipher: auto
|
|
tls: true
|
|
client-fingerprint: firefox
|
|
servername: foot-improvement-competent-august.trycloudflare.com
|
|
network: ws
|
|
ws-opts:
|
|
path: /vmess-argo?ed=2560
|
|
headers:
|
|
Host: foot-improvement-competent-august.trycloudflare.com
|
|
|
|
# 3. Hysteria 2 (极速打满 1Gbps 吞吐)
|
|
- name: VPS-Hy2
|
|
type: hysteria2
|
|
server: 154.201.80.157
|
|
port: 31306
|
|
password: 3d96c59b-1c93-43fa-83d2-2dce7bd1d214
|
|
sni: www.bing.com
|
|
skip-cert-verify: true
|
|
alpn:
|
|
- h3
|
|
up: 100 Mbps
|
|
down: 1000 Mbps
|
|
|
|
# 4. TUIC v5 (原生 UDP QUIC 协议)
|
|
- name: VPS-TUIC
|
|
type: tuic
|
|
server: 154.201.80.157
|
|
port: 40193
|
|
uuid: 3d96c59b-1c93-43fa-83d2-2dce7bd1d214
|
|
password: 3d96c59b-1c93-43fa-83d2-2dce7bd1d214
|
|
skip-cert-verify: true
|
|
alpn:
|
|
- h3
|
|
sni: www.bing.com
|
|
congestion-controller: bbr
|
|
udp-relay-mode: native
|
|
reduce-rtt: true
|
|
|
|
# ----------------- 策略组配置 -----------------
|
|
proxy-groups:
|
|
# 总控代理
|
|
- name: PROXY
|
|
type: select
|
|
proxies:
|
|
- ♻️ 自动选择
|
|
- VPS-Reality
|
|
- VPS-Hy2
|
|
- VPS-TUIC
|
|
- VPS-VMess
|
|
- DIRECT
|
|
|
|
# 自动测速组
|
|
- name: ♻️ 自动选择
|
|
type: url-test
|
|
url: https://www.gstatic.com/generate_204
|
|
interval: 300
|
|
tolerance: 50
|
|
proxies:
|
|
- VPS-Reality
|
|
- VPS-Hy2
|
|
- VPS-TUIC
|
|
- VPS-VMess
|
|
|
|
# 应用分流组
|
|
- name: AI
|
|
type: select
|
|
proxies: [PROXY, VPS-Reality, VPS-Hy2, VPS-TUIC, VPS-VMess]
|
|
|
|
- name: YouTube
|
|
type: select
|
|
proxies: [PROXY, VPS-Hy2, VPS-Reality, VPS-TUIC, VPS-VMess]
|
|
|
|
- name: Netflix
|
|
type: select
|
|
proxies: [PROXY, VPS-Reality, VPS-Hy2, VPS-TUIC, VPS-VMess]
|
|
|
|
- name: Disney+
|
|
type: select
|
|
proxies: [PROXY, VPS-Reality, VPS-Hy2, VPS-TUIC, VPS-VMess]
|
|
|
|
- name: Max
|
|
type: select
|
|
proxies: [PROXY, VPS-Reality, VPS-Hy2, VPS-TUIC, VPS-VMess]
|
|
|
|
- name: TikTok
|
|
type: select
|
|
proxies: [PROXY, VPS-Reality, VPS-Hy2, VPS-TUIC, VPS-VMess]
|
|
|
|
- name: Spotify
|
|
type: select
|
|
proxies: [DIRECT, PROXY, VPS-Reality, VPS-Hy2]
|
|
|
|
- name: Telegram
|
|
type: select
|
|
proxies: [PROXY, VPS-Reality, VPS-Hy2, VPS-TUIC, VPS-VMess]
|
|
|
|
- name: Twitter
|
|
type: select
|
|
proxies: [PROXY, VPS-Reality, VPS-Hy2, VPS-TUIC, VPS-VMess]
|
|
|
|
- name: Facebook
|
|
type: select
|
|
proxies: [PROXY, VPS-Reality, VPS-Hy2, VPS-TUIC, VPS-VMess]
|
|
|
|
- name: GitHub
|
|
type: select
|
|
proxies: [PROXY, DIRECT, VPS-Reality, VPS-Hy2]
|
|
|
|
- name: PayPal
|
|
type: select
|
|
proxies: [DIRECT, PROXY, VPS-Reality]
|
|
|
|
- name: Amazon
|
|
type: select
|
|
proxies: [DIRECT, PROXY, VPS-Reality]
|
|
|
|
- name: 苹果服务
|
|
type: select
|
|
proxies: [DIRECT, PROXY, VPS-Reality]
|
|
|
|
- name: 谷歌服务
|
|
type: select
|
|
proxies: [PROXY, VPS-Reality, VPS-Hy2, VPS-TUIC]
|
|
|
|
- name: 微软服务
|
|
type: select
|
|
proxies: [DIRECT, PROXY, VPS-Reality]
|
|
|
|
- name: 哔哩哔哩
|
|
type: select
|
|
proxies: [DIRECT, PROXY, VPS-Reality]
|
|
|
|
- name: 游戏平台
|
|
type: select
|
|
proxies: [DIRECT, PROXY, VPS-Reality, VPS-Hy2]
|
|
|
|
# ----------------- 规则集订阅 (含国内代理镜像源) -----------------
|
|
rule-providers:
|
|
ai:
|
|
type: http
|
|
behavior: classical
|
|
url: "https://gh-proxy.com/https://raw.githubusercontent.com/n0de-sudo/Perfect-Rules/main/Shadowrocket/rules/ai.list"
|
|
path: ./ruleset/ai.yaml
|
|
interval: 86400
|
|
|
|
youtube:
|
|
type: http
|
|
behavior: classical
|
|
url: "https://gh-proxy.com/https://raw.githubusercontent.com/n0de-sudo/Perfect-Rules/main/Shadowrocket/rules/youtube.list"
|
|
path: ./ruleset/youtube.yaml
|
|
interval: 86400
|
|
|
|
netflix:
|
|
type: http
|
|
behavior: classical
|
|
url: "https://gh-proxy.com/https://raw.githubusercontent.com/n0de-sudo/Perfect-Rules/main/Shadowrocket/rules/Netflix.list"
|
|
path: ./ruleset/netflix.yaml
|
|
interval: 86400
|
|
|
|
disney:
|
|
type: http
|
|
behavior: classical
|
|
url: "https://gh-proxy.com/https://raw.githubusercontent.com/n0de-sudo/Perfect-Rules/main/Shadowrocket/rules/Disney.list"
|
|
path: ./ruleset/disney.yaml
|
|
interval: 86400
|
|
|
|
spotify:
|
|
type: http
|
|
behavior: classical
|
|
url: "https://gh-proxy.com/https://raw.githubusercontent.com/n0de-sudo/Perfect-Rules/main/Shadowrocket/rules/Spotify.list"
|
|
path: ./ruleset/spotify.yaml
|
|
interval: 86400
|
|
|
|
telegram:
|
|
type: http
|
|
behavior: classical
|
|
url: "https://gh-proxy.com/https://raw.githubusercontent.com/n0de-sudo/Perfect-Rules/main/Shadowrocket/rules/Telegram.list"
|
|
path: ./ruleset/telegram.yaml
|
|
interval: 86400
|
|
|
|
paypal:
|
|
type: http
|
|
behavior: classical
|
|
url: "https://gh-proxy.com/https://raw.githubusercontent.com/n0de-sudo/Perfect-Rules/main/Shadowrocket/rules/PayPal.list"
|
|
path: ./ruleset/paypal.yaml
|
|
interval: 86400
|
|
|
|
twitter:
|
|
type: http
|
|
behavior: classical
|
|
url: "https://gh-proxy.com/https://raw.githubusercontent.com/n0de-sudo/Perfect-Rules/main/Shadowrocket/rules/Twitter.list"
|
|
path: ./ruleset/twitter.yaml
|
|
interval: 86400
|
|
|
|
facebook:
|
|
type: http
|
|
behavior: classical
|
|
url: "https://gh-proxy.com/https://raw.githubusercontent.com/n0de-sudo/Perfect-Rules/main/Shadowrocket/rules/Facebook.list"
|
|
path: ./ruleset/facebook.yaml
|
|
interval: 86400
|
|
|
|
amazon:
|
|
type: http
|
|
behavior: classical
|
|
url: "https://gh-proxy.com/https://raw.githubusercontent.com/n0de-sudo/Perfect-Rules/main/Shadowrocket/rules/Amazon.list"
|
|
path: ./ruleset/amazon.yaml
|
|
interval: 86400
|
|
|
|
github:
|
|
type: http
|
|
behavior: classical
|
|
url: "https://gh-proxy.com/https://raw.githubusercontent.com/n0de-sudo/Perfect-Rules/main/Shadowrocket/rules/GitHub.list"
|
|
path: ./ruleset/github.yaml
|
|
interval: 86400
|
|
|
|
microsoft:
|
|
type: http
|
|
behavior: classical
|
|
url: "https://gh-proxy.com/https://raw.githubusercontent.com/n0de-sudo/Perfect-Rules/main/Shadowrocket/rules/Microsoft.list"
|
|
path: ./ruleset/microsoft.yaml
|
|
interval: 86400
|
|
|
|
google:
|
|
type: http
|
|
behavior: classical
|
|
url: "https://gh-proxy.com/https://raw.githubusercontent.com/n0de-sudo/Perfect-Rules/main/Shadowrocket/rules/Google.list"
|
|
path: ./ruleset/google.yaml
|
|
interval: 86400
|
|
|
|
apple:
|
|
type: http
|
|
behavior: classical
|
|
url: "https://gh-proxy.com/https://raw.githubusercontent.com/n0de-sudo/Perfect-Rules/main/Shadowrocket/rules/Apple.list"
|
|
path: ./ruleset/apple.yaml
|
|
interval: 86400
|
|
|
|
bilibili:
|
|
type: http
|
|
behavior: classical
|
|
url: "https://gh-proxy.com/https://raw.githubusercontent.com/n0de-sudo/Perfect-Rules/main/Shadowrocket/rules/BiliBili.list"
|
|
path: ./ruleset/bilibili.yaml
|
|
interval: 86400
|
|
|
|
tiktok:
|
|
type: http
|
|
behavior: classical
|
|
url: "https://gh-proxy.com/https://raw.githubusercontent.com/n0de-sudo/Perfect-Rules/main/Shadowrocket/rules/TikTok.list"
|
|
path: ./ruleset/tiktok.yaml
|
|
interval: 86400
|
|
|
|
game:
|
|
type: http
|
|
behavior: classical
|
|
url: "https://gh-proxy.com/https://raw.githubusercontent.com/n0de-sudo/Perfect-Rules/main/Shadowrocket/rules/game.list"
|
|
path: ./ruleset/game.yaml
|
|
interval: 86400
|
|
|
|
china:
|
|
type: http
|
|
behavior: classical
|
|
url: "https://gh-proxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/ChinaMax/ChinaMax.yaml"
|
|
path: ./ruleset/china.yaml
|
|
interval: 86400
|
|
|
|
# ----------------- 路由分流规则 -----------------
|
|
rules:
|
|
# 应用分流
|
|
- RULE-SET,ai,AI
|
|
- RULE-SET,youtube,YouTube
|
|
- RULE-SET,netflix,Netflix
|
|
- RULE-SET,disney,Disney+
|
|
- RULE-SET,spotify,Spotify
|
|
- RULE-SET,telegram,Telegram
|
|
- RULE-SET,paypal,PayPal
|
|
- RULE-SET,twitter,Twitter
|
|
- RULE-SET,facebook,Facebook
|
|
- RULE-SET,amazon,Amazon
|
|
- RULE-SET,github,GitHub
|
|
- RULE-SET,microsoft,微软服务
|
|
- RULE-SET,google,谷歌服务
|
|
- RULE-SET,apple,苹果服务
|
|
- RULE-SET,bilibili,哔哩哔哩
|
|
- RULE-SET,tiktok,TikTok
|
|
- RULE-SET,game,游戏平台
|
|
|
|
# 局域网直连
|
|
- GEOIP,private,DIRECT,no-resolve
|
|
- GEOIP,LAN,DIRECT,no-resolve
|
|
|
|
# 国内服务与国内 IP 直连 (双保险)
|
|
- RULE-SET,china,DIRECT
|
|
- GEOSITE,cn,DIRECT
|
|
- GEOIP,CN,DIRECT
|
|
|
|
# 兜底规则
|
|
- MATCH,PROXY |