172 字
1 分钟
Mihomo 玩 Tailscale 内网
起因: 懒的每次打开 sunpanel 导航都要输密码
解决方案:
- 把 sunpanel 的用户设为 public,则不需要登陆了
- 把 sunpanel 的服务绑定在 tailscale 上,不暴露公网
- 在 tailscale 官网后台,新建一个 service 叫 sunpanel,endpoint 为 tcp:443
- 在服务器上运行
tailscale serve --service=svc:sunpanel --https 443 127.0.0.1:13002假设服务在 13002 端口 - 然后你就可以浏览器访问 https://sunpanel.xxxxxx.ts.net 了,ssl 证书自动搞定
- 如果不想开 tailscale,还有个办法就是在 mihomo 中添加一个 node,填入自己 tailscale 的 auth-key,然后做好分流规则(ip 和 domain 都要),再加上一条 dns 规则
- 于是只要开着 mihomo,就能无缝访问 tailscale 内网了。