前言
NAS软件方面,我觉得最重要的有两个:远程访问要速度快,和方便的资源下载。
网络类:
Mihomo(Clash meta猫咪代理)
Cloudflared 隧道
Tailscale 异地组网
影视类:
Emby影视管理🔞
ellyfin媒体服务器 影视管理
Ani-rss 追番神器
arr套件:
下载类:
迅雷
qbittorrent 磁力链下载
百度网盘
功能类:
飞牛桌面管理工具
FnDepot 第三方软件商城
watchCow docker转软件
Fntermx终端
智能家居:
HomeAssistant 智能家居
没有什么是Docker解决不了的,如果有 那就用命令。
正文
Docker项目几乎全部使用Docker-compose创建,方便维护。例如飞牛os:打开桌面的Docker----点击Compose-----新增项目-----路径选择一个统一管理的目录----创建docker-compose.yml-----粘贴文章里的Docker-compose代码进去
网络类
隧道和异地组网请自行选择,有公网ip就不需要这么麻烦,猫咪几乎是必须的。
Mihomo
Docker-compose文件:
1version: '3'
2
3services:
4 mihomo:
5 image: metacubex/mihomo:latest
6 container_name: mihomo
7 restart: always
8 ports:
9 - '9090:9090' # WebUI 访问端口
10 network_mode: host # 使用主机模式,小白部署最稳
11 pid: host
12 ipc: host
13 volumes:
14 - /vol3/1000/Docker/mihomo:/root/.config/mihomo # 这里的路径需对应你实际的 NAS 路径
15 labels:
16 watchcow.enable: "true"
17 watchcow.path: "/ui"
18 watchcow.display_name: "ClashX"
19 watchcow.icon: "file://./icon.png"
20 cap_add:
21 - NET_ADMIN
22 devices:
23 - /dev/net/tun:/dev/net/tun
你的docker目录/mihomo/config.yaml:
1mixed-port: 7890
2allow-lan: true
3bind-address: '*'
4mode: rule
5log-level: info
6external-controller: '0.0.0.0:9090'
7external-ui: ui
8
9tun:
10 enable: false
11 stack: mixed
12 dns-hijack:
13 - "any:53"
14 - "tcp://any:53"
15 auto-route: true
16 auto-redirect: true
17 auto-detect-interface: true
18
19proxy-providers:
20 jsjc:
21 url: "https://jsjc.cfd/api/v1/client/subscribe?token=3f622c3f92ed8c66a0e20533c9018e9f"
22 type: http
23 interval: 86400
24 health-check: {enable: true,url: "https://www.gstatic.com/generate_204", interval: 300}
25 override: {}
26
27proxies:
28 - name: "直连"
29 type: direct
30 udp: true
31
32geodata-mode: true
33geox-url:
34 geoip: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.dat"
35 geosite: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat"
36 mmdb: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/country-lite.mmdb"
37 asn: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/GeoLite2-ASN.mmdb"
38
39dns:
40 enable: true
41 ipv6: true
42 respect-rules: true
43 enhanced-mode: fake-ip
44 fake-ip-filter:
45 - "*"
46 - "+.lan"
47 - "+.local"
48 - "+.market.xiaomi.com"
49 nameserver:
50 - https://120.53.53.53/dns-query
51 - https://223.5.5.5/dns-query
52 proxy-server-nameserver:
53 - https://120.53.53.53/dns-query
54 - https://223.5.5.5/dns-query
55 nameserver-policy:
56 "geosite:cn,private":
57 - https://120.53.53.53/dns-query
58 - https://223.5.5.5/dns-query
59 "geosite:geolocation-!cn":
60 - "https://dns.cloudflare.com/dns-query"
61 - "https://dns.google/dns-query"
62
63proxy-groups:
64
65 - name: 默认
66 type: select
67 proxies: [自动选择,直连,香港,台湾,日本,新加坡,美国,其它地区,全部节点]
68
69 - name: Google
70 type: select
71 proxies: [默认,香港,台湾,日本,新加坡,美国,其它地区,全部节点,自动选择,直连]
72
73 - name: Telegram
74 type: select
75 proxies: [默认,香港,台湾,日本,新加坡,美国,其它地区,全部节点,自动选择,直连]
76
77 - name: Twitter
78 type: select
79 proxies: [默认,香港,台湾,日本,新加坡,美国,其它地区,全部节点,自动选择,直连]
80
81 - name: 哔哩哔哩
82 type: select
83 proxies: [默认,香港,台湾,日本,新加坡,美国,其它地区,全部节点,自动选择,直连]
84
85 - name: 巴哈姆特
86 type: select
87 proxies: [默认,香港,台湾,日本,新加坡,美国,其它地区,全部节点,自动选择,直连]
88
89 - name: YouTube
90 type: select
91 proxies: [默认,香港,台湾,日本,新加坡,美国,其它地区,全部节点,自动选择,直连]
92
93 - name: 海外AI
94 type: select
95 proxies: [默认,香港,台湾,日本,新加坡,美国,其它地区,全部节点,自动选择,直连]
96
97 - name: NETFLIX
98 type: select
99 proxies: [默认,香港,台湾,日本,新加坡,美国,其它地区,全部节点,自动选择,直连]
100
101 - name: Spotify
102 type: select
103 proxies: [默认,香港,台湾,日本,新加坡,美国,其它地区,全部节点,自动选择,直连]
104
105 - name: Github
106 type: select
107 proxies: [默认,香港,台湾,日本,新加坡,美国,其它地区,全部节点,自动选择,直连]
108
109 - name: 国内
110 type: select
111 proxies: [直连,默认,香港,台湾,日本,新加坡,美国,其它地区,全部节点,自动选择]
112
113 - name: 其他
114 type: select
115 proxies: [默认,香港,台湾,日本,新加坡,美国,其它地区,全部节点,自动选择,直连]
116
117 #分隔,下面是地区分组
118 - name: 香港
119 type: select
120 include-all: true
121 filter: "(?i)港|hk|hongkong|hong kong"
122
123 - name: 台湾
124 type: select
125 include-all: true
126 filter: "(?i)台|tw|taiwan"
127
128 - name: 日本
129 type: select
130 include-all: true
131 filter: "(?i)日|jp|japan"
132
133 - name: 美国
134 type: select
135 include-all: true
136 filter: "(?i)美|us|unitedstates|united states"
137
138 - name: 新加坡
139 type: select
140 include-all: true
141 filter: "(?i)(新|sg|singapore)"
142
143 - name: 其它地区
144 type: select
145 include-all: true
146 filter: "(?i)^(?!.*(?:🇭🇰|🇯🇵|🇺🇸|🇸🇬|🇨🇳|港|hk|hongkong|台|tw|taiwan|日|jp|japan|新|sg|singapore|美|us|unitedstates)).*"
147
148 - name: 全部节点
149 type: select
150 include-all: true
151
152 - name: 自动选择
153 type: url-test
154 include-all: true
155 tolerance: 10
156
157rules:
158 - GEOIP,lan,直连,no-resolve
159 - GEOSITE,twitter,Twitter
160 - GEOSITE,youtube,YouTube
161 - GEOSITE,category-ai-!cn,海外AI
162 - GEOSITE,github,Github
163 - GEOSITE,google,Google
164 - GEOSITE,telegram,Telegram
165 - GEOSITE,netflix,NETFLIX
166 - GEOSITE,bilibili,哔哩哔哩
167 - GEOSITE,bahamut,巴哈姆特
168 - GEOSITE,spotify,Spotify
169 - GEOSITE,CN,国内
170 - GEOSITE,geolocation-!cn,其他
171
172 - GEOIP,CN,国内
173 - MATCH,其他
Cloudflared 隧道
Tailscale 异地组网
影视类
下载类
功能类
智能家居
网络类
异地组网(Tailscale)代理(Mihomo)隧道(Cloudflared)