跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[分享创造] 个人家庭内网服务以及网络方案分享

发表于

方案开销

  • Intel NUC12 华尔街峡谷 咸鱼买的 2700¥
  • 加了 1TB ssd 357¥
  • 域名 spaceship 买的 7.5¥
  • 小米智能插座 3 53¥
  • 其他都是自带或者开源实现

功耗情况

  • 目前看平均功耗在 15w-25w 左右,一天大概一度电用不到

网络方案

  • 因为没有公网 IP ,我们这 500M 移动宽带一年 230 ,电信要贵个三倍,整不起。总体思路是通过 Natter 项目打洞,把 ss 端口暴露在公网,然后手机和电脑通过分流软件连接 ss ,使用其他内网服务,具体见如下图: https://imgur.com/a/YWgiGqg 网络方案图

应用方案

  • 宿主机系统我搭了一个 Windows 防止不时之需,主系统是 archLinux 。因为平时 k8s 玩的比较多,所以就直接基于硬件搭建个 k8s 集群,这样应用搭建在上面,后续扩展迁移也很方便,同时我自己的应用也都用容器跑在上面,通过声明 yaml 进行管理。具体场景是半夜小米插座自动断电,早上自动启动,k8s 可以自己拉起应用。具体见下图: https://imgur.com/a/yGyLdcq 应用部署

熔断措施

  • 因为 Natter 打洞的不稳性,所以也弄了 cloudfare tunnel ,以应对不时之需

存在痛点

  • 重启过后,natter 端口会变化,需要手动更新手机分流 ss 的端口
  • 有什么地方不足,欢迎大家指正

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.