diff --git a/config/stash/Sample.yaml b/config/stash/Sample.yaml new file mode 100644 index 0000000..fe22b44 --- /dev/null +++ b/config/stash/Sample.yaml @@ -0,0 +1,259 @@ +# Stash/Clash/Premium/Meta Config Make by Coldvvater +# TG Channel: https://t.me/Coldvvater_Channel +# GitHub: https://github.com/Coldvvater +# Update Date: 2023.11.25 + +mixed-port: 7890 # 混合端口,HTTP和SOCKS5用一个端口 +allow-lan: true # 允许局域网的连接(共享代理) +bind-address: "*" # 监听IP白名单,可绑定单个IPv4和v6地址,"*" 为绑定所有IP地址,仅在将allow-lan设置为true时适用 + + +ipv6: true # 开启 IPv6 总开关,关闭阻断所有 IPv6 链接和屏蔽 DNS 请求 AAAA 记录 +mode: rule # 规则模式:rule(规则) / global(全局代理)/ direct(全局直连)/ script (脚本) +log-level: info # 设置日志输出级别 (5 个级别:silent / error / warning / info / debug) + +external-controller: 127.0.0.1:9090 # 外部控制器监听地址,可以使用 RESTful API 来控制你的 clash 内核 + +dns: + enable: true # 关闭将使用系统 DNS + ipv6: true # IPV6解析开关;如果为false,将返回ipv6结果为空 + enhanced-mode: fake-ip # 模式:redir-host或fake-ip + listen: 0.0.0.0:53 # DNS 监听地址 + default-nameserver: [223.5.5.5, 119.29.29.29, 114.114.114.114] + # 解析非IP的dns用的dns服务器,只支持纯IP,(Meta可为其加密) + nameserver: [https://223.5.5.5/dns-query, https://1.12.12.12/dns-query] + # 默认DNS服务器,支持udp/tcp/dot/doh/doq + + fake-ip-range: 198.18.0.1/16 # Fake-IP 解析地址池 + fake-ip-filter: ['*.lan', 'cable.auth.com', '*.msftconnecttest.com', '*.msftncsi.com', 'network-test.debian.org', 'detectportal.firefox.com', 'resolver1.opendns.com', '*.srv.nintendo.net', '*.stun.playstation.net', 'xbox.*.microsoft.com', '*.xboxlive.com', 'stun.*', 'global.turn.twilio.com', 'global.stun.twilio.com', 'localhost.*.qq.com', 'localhost.*.weixin.qq.com', '*.logon.battlenet.com.cn', '*.logon.battle.net', '*.blzstatic.cn', 'music.163.com', '*.music.163.com', '*.126.net', 'musicapi.taihe.com', 'music.taihe.com', 'songsearch.kugou.com', 'trackercdn.kugou.com', '*.kuwo.cn', 'api-jooxtt.sanook.com', 'api.joox.com', 'joox.com', 'y.qq.com', '*.y.qq.com', 'streamoc.music.tc.qq.com', 'mobileoc.music.tc.qq.com', 'isure.stream.qqmusic.qq.com', 'dl.stream.qqmusic.qq.com', 'aqqmusic.tc.qq.com', 'amobile.music.tc.qq.com', '*.xiami.com', '*.music.migu.cn', 'music.migu.cn', 'proxy.golang.org', '*.mcdn.bilivideo.cn', '*.cmpassport.com', 'id6.me', 'open.e.189.cn', 'mdn.open.wo.cn', 'opencloud.wostore.cn', 'auth.wosms.cn', '*.jegotrip.com.cn', '*.icitymobile.mobi', '*.pingan.com.cn', '*.cmbchina.com', 'pool.ntp.org', '*.pool.ntp.org', 'ntp.*.com', 'time.*.com', 'ntp?.*.com', 'time?.*.com', 'time.*.gov', 'time.*.edu.cn', '*.ntp.org.cn', 'PDC._msDCS.*.*', 'DC._msDCS.*.*', 'GC._msDCS.*.*'] + # Fake-ip 过滤,列表中的域名返回真实IP + +###锚点### + +# 规则行为相关 +c: &c {type: http, behavior: classical, interval: 86400} + +d: &d {type: http, behavior: domain, interval: 86400} + +# 远程订阅相关 +p: &p {type: http, interval: 42300, health-check: {enable: true, url: http://www.apple.com/library/test/success.html, interval: 300}} + +# 代理组相关 +g: &g {type: select, proxies: [Proxy, Auto, Fallback, HongKong, TaiWan, Singapore, Japan, America, Others, DIRECT]} + +m: &m {type: select, proxies: [DIRECT, Proxy, Auto, Fallback, HongKong, TaiWan, Singapore, Japan, America, Others]} + +# 本地服务器 +proxies: null + +# 订阅引用相关 +u: &u {type: select, use: [Subscribe]} + +# 远程订阅 +proxy-providers: + Subscribe: {<<: *p, path: ./proxy_providers/subscribe.yaml, url: ""} +# 1. 请使用Clash类型订阅链接填入引号""内使用, +# 2. 或可使用通用订阅链接通过Sub-Store进行订阅转换(用于Stash)。 + +# 代理组 +proxy-groups: + +# 漏网之鱼 + - {name: Final, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/Final.png, <<: *g, proxies: [Proxy,DIRECT]} + +# 节点切换 + - {name: Proxy, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/Rocket.png, <<: *g, proxies: [Auto,Fallback,HongKong,TaiWan,Singapore,Japan,America,Others]} + +# 自动选择 + - {name: Auto, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/Auto.png, type: url-test, lazy: true, <<: *u} + +# 故障转移 + - {name: Fallback, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/Available.png, type: fallback, <<: *u} + +# 国外网站 + - {name: Global, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/Global.png, <<: *g} + +# 国内网站 + - {name: Mainland, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/China_Map.png, <<: *m, proxies: [DIRECT,Proxy,Auto]} + +# 人工智能 + - {name: OpenAI, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/Bot.png, <<: *g, proxies: [America,Japan,Singapore,TaiWan,Others]} + +# 油管视频 + - {name: YouTube, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/YouTube.png, <<: *g} + +# 奈飞影视 + - {name: NETFLIX, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/Netflix.png, <<: *g} + +# 迪士尼+ + - {name: Disney+, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/Disney%2B.png, <<: *g} + +# Emby + - {name: Emby, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/Emby.png, <<: *g} + +# 哔哩哔哩 + - {name: BiliBili, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/bilibili.png, <<: *m, proxies: [DIRECT,HongKong,TaiWan]} + +# 声田音乐 + - {name: Spotify, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/Spotify.png, <<: *g} + +# 网易云音乐 + - {name: NetEaseMusic, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/Netease_Music.png, <<: *m, proxies: [DIRECT,Proxy]} + +# 海外抖音 + - {name: TikTok, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/TikTok.png, <<: *g} + +# 国际媒体 + - {name: Streaming, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/Streaming.png, <<: *g} + +# 电报信息 + - {name: Telegram, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/Telegram_X.png, <<: *g} + +# 苹果服务 + - {name: Apple, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/Apple.png, <<: *m} + +# 谷歌服务 + - {name: Google, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/Google.png, <<: *g} + +# 微软服务 + - {name: Microsoft, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/Microsoft.png, <<: *m} + +# 游戏平台 + - {name: Games, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/Game.png, <<: *g} + +# 网络测试 + - {name: Speedtest, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/Speedtest.png, <<: *m, proxies: [DIRECT,Proxy]} + +# 香港节点 + - {name: HongKong, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/Hong_Kong.png, <<: *u, filter: "港|🇭🇰|HK|(?i)Hong"} + +# 台湾节点 + - {name: TaiWan, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/China.png, <<: *u, filter: "台|🇨🇳|🇹🇼|湾|TW|(?i)Taiwan"} + +# 狮城节点 + - {name: Singapore, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/Singapore.png, <<: *u, filter: "新加坡|坡|狮城|🇸🇬|SG|(?i)Singapore"} + +# 日本节点 + - {name: Japan, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/Japan.png, <<: *u, filter: "日|🇯🇵|东京|JP|(?i)Japan"} + +# 美国节点 + - {name: America, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/United_States.png, <<: *u, filter: "美|🇺🇲|US|(?i)States|American"} + +# 其他节点 + - {name: Others, icon: https://raw.githubusercontents.com/Koolson/Qure/master/IconSet/mini/Airport.png, <<: *u, filter: "^((?!香港|HK|Hong Kong|台湾|TW|TaiWan|新加坡|SG|Singapore|狮城|日本|JP|Japan|美国|US|States|American|Music)).*$"} + +# 远程规则集 +rule-providers: + +# 隐私网络 + private: {<<: *d, path: ./rules/private.yaml, url: https://raw.githubusercontents.com/Loyalsoldier/clash-rules/release/private.txt} + +# 网络测试 + speedtest: {<<: *c, path: ./rules/speedtest.yaml, url: https://raw.githubusercontents.com/blackmatrix7/ios_rule_script/master/rule/Clash/Speedtest/Speedtest.yaml} + +# 人工智能 + openai: {<<: *c, path: ./rules/openai.yaml, url: https://raw.githubusercontents.com/Coldvvater/Mononoke/master/Stash/RuleSet/AI.yaml} + +# 油管视频 + youtube: {<<: *c, path: ./rules/youtube.yaml, url: https://raw.githubusercontents.com/ACL4SSR/ACL4SSR/master/Clash/Providers/Ruleset/YouTube.yaml} + +# 奈飞影视 + netflix: {<<: *c, path: ./rules/netflix.yaml, url: https://raw.githubusercontents.com/ACL4SSR/ACL4SSR/master/Clash/Providers/Ruleset/Netflix.yaml} + +# 迪士尼+ + disney: {<<: *c, path: ./rules/disney.yaml, url: https://raw.githubusercontents.com/ACL4SSR/ACL4SSR/master/Clash/Providers/Ruleset/DisneyPlus.yaml} + +# Emby + emby: {<<: *c, path: ./rules/emby.yaml, url: https://raw.githubusercontents.com/blackmatrix7/ios_rule_script/master/rule/Clash/Emby/Emby.yaml} + +# 动画疯 + bahamut: {<<: *c, path: ./rules/bahamut.yaml, url: https://raw.githubusercontents.com/ACL4SSR/ACL4SSR/master/Clash/Providers/Ruleset/Bahamut.yaml} + +# 哔哩哔哩东南亚 + biliintl: {<<: *c, path: ./rules/biliintl.yaml, url: https://raw.githubusercontents.com/blackmatrix7/ios_rule_script/master/rule/Clash/BiliBiliIntl/BiliBiliIntl.yaml} + +# 哔哩哔哩 + bilibili: {<<: *c, path: ./rules/bilibili.yaml, url: https://raw.githubusercontents.com/ACL4SSR/ACL4SSR/master/Clash/Providers/Ruleset/Bilibili.yaml} + +# 声田音乐 + spotify: {<<: *c, path: ./rules/spotify.yaml, url: https://raw.githubusercontents.com/ACL4SSR/ACL4SSR/master/Clash/Providers/Ruleset/Spotify.yaml} + +# 网易云音乐 + neteasemusic: {<<: *c, path: ./rules/neteasemusic.yaml, url: https://raw.githubusercontents.com/ACL4SSR/ACL4SSR/master/Clash/Providers/Ruleset/NetEaseMusic.yaml} + +# 海外抖音 + tiktok: {<<: *c, path: ./rules/tiktok.yaml, url: https://raw.githubusercontents.com/ACL4SSR/ACL4SSR/master/Clash/Providers/Ruleset/TikTok.yaml} + +# 国际媒体 + streamingmedia: {<<: *c, path: ./rules/streamingmedia.yaml, url: https://raw.githubusercontents.com/ACL4SSR/ACL4SSR/master/Clash/Providers/ProxyMedia.yaml} + +# 电报信息 + telegram: {<<: *c, path: ./rules/telegram.yaml, url: https://raw.githubusercontents.com/ACL4SSR/ACL4SSR/master/Clash/Providers/Ruleset/Telegram.yaml} + +# GitHub + gitHub: {<<: *c, path: ./rules/gitHub.yaml, url: https://raw.githubusercontents.com/ACL4SSR/ACL4SSR/master/Clash/Providers/Ruleset/Github.yaml} + +# Twitter + twitter: {<<: *c, path: ./rules/twitter.yaml, url: https://raw.githubusercontents.com/ACL4SSR/ACL4SSR/master/Clash/Providers/Ruleset/Twitter.yaml} + +# TestFlight + testflight: {<<: *c, path: ./rules/testflight.yaml, url: https://raw.githubusercontents.com/blackmatrix7/ios_rule_script/master/rule/Clash/TestFlight/TestFlight.yaml} + +# 苹果服务 + apple: {<<: *d, path: ./rules/apple.yaml, url: https://raw.githubusercontents.com/blackmatrix7/ios_rule_script/master/rule/Clash/Apple/Apple_Domain.yaml} + +# 谷歌服务 + google: {<<: *c, path: ./rules/google.yaml, url: https://raw.githubusercontents.com/ACL4SSR/ACL4SSR/master/Clash/Providers/Ruleset/Google.yaml} + +# 微软服务 + microsoft: {<<: *c, path: ./rules/microsoft.yaml, url: https://raw.githubusercontents.com/ACL4SSR/ACL4SSR/master/Clash/Providers/Ruleset/Microsoft.yaml} + +# 游戏平台 + games: {<<: *c, path: ./rules/games.yaml, url: https://raw.githubusercontents.com/blackmatrix7/ios_rule_script/master/rule/Clash/Game/Game_No_Resolve.yaml} + +# 国内网站 + cn: {<<: *d, path: ./rules/cn.yaml, url: https://raw.githubusercontents.com/blackmatrix7/ios_rule_script/master/rule/Clash/China/China_Domain.yaml} + +# 国外网站 + proxy: {<<: *d, path: ./rules/proxy.yaml, url: https://raw.githubusercontents.com/blackmatrix7/ios_rule_script/master/rule/Clash/Global/Global_Domain.yaml} + +# 分流规则引用 +rules: +# - AND,((NETWORK,UDP),(DST-PORT,443)),REJECT +# - SCRIPT,quic,REJECT + - DOMAIN,clash.razord.top,DIRECT + - DOMAIN,yacd.metacubex.one,DIRECT + - DOMAIN,yacd.haishan.me,DIRECT + - DOMAIN,d.metacubex.one,DIRECT + - DOMAIN-SUFFIX,ziffstatic.com,Speedtest + - RULE-SET,private,DIRECT + - RULE-SET,speedtest,Speedtest + - RULE-SET,openai,OpenAI + - RULE-SET,youtube,YouTube + - RULE-SET,netflix,NETFLIX + - RULE-SET,disney,Disney+ + - RULE-SET,emby,Emby + - RULE-SET,bahamut,TaiWan + - RULE-SET,biliintl,Streaming + - RULE-SET,bilibili,BiliBili + - RULE-SET,spotify,Spotify + - RULE-SET,neteasemusic,NetEaseMusic + - RULE-SET,tiktok,TikTok + - RULE-SET,streamingmedia,Streaming + - RULE-SET,telegram,Telegram + - RULE-SET,gitHub,Global + - RULE-SET,twitter,Global + - RULE-SET,testflight,Global + - RULE-SET,apple,Apple + - RULE-SET,google,Google + - RULE-SET,microsoft,Microsoft + - RULE-SET,games,Games + - RULE-SET,proxy,Global + - RULE-SET,cn,Mainland + - GEOIP,private,DIRECT + - GEOIP,CN,Mainland + - MATCH,Final + +script: + shortcuts: + quic: network == 'udp' and dst_port == 443 \ No newline at end of file diff --git a/config/stash/salem.yaml b/config/stash/salem.yaml deleted file mode 100644 index e69de29..0000000