Files
ruleset/config/stash/temple/Sample_Infatuation-Fei.yaml
T

281 lines
8.2 KiB
YAML

#https://github.com/Infatuation-Fei/rule/blob/main/Stash/%E9%85%8D%E7%BD%AE%E6%A8%A1%E6%9D%BF/Config%20for%20Stash.yaml
# 将proxy-providers里面链接中的“订阅链接”替换即可
mixed-port: 7890
allow-lan: true
bind-address: '*'
mode: rule
log-level: info
ipv6: true
external-controller: 127.0.0.1:9090
subscribe-url: 订阅链接
#替换上面文字用于Stash获取机场流量信息并在主页显示
proxy-providers:
All:
type: http
url: "https://api.v1.mk/sub?target=clash&url=订阅链接&emoji=true&list=true&udp=true"
# 以下方法任选其一⚠️有Clash订阅优先使用方法二❗️
# 1.可以使用任意类型的链接仅替换上面文字,多个链接使用英文符号的竖杠|隔开一起写上即可
# 2.Sub-Store与Clash类型订阅链接替换掉整个引号""内的链接
interval: 86400
path: ./all.yaml
health-check:
enable: true
interval: 600
url: http://www.gstatic.com/generate_204
dns:
enable: true
ipv6: true
listen: 0.0.0.0:53
default-nameserver:
- 119.29.29.29
- 223.5.5.5
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
fake-ip-filter:
- '*.lan'
- localhost.ptlogin2.qq.com
- '+.srv.nintendo.net'
- '+.stun.playstation.net'
- '+.msftconnecttest.com'
- '+.msftncsi.com'
- '+.xboxlive.com'
- 'msftconnecttest.com'
- 'xbox.*.microsoft.com'
- '*.battlenet.com.cn'
- '*.battlenet.com'
- '*.blzstatic.cn'
- '*.battle.net'
nameserver:
- https://doh.pub/dns-query
- https://dns.alidns.com/dns-query
proxies:
proxy-groups:
- name: 手动切换
type: select
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Rocket.png
include-all: true #引用所有节点
proxies:
- 自动选择
- 故障转移
- name: 自动选择
type: url-test
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Auto.png
include-all: true
url: "http://www.gstatic.com/generate_204"
interval: 300
- name: 故障转移
type: fallback
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Bypass.png
url: 'http://www.gstatic.com/generate_204'
interval: 300
include-all: true
- name: 国外网站
type: select
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Global.png
proxies: &G
- 手动切换
- 自动选择
- 故障转移
- 香港节点
- 日本节点
- 美国节点
- 台湾节点
- name: 国内网站
type: select
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/China_Map.png
proxies: &C
- DIRECT
- 手动切换
- 自动选择
- 故障转移
- 香港节点
- 日本节点
- 美国节点
- 台湾节点
- name: YouTube
type: select
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/YouTube.png
proxies:
*G
- name: NETFLIX
type: select
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Netflix.png
proxies:
*G
- name: Disney+
type: select
icon: https://raw.githubusercontent.com/Orz-3/mini/master/Color/DisneyPlus.png
proxies:
*G
- name: 苹果服务
type: select
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Apple.png
proxies:
*C
- name: 微软服务
type: select
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Microsoft.png
proxies:
*G
- name: 网易音乐
type: select
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Netease_Music.png
proxies:
- DIRECT
- name: 哔哩哔哩
type: select
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/bilibili_3.png
proxies:
*C
- name: 游戏平台
type: select
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Game.png
proxies:
*G
- name: 漏网之鱼
type: select
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Final.png
proxies:
*G
- name: 香港节点
type: select
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Hong_Kong.png
include-all: true
filter: (?=.*(港|🇭🇰|HK|(?i)Hong))^((?!(台|日|韩|新|美)).)*$
- name: 日本节点
type: select
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Japan.png
include-all: true
filter: (?=.*(日|🇯🇵|JP|(?i)Japan))^((?!(港|台|韩|新|美)).)*$
- name: 台湾节点
type: select
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Taiwan.png
include-all: true
filter: (?=.*(台|🇨🇳|🇹🇼|TW|(?i)Taiwan))^((?!(港|日|韩|新|美)).)*$
- name: 美国节点
type: select
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/United_States.png
include-all: true
filter: (?=.*(美|🇺🇸|US|(?i)States|American))^((?!(港|台|日|韩|新)).)*$
rule-providers:
YouTube:
type: http
behavior: classical
url: "https://ghproxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/YouTube/YouTube.yaml"
path: ./ruleset/YouTube.yaml
interval: 86400
Netflix:
type: http
behavior: classical
url: "https://ghproxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Netflix/Netflix.yaml"
path: ./ruleset/Netflix.yaml
interval: 86400
Disney:
type: http
behavior: classical
url: "https://ghproxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Disney/Disney.yaml"
path: ./ruleset/Disney.yaml
interval: 86400
Apple:
type: http
behavior: domain
format: text
url: "https://ghproxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Apple/Apple_Domain.txt"
path: ./ruleset/Apple.yaml
interval: 86400
Microsoft:
type: http
behavior: classical
url: "https://ghproxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Microsoft/Microsoft.yaml"
path: ./ruleset/Microsoft.yaml
interval: 86400
NetEaseMusic:
type: http
behavior: classical
url: "https://ghproxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/NetEaseMusic/NetEaseMusic.yaml"
path: ./ruleset/NetEaseMusic.yaml
interval: 86400
BiliBili:
type: http
behavior: classical
url: "https://ghproxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/BiliBili/BiliBili.yaml"
path: ./ruleset/BiliBili.yaml
interval: 86400
Game:
type: http
behavior: classical
url: "https://ghproxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Game/Game.yaml"
path: ./ruleset/Game.yaml
interval: 86400
OtherProxy:
type: http
behavior: classical
url: "https://ghproxy.com/https://raw.githubusercontent.com/Infatuation-Fei/rule/main/Clash/Rule/OtherProxy.yaml"
path: ./ruleset/OtherProxy.yaml
interval: 86400
China:
type: http
behavior: domain
format: text
url: "https://ghproxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/China/China_Domain.txt"
path: ./ruleset/China.yaml
interval: 86400
Global:
type: http
behavior: domain
format: text
url: "https://ghproxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Global/Global_Domain.txt"
path: ./ruleset/Global-Domain.yaml
interval: 86400
rules:
- RULE-SET,YouTube,YouTube
- RULE-SET,Netflix,NETFLIX
- RULE-SET,Disney,Disney+
- RULE-SET,Apple,苹果服务
- RULE-SET,Microsoft,微软服务
- RULE-SET,NetEaseMusic,网易音乐
- RULE-SET,BiliBili,哔哩哔哩
- RULE-SET,Game,游戏平台
- RULE-SET,OtherProxy,国外网站
- RULE-SET,Global,国外网站
- RULE-SET,China,国内网站
- GEOIP,Lan,DIRECT,no-resolve
- GEOIP,CN,国内网站,no-resolve
- MATCH,漏网之鱼