|
|
过于复杂了吧,metacubexd官方配置:
services:
mihomo:
container_name: mihomo
image: metacubex/mihomo
restart: always
pid: host
ipc: host
network_mode: host
cap_add:
- ALL
security_opt:
- apparmor=unconfined
环境变量配置(时区放在这里)
environment:
仅保留文件/目录挂载
volumes:
- /vol1/1000/docker/mihomo:/root/.config/mihomo
#自己决定开不开
-/dev/net/tun:/dev/net/tun
metacubexd:
container_name: metacubexd
image: ghcr.io/metacubex/metacubexd
restart: always
network_mode: bridge
ports:
环境变量配置(时区放在这里)
environment:
仅保留文件/目录挂载
volumes:
-/vol1/1000/docker/mihomo/metacubexd:/config/caddy
config.yaml配置:
端口配置
port: 7890
socks-port: 7891
mixed-port: 10801
redir-port: 7892
tproxy-port: 7893
网络设置
allow-lan: true
bind-address: '*'
mode: rule
log-level: debug
external-controller: '0.0.0.0:9090'
TUN 配置
tun:
enable: true
stack: mixed
dns-hijack:
- any:53
- tcp://any:53
auto-route: true
auto-redirect: true
auto-detect-interface: true
代理提供者1
proxy-providers:
mihomo:
url: "你的订阅"
type: http
interval: 3600
health-check:
enable: true
url: "https://www.gstatic.com/generate_204"
interval: 300
override:
additional-prefix: ""
代理列表
proxies:
- name: "直连"
type: direct
udp: true
GeoData 配置
geodata-mode: true
geox-url:
geoip: "https://ghfast.top/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip-lite.dat"
geosite: "https://ghfast.top/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat"
mmdb: "https://ghfast.top/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/country-lite.mmdb"
asn: "https://ghfast.top/https://github.com/xishang0128/geoip/releases/download/latest/GeoLite2-ASN.mmdb"
auto-update: true
update-interval: 12
DNS 配置
dns:
enable: true
ipv6: true
respect-rules: true
enhanced-mode: fake-ip
fake-ip-filter:
- "*"
- "+.lan"
- "+.local"
- "+.**.xiaomi.com"
nameserver:
- https://120.53.53.53/dns-query
- https://223.5.5.5/dns-query
proxy-server-nameserver:
- https://120.53.53.53/dns-query
- https://223.5.5.5/dns-query
nameserver-policy:
geosite:cn,private:
- https://120.53.53.53/dns-query
- https://223.5.5.5/dns-query
geosite:geolocation-!cn:
- https://dns.cloudflare.com/dns-query
- https://dns.google/dns-query
代理组
proxy-groups:
- name: 🚀 节点选择
type: select
proxies:
- ♻️ 自动选择
- 🇭🇰 **节点
- 🇨🇳 **节点
- 🇸🇬 狮城节点
- 🇯🇵 日本节点
- 🇺🇲 美国节点
- 🇰🇷 韩国节点
- 🚀 手动切换
- DIRECT
- name: 🚀 手动切换
include-all: true
type: select
- name: ♻️ 自动选择
type: url-test
include-all: true
interval: 300
tolerance: 50
- name: 📲 电报消息
type: select
proxies:
- 🚀 节点选择
- ♻️ 自动选择
- 🇸🇬 狮城节点
- 🇭🇰 **节点
- 🇨🇳 **节点
- 🇯🇵 日本节点
- 🇺🇲 美国节点
- 🇰🇷 韩国节点
- 🚀 手动切换
- DIRECT
- name: 💬 OpenAi
type: select
proxies:
- 🚀 节点选择
- ♻️ 自动选择
- 🇸🇬 狮城节点
- 🇭🇰 **节点
- 🇨🇳 **节点
- 🇯🇵 日本节点
- 🇺🇲 美国节点
- 🇰🇷 韩国节点
- 🚀 手动切换
- DIRECT
- name: 📹 油管视频
type: select
proxies:
- 🚀 节点选择
- ♻️ 自动选择
- 🇸🇬 狮城节点
- 🇭🇰 **节点
- 🇨🇳 **节点
- 🇯🇵 日本节点
- 🇺🇲 美国节点
- 🇰🇷 韩国节点
- 🚀 手动切换
- DIRECT
- name: 🎥 奈飞视频
type: select
proxies:
- 🚀 节点选择
- ♻️ 自动选择
- 🎥 奈飞节点
- 🇸🇬 狮城节点
- 🇭🇰 **节点
- 🇨🇳 **节点
- 🇯🇵 日本节点
- 🇺🇲 美国节点
- 🇰🇷 韩国节点
- 🚀 手动切换
- DIRECT
- name: 📺 巴哈姆特
type: select
proxies:
- 🇨🇳 **节点
- 🚀 节点选择
- 🚀 手动切换
- DIRECT
- name: 📺 哔哩哔哩
type: select
proxies:
- name: 🌍 国外媒体
type: select
proxies:
- 🚀 节点选择
- ♻️ 自动选择
- 🇭🇰 **节点
- 🇨🇳 **节点
- 🇸🇬 狮城节点
- 🇯🇵 日本节点
- 🇺🇲 美国节点
- 🇰🇷 韩国节点
- 🚀 手动切换
- DIRECT
- name: 🌏 国内媒体
type: select
proxies:
- DIRECT
- 🇭🇰 **节点
- 🇨🇳 **节点
- 🇸🇬 狮城节点
- 🇯🇵 日本节点
- 🚀 手动切换
- name: 📢 谷歌FCM
type: select
proxies:
- DIRECT
- 🚀 节点选择
- 🇺🇲 美国节点
- 🇭🇰 **节点
- 🇨🇳 **节点
- 🇸🇬 狮城节点
- 🇯🇵 日本节点
- 🇰🇷 韩国节点
- 🚀 手动切换
- name: Ⓜ️ 微软Bing
type: select
proxies:
- DIRECT
- 🚀 节点选择
- 🇺🇲 美国节点
- 🇭🇰 **节点
- 🇨🇳 **节点
- 🇸🇬 狮城节点
- 🇯🇵 日本节点
- 🇰🇷 韩国节点
- 🚀 手动切换
- name: Ⓜ️ 微软云盘
type: select
proxies:
- DIRECT
- 🚀 节点选择
- 🇺🇲 美国节点
- 🇭🇰 **节点
- 🇨🇳 **节点
- 🇸🇬 狮城节点
- 🇯🇵 日本节点
- 🇰🇷 韩国节点
- 🚀 手动切换
- name: Ⓜ️ 微软服务
type: select
proxies:
- 🚀 节点选择
- DIRECT
- 🇺🇲 美国节点
- 🇭🇰 **节点
- 🇨🇳 **节点
- 🇸🇬 狮城节点
- 🇯🇵 日本节点
- 🇰🇷 韩国节点
- 🚀 手动切换
- name: 🍎 苹果服务
type: select
proxies:
- DIRECT
- 🚀 节点选择
- 🇺🇲 美国节点
- 🇭🇰 **节点
- 🇨🇳 **节点
- 🇸🇬 狮城节点
- 🇯🇵 日本节点
- 🇰🇷 韩国节点
- 🚀 手动切换
- name: 🎮 游戏平台
type: select
proxies:
- DIRECT
- 🚀 节点选择
- 🇺🇲 美国节点
- 🇭🇰 **节点
- 🇨🇳 **节点
- 🇸🇬 狮城节点
- 🇯🇵 日本节点
- 🇰🇷 韩国节点
- 🚀 手动切换
- name: 🎶 **音乐
type: select
include-all: true
filter: (?i)**|音乐|NetEase|Music
proxies:
- name: 🎯 全球直连
type: select
proxies:
- name: 🛑 广告拦截
type: select
proxies:
- name: 🍃 应用净化
type: select
proxies:
- name: 🐟 漏网之鱼
type: select
proxies:
- 🚀 节点选择
- ♻️ 自动选择
- DIRECT
- 🇭🇰 **节点
- 🇨🇳 **节点
- 🇸🇬 狮城节点
- 🇯🇵 日本节点
- 🇺🇲 美国节点
- 🇰🇷 韩国节点
- 🚀 手动切换
- name: 🇭🇰 **节点
include-all: true
filter: (?i)港|HK|hk|Hong Kong|HongKong|hongkong
type: url-test
interval: 300
tolerance: 50
- name: 🇯🇵 日本节点
include-all: true
filter: (?i)日本|川日|东京|大阪|泉日|埼玉|沪日|深日|JP|Japan
type: url-test
interval: 300
tolerance: 50
- name: 🇺🇲 美国节点
include-all: true
filter: (?i)美|波特兰|达拉斯|俄勒冈|凤凰城|费利蒙|硅谷|拉斯维加斯|洛杉矶|圣何塞|圣克拉拉|西雅图|芝加哥|US|United States
type: url-test
interval: 300
tolerance: 50
- name: 🇨🇳 **节点
include-all: true
filter: (?i)台|新北|彰化|TW|**
type: url-test
interval: 300
tolerance: 50
- name: 🇸🇬 狮城节点
include-all: true
filter: (?i)新加坡|坡|狮城|SG|Singapore
type: url-test
interval: 300
tolerance: 50
- name: 🇰🇷 韩国节点
include-all: true
filter: (?i)KR|Korea|KOR|首尔|韩|韓
type: url-test
interval: 300
tolerance: 50
- name: 🎥 奈飞节点
include-all: true
filter: (?i)NF|奈飞|解锁|Netflix|NETFLIX|Media
type: select
规则提供者
rule-providers:
LocalAreaNetwork:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/LocalAreaNetwork.list
path: ./ruleset/LocalAreaNetwork.list
behavior: classical
interval: 86400
format: text
type: http
UnBan:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/UnBan.list
path: ./ruleset/UnBan.list
behavior: classical
interval: 86400
format: text
type: http
BanAD:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/BanAD.list
path: ./ruleset/BanAD.list
behavior: classical
interval: 86400
format: text
type: http
BanProgramAD:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/BanProgramAD.list
path: ./ruleset/BanProgramAD.list
behavior: classical
interval: 86400
format: text
type: http
GoogleFCM:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/Ruleset/GoogleFCM.list
path: ./ruleset/GoogleFCM.list
behavior: classical
interval: 86400
format: text
type: http
GoogleCN:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/GoogleCN.list
path: ./ruleset/GoogleCN.list
behavior: classical
interval: 86400
format: text
type: http
SteamCN:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/Ruleset/SteamCN.list
path: ./ruleset/SteamCN.list
behavior: classical
interval: 86400
format: text
type: http
Bing:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/Bing.list
path: ./ruleset/Bing.list
behavior: classical
interval: 86400
format: text
type: http
OneDrive:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/OneDrive.list
path: ./ruleset/OneDrive.list
behavior: classical
interval: 86400
format: text
type: http
Microsoft:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/Microsoft.list
path: ./ruleset/Microsoft.list
behavior: classical
interval: 86400
format: text
type: http
Apple:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/Apple.list
path: ./ruleset/Apple.list
behavior: classical
interval: 86400
format: text
type: http
Telegram:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/Telegram.list
path: ./ruleset/Telegram.list
behavior: classical
interval: 86400
format: text
type: http
OpenAi:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/Ruleset/OpenAi.list
path: ./ruleset/OpenAi.list
behavior: classical
interval: 86400
format: text
type: http
NetEaseMusic:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/Ruleset/NetEaseMusic.list
path: ./ruleset/NetEaseMusic.list
behavior: classical
interval: 86400
format: text
type: http
Epic:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/Ruleset/Epic.list
path: ./ruleset/Epic.list
behavior: classical
interval: 86400
format: text
type: http
Origin:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/Ruleset/Origin.list
path: ./ruleset/Origin.list
behavior: classical
interval: 86400
format: text
type: http
Sony:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/Ruleset/Sony.list
path: ./ruleset/Sony.list
behavior: classical
interval: 86400
format: text
type: http
Steam:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/Ruleset/Steam.list
path: ./ruleset/Steam.list
behavior: classical
interval: 86400
format: text
type: http
Nintendo:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/Ruleset/Nintendo.list
path: ./ruleset/Nintendo.list
behavior: classical
interval: 86400
format: text
type: http
**:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/Ruleset/**.list
path: ./ruleset/**.list
behavior: classical
interval: 86400
format: text
type: http
Netflix:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/Ruleset/Netflix.list
path: ./ruleset/Netflix.list
behavior: classical
interval: 86400
format: text
type: http
Bahamut:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/Ruleset/Bahamut.list
path: ./ruleset/Bahamut.list
behavior: classical
interval: 86400
format: text
type: http
BilibiliHMT:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/Ruleset/BilibiliHMT.list
path: ./ruleset/BilibiliHMT.list
behavior: classical
interval: 86400
format: text
type: http
Bilibili:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/Ruleset/Bilibili.list
path: ./ruleset/Bilibili.list
behavior: classical
interval: 86400
format: text
type: http
ChinaMedia:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/ChinaMedia.list
path: ./ruleset/ChinaMedia.list
behavior: classical
interval: 86400
format: text
type: http
ProxyMedia:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/ProxyMedia.list
path: ./ruleset/ProxyMedia.list
behavior: classical
interval: 86400
format: text
type: http
Proxy**list:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/Proxy**list.list
path: ./ruleset/Proxy**list.list
behavior: classical
interval: 86400
format: text
type: http
ChinaDomain:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/ChinaDomain.list
path: ./ruleset/ChinaDomain.list
behavior: domain
interval: 86400
format: text
type: http
ChinaCompanyIp:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/ChinaCompanyIp.list
path: ./ruleset/ChinaCompanyIp.list
behavior: ipcidr
interval: 86400
format: text
type: http
Download:
url: https://ghfast.top/https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/某科学软件/Download.list
path: ./ruleset/Download.list
behavior: classical
interval: 86400
format: text
type: http
规则列表
rules:
- RULE-SET,LocalAreaNetwork,DIRECT # 替换为通用DIRECT,避免自定义策略问题
- RULE-SET,UnBan,DIRECT
- RULE-SET,BanAD,DIRECT # 广告拦截建议也用DIRECT,拦截逻辑由规则集内部处理
- RULE-SET,BanProgramAD,DIRECT
- RULE-SET,GoogleFCM,📢 谷歌FCM
- RULE-SET,GoogleCN,DIRECT
- RULE-SET,SteamCN,DIRECT
- RULE-SET,Bing,Ⓜ️ 微软Bing
- RULE-SET,OneDrive,Ⓜ️ 微软云盘
- RULE-SET,Microsoft,Ⓜ️ 微软服务
- RULE-SET,Apple,🍎 苹果服务
- RULE-SET,Telegram,📲 电报消息
- RULE-SET,OpenAi,💬 OpenAi
- RULE-SET,NetEaseMusic,🎶 **音乐
- RULE-SET,Epic,🎮 游戏平台
- RULE-SET,Origin,🎮 游戏平台
- RULE-SET,Sony,🎮 游戏平台
- RULE-SET,Steam,🎮 游戏平台
- RULE-SET,Nintendo,🎮 游戏平台
- RULE-SET,**,📹 油管视频
- RULE-SET,Netflix,🎥 奈飞视频
- RULE-SET,Bahamut,📺 巴哈姆特
- RULE-SET,BilibiliHMT,📺 哔哩哔哩
- RULE-SET,Bilibili,📺 哔哩哔哩
- RULE-SET,ChinaMedia,DIRECT
- RULE-SET,ProxyMedia,🌍 国外媒体
- RULE-SET,Proxy**list,🚀 节点选择
- RULE-SET,ChinaDomain,DIRECT
- RULE-SET,ChinaCompanyIp,DIRECT
- RULE-SET,Download,DIRECT
- GEOIP,CN,DIRECT # 替换为通用DIRECT
- MATCH,🐟 漏网之鱼
|
|