上传文件至「/」

This commit is contained in:
2026-10-21 13:05:02 +08:00
commit 016dd6d86c
3 changed files with 773 additions and 0 deletions
+215
View File
@@ -0,0 +1,215 @@
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 Reality (TCP + Vision)
- name: "VPS-Reality"
type: vless
server: 23.26.204.234
port: 34188
uuid: 9a0e93b4-f5ee-4a1a-bd6f-7660dbae78ce
network: tcp
udp: true
tls: true
flow: xtls-rprx-vision
servername: www.iij.ad.jp
client-fingerprint: firefox
reality-opts:
public-key: PyNq1tukuHc_OtwMEdgSxdJv2miSbw1thQW5ES8ZsmQ
short-id: 4843fabf298d3867
# 2. VMess + WS + TLS (Argo 优选)
- name: "VPS-VMess-Argo"
type: vmess
server: cdns.doon.eu.org
port: 443
uuid: 9a0e93b4-f5ee-4a1a-bd6f-7660dbae78ce
alterId: 0
cipher: auto
udp: true
tls: true
servername: outer-politicians-vol-newbie.trycloudflare.com
client-fingerprint: firefox
network: ws
ws-opts:
path: /vmess-argo?ed=2560
headers:
Host: outer-politicians-vol-newbie.trycloudflare.com
# 3. Hysteria 2 (UDP/QUIC)
- name: "VPS-Hy2"
type: hysteria2
server: 23.26.204.234
port: 14483
password: 9a0e93b4-f5ee-4a1a-bd6f-7660dbae78ce
sni: www.bing.com
alpn:
- h3
skip-cert-verify: true
fingerprint: 90:4B:FC:70:8F:92:E0:E5:49:DF:B5:40:19:2E:6B:8A:AD:28:A9:8A:13:76:38:EF:7C:84:C7:72:85:6C:04:62
# 4. TUIC v5 (UDP/QUIC)
- name: "VPS-TUIC"
type: tuic
server: 23.26.204.234
port: 31686
uuid: 9a0e93b4-f5ee-4a1a-bd6f-7660dbae78ce
password: 9a0e93b4-f5ee-4a1a-bd6f-7660dbae78ce
sni: www.bing.com
alpn:
- h3
congestion-controller: bbr
udp-relay-mode: native
skip-cert-verify: true
# ----------------- 策略组配置 -----------------
proxy-groups:
# 主代理选择
- name: PROXY
type: select
proxies:
- ♻️ 自动选择
- ⚡ 故障转移
- VPS-Reality
- VPS-Hy2
- VPS-TUIC
- VPS-VMess-Argo
- 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-Argo
# 故障转移组 (优先第一节点,失联无缝切换)
- name: ⚡ 故障转移
type: fallback
url: https://www.gstatic.com/generate_204
interval: 180
proxies:
- VPS-Reality
- VPS-Hy2
- VPS-TUIC
- VPS-VMess-Argo
# 广告拦截
- name: 🛑 广告拦截
type: select
proxies:
- REJECT
- DIRECT
# ----------------- Loyalsoldier 规则集订阅 -----------------
rule-providers:
reject:
type: http
behavior: domain
url: "https://gh-proxy.com/https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/reject.txt"
path: ./ruleset/loyalsoldier/reject.yaml
interval: 86400
direct:
type: http
behavior: domain
url: "https://gh-proxy.com/https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/direct.txt"
path: ./ruleset/loyalsoldier/direct.yaml
interval: 86400
gfw:
type: http
behavior: domain
url: "https://gh-proxy.com/https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/gfw.txt"
path: ./ruleset/loyalsoldier/gfw.yaml
interval: 86400
proxy:
type: http
behavior: domain
url: "https://gh-proxy.com/https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/proxy.txt"
path: ./ruleset/loyalsoldier/proxy.yaml
interval: 86400
tld-not-cn:
type: http
behavior: domain
url: "https://gh-proxy.com/https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/tld-not-cn.txt"
path: ./ruleset/loyalsoldier/tld-not-cn.yaml
interval: 86400
cncidr:
type: http
behavior: ipcidr
url: "https://gh-proxy.com/https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/cncidr.txt"
path: ./ruleset/loyalsoldier/cncidr.yaml
interval: 86400
# ----------------- 路由分流规则 (Loyalsoldier 漏斗顺序) -----------------
rules:
# 1. 局域网直连
- GEOIP,private,DIRECT,no-resolve
- GEOIP,LAN,DIRECT,no-resolve
# 2. 广告拦截
- RULE-SET,reject,🛑 广告拦截
# 3. 国内白名单直连
- RULE-SET,direct,DIRECT
# 4. GFW 代理规则
- RULE-SET,gfw,PROXY
- RULE-SET,proxy,PROXY
# 5. 海外常用顶级域名代理
- RULE-SET,tld-not-cn,PROXY
# 6. 国内 IP 段直连 (跳过远程 DNS 避免延迟)
- RULE-SET,cncidr,DIRECT,no-resolve
- GEOIP,CN,DIRECT
# 7. 漏斗底部兜底代理
- MATCH,PROXY
+279
View File
@@ -0,0 +1,279 @@
port: 7890
socks-port: 7891
mixed-port: 7890
allow-lan: false
mode: rule
log-level: info
ipv6: false
external-controller: 127.0.0.1:9090
# DNS 优化 (Fake-IP 避免 DNS 污染与泄露)
dns:
enable: true
listen: 0.0.0.0:1053
ipv6: false
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
nameserver:
- 223.5.5.5
- 119.29.29.29
fallback:
- https://dns.google/dns-query
- https://1.1.1.1/dns-query
fallback-filter:
geoip: true
geoip-code: CN
ipcidr:
- 240.0.0.0/4
# 4 个新节点转换配置
proxies:
# 1. VLESS Reality (TCP + Vision)
- name: "VPS-Reality"
type: vless
server: 154.201.80.157
port: 53151
uuid: a1bf8240-e7a9-47a8-a941-5e556f096e4c
cipher: none
udp: true
tls: true
flow: xtls-rprx-vision
servername: www.iij.ad.jp
reality-opts:
public-key: k-3W2gMnlgj-Xc-hGtigWAyb1uo_fzmE_2Cq8gU7BGw
short-id: 4de0887490c3ad48
client-fingerprint: firefox
tfo: true
# 2. Hysteria 2 (基于 UDP,SHA256 证书锁定)
- name: "VPS-Hy2"
type: hysteria2
server: 154.201.80.157
port: 12580
password: a1bf8240-e7a9-47a8-a941-5e556f096e4c
sni: www.bing.com
skip-cert-verify: true
alpn:
- h3
pinned-sha256: DF:7B:BA:17:E6:86:A4:A1:CE:3D:C3:DC:FB:3F:53:A8:E3:FF:27:E0:FD:35:6D:13:16:8A:EE:8F:93:0C:2D:08
# 3. TUIC v5 (BBR 拥塞控制 + Native UDP)
- name: "VPS-TUIC"
type: tuic
server: 154.201.80.157
port: 34760
uuid: a1bf8240-e7a9-47a8-a941-5e556f096e4c
password: a1bf8240-e7a9-47a8-a941-5e556f096e4c
sni: www.bing.com
congestion-controller: bbr
udp-relay-mode: native
reduce-rtt: true
alpn:
- h3
skip-cert-verify: true
# 4. VMess Argo WebSocket (Cloudflare CDN 兜底)
- name: "VPS-VMess-Argo"
type: vmess
server: cdns.doon.eu.org
port: 443
uuid: a1bf8240-e7a9-47a8-a941-5e556f096e4c
alterId: 0
cipher: auto
udp: true
tls: true
servername: similar-beyond-msgid-jewelry.trycloudflare.com
network: ws
ws-opts:
path: /vmess-argo?ed=2560
headers:
Host: similar-beyond-msgid-jewelry.trycloudflare.com
client-fingerprint: firefox
skip-cert-verify: false
# 策略组
proxy-groups:
- name: "节点选择"
type: select
proxies:
- "自动选优"
- "负载均衡"
- "VPS-Reality"
- "VPS-Hy2"
- "VPS-TUIC"
- "VPS-VMess-Argo"
- name: "自动选优"
type: url-test
url: http://www.gstatic.com/generate_204
interval: 300
tolerance: 50
proxies:
- "VPS-Reality"
- "VPS-Hy2"
- "VPS-TUIC"
- "VPS-VMess-Argo"
- name: "负载均衡"
type: load-balance
url: http://www.gstatic.com/generate_204
interval: 300
strategy: round-robin
proxies:
- "VPS-Reality"
- "VPS-Hy2"
- "VPS-TUIC"
- "VPS-VMess-Argo"
- name: "电报信息"
type: select
proxies:
- "节点选择"
- "VPS-Hy2"
- "VPS-TUIC"
- "VPS-Reality"
- name: "苹果服务"
type: select
proxies:
- DIRECT
- "节点选择"
- name: "国内直连"
type: select
proxies:
- DIRECT
- "节点选择"
- name: "漏网之鱼"
type: select
proxies:
- "节点选择"
- DIRECT
# Loyalsoldier 远程分流规则集
rule-providers:
reject:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/reject.txt"
path: ./ruleset/reject.yaml
interval: 86400
icloud:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/icloud.txt"
path: ./ruleset/icloud.yaml
interval: 86400
apple:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/apple.txt"
path: ./ruleset/apple.yaml
interval: 86400
google:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/google.txt"
path: ./ruleset/google.yaml
interval: 86400
proxy:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/proxy.txt"
path: ./ruleset/proxy.yaml
interval: 86400
direct:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/direct.txt"
path: ./ruleset/direct.yaml
interval: 86400
private:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/private.txt"
path: ./ruleset/private.yaml
interval: 86400
gfw:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/gfw.txt"
path: ./ruleset/gfw.yaml
interval: 86400
tld-not-cn:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/tld-not-cn.txt"
path: ./ruleset/tld-not-cn.yaml
interval: 86400
telegramcidr:
type: http
behavior: ipcidr
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/telegramcidr.txt"
path: ./ruleset/telegramcidr.yaml
interval: 86400
cncidr:
type: http
behavior: ipcidr
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/cncidr.txt"
path: ./ruleset/cncidr.yaml
interval: 86400
lancidr:
type: http
behavior: ipcidr
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/lancidr.txt"
path: ./ruleset/lancidr.yaml
interval: 86400
applications:
type: http
behavior: classical
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/applications.txt"
path: ./ruleset/applications.yaml
interval: 86400
# 匹配执行规则
rules:
# 本地与进程规则
- RULE-SET,applications,DIRECT
# 广告拦截
- RULE-SET,reject,REJECT
# 局域网直连
- RULE-SET,private,DIRECT
- RULE-SET,lancidr,DIRECT,no-resolve
# Telegram 走电报策略组
- RULE-SET,telegramcidr,电报信息,no-resolve
# 苹果服务
- RULE-SET,icloud,苹果服务
- RULE-SET,apple,苹果服务
# Google 与境外代理
- RULE-SET,google,节点选择
- RULE-SET,proxy,节点选择
- RULE-SET,gfw,节点选择
- RULE-SET,tld-not-cn,节点选择
# 国内直连
- RULE-SET,direct,国内直连
- RULE-SET,cncidr,国内直连
- GEOIP,LAN,DIRECT,no-resolve
- GEOIP,CN,国内直连
# 漏网流量兜底
- MATCH,漏网之鱼
+279
View File
@@ -0,0 +1,279 @@
port: 7890
socks-port: 7891
mixed-port: 7890
allow-lan: false
mode: rule
log-level: info
ipv6: false
external-controller: 127.0.0.1:9090
# DNS 优化 (Fake-IP 避免 DNS 污染与泄露)
dns:
enable: true
listen: 0.0.0.0:1053
ipv6: false
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
nameserver:
- 223.5.5.5
- 119.29.29.29
fallback:
- https://dns.google/dns-query
- https://1.1.1.1/dns-query
fallback-filter:
geoip: true
geoip-code: CN
ipcidr:
- 240.0.0.0/4
# 4 个新节点转换配置
proxies:
# 1. VLESS Reality (TCP + Vision)
- name: "VPS-Reality"
type: vless
server: 45.158.230.113
port: 10636
uuid: a109ab8e-bafb-4394-832b-eb28ab36637f
cipher: none
udp: true
tls: true
flow: xtls-rprx-vision
servername: www.iij.ad.jp
reality-opts:
public-key: e-RvDgnO2RiqLZmBtR1a6JaeXh3twKqbwLXFauB0XUM
short-id: 177013690c9b4488
client-fingerprint: firefox
tfo: true
# 2. Hysteria 2 (基于 UDP,SHA256 证书锁定)
- name: "VPS-Hy2"
type: hysteria2
server: 45.158.230.113
port: 18589
password: a109ab8e-bafb-4394-832b-eb28ab36637f
sni: www.bing.com
skip-cert-verify: true
alpn:
- h3
pinned-sha256: 56:B8:3C:7E:46:0B:C9:92:E1:5F:66:4C:85:9F:01:4C:7B:3C:90:E6:FE:9C:02:49:48:09:38:8D:4A:BD:3A:44
# 3. TUIC v5 (BBR 拥塞控制 + Native UDP)
- name: "VPS-TUIC"
type: tuic
server: 45.158.230.113
port: 11945
uuid: a109ab8e-bafb-4394-832b-eb28ab36637f
password: a109ab8e-bafb-4394-832b-eb28ab36637f
sni: www.bing.com
congestion-controller: bbr
udp-relay-mode: native
reduce-rtt: true
alpn:
- h3
skip-cert-verify: true
# 4. VMess Argo WebSocket (Cloudflare CDN 兜底)
- name: "VPS-VMess-Argo"
type: vmess
server: cdns.doon.eu.org
port: 443
uuid: a109ab8e-bafb-4394-832b-eb28ab36637f
alterId: 0
cipher: auto
udp: true
tls: true
servername: jul-feb-cruz-promises.trycloudflare.com
network: ws
ws-opts:
path: /vmess-argo?ed=2560
headers:
Host: jul-feb-cruz-promises.trycloudflare.com
client-fingerprint: firefox
skip-cert-verify: false
# 策略组
proxy-groups:
- name: "节点选择"
type: select
proxies:
- "自动选优"
- "负载均衡"
- "VPS-Reality"
- "VPS-Hy2"
- "VPS-TUIC"
- "VPS-VMess-Argo"
- name: "自动选优"
type: url-test
url: http://www.gstatic.com/generate_204
interval: 300
tolerance: 50
proxies:
- "VPS-Reality"
- "VPS-Hy2"
- "VPS-TUIC"
- "VPS-VMess-Argo"
- name: "负载均衡"
type: load-balance
url: http://www.gstatic.com/generate_204
interval: 300
strategy: round-robin
proxies:
- "VPS-Reality"
- "VPS-Hy2"
- "VPS-TUIC"
- "VPS-VMess-Argo"
- name: "电报信息"
type: select
proxies:
- "节点选择"
- "VPS-Hy2"
- "VPS-TUIC"
- "VPS-Reality"
- name: "苹果服务"
type: select
proxies:
- DIRECT
- "节点选择"
- name: "国内直连"
type: select
proxies:
- DIRECT
- "节点选择"
- name: "漏网之鱼"
type: select
proxies:
- "节点选择"
- DIRECT
# Loyalsoldier 远程分流规则集
rule-providers:
reject:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/reject.txt"
path: ./ruleset/reject.yaml
interval: 86400
icloud:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/icloud.txt"
path: ./ruleset/icloud.yaml
interval: 86400
apple:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/apple.txt"
path: ./ruleset/apple.yaml
interval: 86400
google:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/google.txt"
path: ./ruleset/google.yaml
interval: 86400
proxy:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/proxy.txt"
path: ./ruleset/proxy.yaml
interval: 86400
direct:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/direct.txt"
path: ./ruleset/direct.yaml
interval: 86400
private:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/private.txt"
path: ./ruleset/private.yaml
interval: 86400
gfw:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/gfw.txt"
path: ./ruleset/gfw.yaml
interval: 86400
tld-not-cn:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/tld-not-cn.txt"
path: ./ruleset/tld-not-cn.yaml
interval: 86400
telegramcidr:
type: http
behavior: ipcidr
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/telegramcidr.txt"
path: ./ruleset/telegramcidr.yaml
interval: 86400
cncidr:
type: http
behavior: ipcidr
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/cncidr.txt"
path: ./ruleset/cncidr.yaml
interval: 86400
lancidr:
type: http
behavior: ipcidr
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/lancidr.txt"
path: ./ruleset/lancidr.yaml
interval: 86400
applications:
type: http
behavior: classical
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/applications.txt"
path: ./ruleset/applications.yaml
interval: 86400
# 规则匹配
rules:
# 本地与进程规则
- RULE-SET,applications,DIRECT
# 广告拦截
- RULE-SET,reject,REJECT
# 局域网直连
- RULE-SET,private,DIRECT
- RULE-SET,lancidr,DIRECT,no-resolve
# Telegram 走电报策略组
- RULE-SET,telegramcidr,电报信息,no-resolve
# 苹果服务
- RULE-SET,icloud,苹果服务
- RULE-SET,apple,苹果服务
# Google 与境外代理
- RULE-SET,google,节点选择
- RULE-SET,proxy,节点选择
- RULE-SET,gfw,节点选择
- RULE-SET,tld-not-cn,节点选择
# 国内直连
- RULE-SET,direct,国内直连
- RULE-SET,cncidr,国内直连
- GEOIP,LAN,DIRECT,no-resolve
- GEOIP,CN,国内直连
# 漏网流量兜底
- MATCH,漏网之鱼