← 返回首页← Home
快速开始Quick Start

自己安装一点守护Install Doti yourself

家里有一台 OpenWrt 路由器,就能自己装上一点守护:跟着下面 4 步走,大约 10 分钟。命令和地址都有「复制」按钮,照着粘贴就行。Got a router running OpenWrt? You can install Doti yourself in 4 steps — about 10 minutes. Every command and address has a Copy button.

一台 OpenWrt 路由器(22.03 及以上)An OpenWrt router (22.03 or newer) 💻一台电脑A computer 📱一部装了微信的手机A phone with WeChat
遇到问题 · 加用户群
安装过程中遇到任何问题,随时微信扫码加入一点守护用户交流群,在群里问
长按识别二维码 · 二维码每周更新;扫不进时在小程序「一点守护」里联系客服
二维码加载中…
🎁
不想折腾?打开微信小程序「一点守护」,点「联系客服」,咨询当前是否可提供预装路由器或预装服务。Rather skip the tinkering? Open the “一点守护” mini program in WeChat, tap “Contact us” and ask whether a pre-installed router or installation service is currently available.

1确认路由器系统Check the router’s system

一点守护需要 OpenWrt 22.03 或更新的版本。在路由器管理页 状态 → 概览 看「固件版本」,或者 SSH 登录后执行:Doti needs OpenWrt 22.03 or newer. Check “Firmware Version” under Status → Overview in the web admin, or run this over SSH:

cat /etc/openwrt_release
原装系统不是 OpenWrt?Stock firmware isn’t OpenWrt?
? 基于新版 OpenWrt 的第三方或厂商固件? Third-party or vendor firmware built on recent OpenWrt如 ImmortalWrt 23.05、部分 GL.iNet 原装系统,一般能装,但没逐个测过:可以先按第 2、3 步试,安装报错再刷官方版。e.g. ImmortalWrt 23.05 or some GL.iNet stock firmware — usually fine but not tested model by model: try steps 2 and 3 first, and reflash official OpenWrt only if the install fails.
✕ 不是 OpenWrt 的原装系统、21.02 及更早✕ Non-OpenWrt stock firmware, 21.02 or older需要刷成官方 OpenWrt,方法见下面。Reflash official OpenWrt — see below.

建议刷 24.10 系列最新版(我们测过 24.10.8;它用 opkg 装软件,网上教程大多按它写)。25.x 改用 apk,也测过、同样支持。各型号刷机方法差别很大,请搜「型号 + OpenWrt 刷机」找教程。8MB 闪存、64MB 内存的老机器(比如斐讯 K2)也能装,装之前剩余空间至少 800KB。We recommend the latest 24.10 release (tested on 24.10.8; it uses opkg, which most guides assume). 25.x uses apk and is supported too. Flashing differs a lot by model — search “your model + OpenWrt install”. Even old 8 MB flash / 64 MB RAM routers (e.g. Phicomm K2) work; keep at least 800 KB free before installing.

查型号、下固件Find your model & firmwareOpenWrt 官方固件选择器(版本里选 24.10)official firmware selector (pick 24.10)
https://firmware-selector.openwrt.org/
国内镜像Mirror in China官方站下载慢时用,清华大学开源镜像站Tsinghua University mirror
https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/
⚠️
刷机有把路由器刷坏(变砖)的风险,建议用闲置的旧路由器,别拿家里正在用的那台试。Flashing can brick a router. Use a spare one, not the router your family relies on.

2接好路由器,用电脑登录Connect it and log in from a computer

用网线把光猫或原来路由器的 LAN 口,接到 OpenWrt 路由器的 WAN 口。原来的 WiFi 不受影响,家里其他设备照常用。接下来让电脑连这台 OpenWrt 路由器(网线插它的 LAN 口,或连它的 WiFi)。Run a cable from a LAN port on your modem or existing router to the WAN port of the OpenWrt router. Your existing WiFi isn’t affected. Then connect your computer to this OpenWrt router (cable into its LAN port, or join its WiFi).

光猫 / 原来的路由器 · LANModem / router · LAN──网线──WAN · 一点守护路由器WAN · Doti router

电脑连上这台路由器(网线或它的 WiFi),SSH 登录:Windows 打开 PowerShell,Mac 打开「终端」,执行下面的命令(地址按你的路由器改,OpenWrt 默认是 192.168.1.1):Connect your computer to this router (cable or its WiFi) and SSH in — PowerShell on Windows, Terminal on Mac (OpenWrt’s default address is 192.168.1.1):

ssh root@192.168.1.1
  • 第一次登录会问 Are you sure you want to continue connecting,输入 yes 回车。First time, it asks Are you sure you want to continue connecting — type yes and press Enter.
  • 新装的 OpenWrt 默认没有密码,问密码时直接回车;自己设过的就输入那个密码(输入时屏幕上不显示)。A fresh OpenWrt has no password by default — just press Enter; otherwise type yours (it won’t show on screen).
  • 看到 root@OpenWrt 开头的提示,就是登录成功了。A prompt starting with root@OpenWrt means you’re in.
  • 连不上:光猫或原来的路由器也是 192.168.1.1 时会冲突。先拔掉这台路由器 WAN 口的网线,让电脑只连这台路由器再试;想一劳永逸,可以在管理页 网络 → 接口 把它的 LAN 地址改成 192.168.2.1 之类,再插回网线;改完电脑断开重连一次,以后都用新地址登录。Can’t connect? If your modem or old router is also 192.168.1.1 they clash. Unplug the cable from this router’s WAN port, keep your computer connected to this router and try again; for good, change its LAN address under Network → Interfaces to something like 192.168.2.1, plug the cable back in, reconnect your computer and use the new address from then on.
⏱️
路由器刚开机时,网络要一两分钟才就绪,稍等再进行下一步。Right after a reboot, give the router a minute or two before the next step — its network is still coming up.

3一条命令安装一点守护Install Doti with one command

还在刚才的 SSH 里,执行下面这条命令。它会检查系统、自动补装需要的组件、下载最新版对应的安装包(22.03–24.10 用 ipk,25.x 用 apk)、校验后装好,升级程序也会自动补装:In the same SSH session, run this. It checks the system, fetches any missing components, downloads the right package for it (ipk for 22.03–24.10, apk for 25.x), verifies and installs it; the updater installs itself too:

cd /tmp && wget -O install.sh https://gitee.com/xautlx/doti-kids-router/raw/main/install.sh && sh install.sh
⏱️
一般半分钟左右装好。如果提示软件源更新失败或缺组件,见常见问题「安装时提示软件源更新失败、缺组件?」。
装不上?扫码进用户群问 ↑
It usually takes about half a minute. If it says the feed update failed or a component is missing, see the FAQ “Feed update failed or a component missing?”.

不想用命令行,就用电脑下载 doti-kids-router_all.ipk(在下面任一发布页的最新版里),再到路由器管理页上传。只适用于 22.03–24.10:25.x 的管理页只装有官方签名的包,请用上面的命令装。Prefer not to use the command line? Download doti-kids-router_all.ipk from the latest release on either page and upload it in the web admin. 22.03–24.10 only: on 25.x the web admin only installs officially signed packages, so use the command above.

gitee 发布页gitee releases国内下载快faster in China
https://gitee.com/xautlx/doti-kids-router/releases
GitHub 发布页GitHub releases
https://github.com/xautlx/doti-kids-router/releases
  1. 浏览器打开路由器管理页(LuCI,默认 192.168.1.1),登录。Open the router’s web admin (LuCI, default 192.168.1.1) and log in.
  2. 进入 系统 → 软件包,点 上传软件包…。Go to System → Software and click Upload Package….
  3. 选刚下载的文件,点 上传,再点 安装。Choose the file, click Upload, then Install.

如果上传后提示缺组件,在 系统 → 软件包 点「更新列表」后再装一次,仍不行见常见问题「安装时提示软件源更新失败、缺组件?」。If it reports a missing component after uploading, click “Update lists” on System → Software and install again; if that doesn’t help, see the FAQ “Feed update failed or a component missing?”.

✅
装好后,管理页 服务 → 一点守护 能看到安装成功、当前版本和最近更新时间。Once installed, Services → 一点守护 in the web admin shows the installed version and last update time.

4手机连上家长 WiFi,用小程序绑定Pair your phone in WeChat

装好 1–2 分钟后,会出现路由器的家长 WiFi,还没绑定时不用密码:1–2 minutes after installing, the router’s parents’ WiFi appears — no password until it’s paired:

DOTI-XXXX-ADMIN
⏱
这个无密码的家长 WiFi 默认只开放 30 分钟,到时自动关闭。不用着急:错过了就把路由器断电再开,会重新开放 30 分钟。为什么这么设计?方便与安全的两头兼顾:新安装程序还没绑定时故意不设密码,是为了装好拿手机一连就能绑,不用先去路由器后台找密码、抄密码。但开放的 WiFi 谁都能连,一直开着就容易被其他人连上蹭网,甚至会有安全风险。所以只开 30 分钟,想再开得断电重启路由器——能碰到路由器的,基本就是它的主人。绑定时会给它设上密码,之后就是普通的加密 WiFi。This password-free parents’ WiFi stays open for 30 minutes by default, then closes on its own.No rush: if you miss it, power-cycle the router and it opens for another 30 minutes.Why this design? Convenience and safety, both:It has no password before pairing so you can just join it on your phone and pair — no digging through the router admin for a password. But anyone can join an open WiFi — left open, others could hop on and use it, or worse, pose a security risk. So it opens for 30 minutes, and reopening needs a power cycle — whoever can reach the router is almost certainly its owner. Pairing then sets a password, and from there it’s an ordinary encrypted WiFi.

手机连上它,打开微信小程序「一点守护」,按提示绑定路由器、给家长 WiFi 设个密码就好了;孩子的 WiFi 进小程序后按引导再连。Join it on your phone, open the “一点守护” mini program in WeChat, and follow the prompts to pair the router and give the parents’ WiFi a password; the mini program then walks you through connecting the kids’ devices.

第 4 步 · 打开小程序绑定
手机连上家长 WiFi 后,
微信扫码打开小程序
或者微信里搜索「一点守护」Search WeChat for “一点守护”
✅
XXXX 是路由器的 4 位编号,安装完成时命令行里会显示完整名字;一开始不用密码,绑定时会给它设上密码,名字不变。XXXX is the router’s 4-character code — the install command prints the full name when it finishes. It starts with no password; pairing adds one and keeps the name.
🔑
路由器管理页的 root 密码:原来没设的,绑定后自动设成家长 WiFi 密码,以后改家长 WiFi 密码时一起改;自己设过的不动。家长 WiFi 密码随时能在小程序「路由器」页查看,它也是路由器管理页的密码。Router admin (root) password: if you never set one, pairing sets it to the parents’ WiFi password and keeps it in step when you change that password; one you set yourself is left alone. You can look up the parents’ WiFi password any time on the mini program’s Router page — it’s also the router admin password.
👉
接下来:跟着小程序给每个孩子设好 WiFi 和规则,孩子的手机、平板、电视连上自己的 WiFi,就开始管理了。Next: follow the mini program to set up each kid’s WiFi and rules. Once their phones, tablets and TVs join their own WiFi, Doti takes it from there.

+核对安装包Verify the package给技术用户 · 可选optional

安装包由 GitHub Actions 从公开代码自动构建,发布页附有 SHA256SUMS。算一下下载文件的 SHA256,和它一致就说明是公开构建的同一个文件:Packages are built by GitHub Actions from the public code, and each release ships a SHA256SUMS file. If your download’s SHA256 matches, it’s the exact file built in public:

路由器上 / Mac / LinuxRouter / Mac / Linux
sha256sum doti-kids-router_all.ipk
Windows
certutil -hashfile doti-kids-router_all.ipk SHA256

也可以下载源码,执行 python3 build.py 自己打包,得到的文件和发布页的一模一样。You can also build it yourself with python3 build.py from the source — you’ll get a byte-identical file.

?常见问题FAQ

一点守护是什么?What is Doti?
一点守护是装在 OpenWrt 路由器上的孩子上网时间管理插件。孩子的手机、平板连单独的孩子 WiFi,开始用才计时,用满一轮(比如 30 分钟)网速自动降下来,歇够一段(比如 60 分钟)自动恢复;到点只限速不断网,回消息、查资料还能用。家长在微信小程序「一点守护」里管理,在家、在外面都能管,孩子设备上什么都不用装。Doti is a screen-time package for OpenWrt routers. Kids’ phones and tablets join their own Wi-Fi; the clock starts when they start, the speed drops after one round (say 30 minutes) and comes back after a rest (say 60 minutes). Time’s up only slows things down — messages and homework lookups still work. Parents manage it from the WeChat mini program “一点守护”, at home or away, with nothing installed on the kids’ devices.
和路由器自带的家长控制、定时断网有什么不同?How is this different from the router’s own parental controls or scheduled cut-offs?
路由器自带的家长控制大多按「几点到几点能上网」或到点断网来管,适合作息固定的家庭。一点守护换了个思路:不规定时段,孩子什么时候开始用就从什么时候计时,「用一会儿、歇一会儿」自动轮换;到点只是变慢,不会正聊着天就被掐断,家长也不用当那个喊停的人。需要固定作息的,睡觉、吃饭、网课时段也能单独安排。Most built-in parental controls work by time slots (“online from X to Y”) or a hard cut-off, which suits families with a fixed routine. Doti takes another route: no slots, the clock starts when the kids start, and “use a while, rest a while” rotates on its own. Time’s up only slows things down, so nobody gets cut off mid-chat and the parent doesn’t have to be the one saying stop. Bedtime, meals and online classes can still get their own fixed schedule.
孩子有好几台设备,换着用能绕过去吗?Can kids get around it by switching devices?
不能。一点守护按孩子管,不按设备管:同一个孩子 WiFi 下的手机、平板、电脑合在一起算时长,手机到点换平板也一样慢。最多三个孩子 WiFi,各用各的规则;家长 WiFi 不受限。No. Doti times each kid, not each device: the phone, tablet and computer on one kid’s Wi-Fi share one clock, so switching from the phone to the tablet doesn’t help. Up to three kids’ Wi-Fi networks, each with its own rules; the parents’ Wi-Fi is never limited.
支持哪些路由器?Which routers does it support?
官方 OpenWrt 22.03 及以上都能装(依赖 firewall4 / nftables);纯脚本,和 CPU 架构无关,8MB 闪存的老路由器也能装(安装前剩余空间至少 800KB)。实测过斐讯 K2P(OpenWrt 22.03、24.10、25.12)和斐讯 K2(24.10);ImmortalWrt 等基于新版 OpenWrt 的固件一般也能装。原装系统不是 OpenWrt 的,见第 1 步。Official OpenWrt 22.03 or later (it needs firewall4 / nftables). It’s pure script, so any CPU architecture works, even 8 MB-flash routers (at least 800 KB free before installing). Tested on the Phicomm K2P (OpenWrt 22.03, 24.10, 25.12) and Phicomm K2 (24.10); ImmortalWrt and other firmware based on recent OpenWrt usually work too. Stock firmware isn’t OpenWrt? See step 1.
会看孩子上了哪些网站吗?Does it see which sites kids visit?
不会。一点守护只管网速和时长,不记录孩子访问了哪些网站。成人、赌博、诈骗网站始终屏蔽;游戏、短视频和直播、影视网站可以按孩子单独选择屏蔽。在家时手机直接和路由器通信,管理操作不经过云端;WiFi 密码只存在路由器和你们自己的设备上。No. Doti manages speed and duration only and never records which sites kids visit. Adult, gambling and scam sites are always blocked; games, short video & live streaming and films & series can be blocked per kid. At home your phone talks to the router directly and management skips the cloud; Wi-Fi passwords stay on the router and your own devices.
有什么管不到的?What can’t it do?
路由器只能管连着它的 WiFi:孩子的手机用自己的流量卡上网时管不到,这时要配合手机自带的屏幕使用时间。一点守护也不按 App 单独计时,管的是总的上网时长和节奏。A router only manages devices on its Wi-Fi: when a kid’s phone uses mobile data, Doti can’t see it — pair it with the phone’s own screen-time settings. Doti also doesn’t time individual apps; it manages overall time online and the rhythm of use.
安装时提示软件源更新失败、缺组件?Feed update failed or a component missing?

安装时要从软件源下载一个小组件(包名 mosquitto-client-nossl,远程管理用),安装脚本会先试国内镜像、再用系统软件源自动补装。都连不上时,先确认路由器能上网,再按系统版本手动更新一次:The install fetches a small component from the package feeds (package mosquitto-client-nossl, used for remote management); the script tries a mirror in China first, then the system feeds. If neither works, check the router is online, then update the feeds by hand for your release:

22.03–24.10opkgopkg
opkg update
25.xapkapk
apk update

输出里没有 Failed、ERROR 就算通过(opkg 每个软件源都显示 Signature check passed;apk 正常列完即可),然后重新执行安装命令。还是失败的话,国内网络把软件源换成清华镜像(按版本选一条),再更新一次:It passed if there’s no Failed or ERROR (opkg shows Signature check passed for each feed; apk just finishes listing them) — then run the install command again. Still failing in China? Switch the feeds to the Tsinghua mirror (pick the line for your release) and update again:

换清华镜像 · 22.03–24.10Tsinghua mirror · 22.03–24.10
sed -i 's_downloads.openwrt.org_mirrors.tuna.tsinghua.edu.cn/openwrt_' /etc/opkg/distfeeds.conf
换清华镜像 · 25.xTsinghua mirror · 25.x
sed -i 's_downloads.openwrt.org_mirrors.tuna.tsinghua.edu.cn/openwrt_' /etc/apk/repositories.d/distfeeds.list

装不上?扫码进用户群问 ↑

安装命令报错、装不上?The install command fails?
软件源相关的报错见上一条;剩余空间不足 800KB 的路由器也装不了;第三方或厂商固件装不上时,见第 1 步「原装系统不是 OpenWrt?」。For feed-related errors, see the previous question. Routers with under 800 KB free can’t install it. If third-party or vendor firmware won’t take it, see “Stock firmware isn’t OpenWrt?” in step 1.
搜不到 DOTI-XXXX-ADMIN?Can’t see DOTI-XXXX-ADMIN?
装好后要等 1–2 分钟;超过 30 分钟没绑定会自动关闭,把路由器断电再开就会重新出现。Give it 1–2 minutes after installing. It closes after 30 minutes if unpaired — power-cycle the router to bring it back.
装好后进路由器后台要密码?The router admin asks for a password after installing?
自己刷机安装、root 原来没设密码的,不用密码的家长 WiFi 开放的这 30 分钟里,路由器后台(LuCI / SSH)的 root 临时用默认密码 Passwd4Doti,免得连上家长 WiFi 的人直接进后台;家长 WiFi 关闭后恢复原样(空密码)。绑定后 root 密码换成家长 WiFi 密码。想用自己的密码可以执行 passwd 修改,自己改过的不会被动。If you installed it yourself and root had no password, then while the password-free parents’ Wi-Fi is open (those 30 minutes) the router admin (LuCI / SSH) temporarily uses the default root password Passwd4Doti, so whoever joins that Wi-Fi can’t walk straight into the admin. Once the parents’ Wi-Fi closes, root goes back to how it was (no password). After pairing, the root password becomes the parents’ Wi-Fi password. Want your own? Run passwd — a password you set yourself is never touched.

遇到问题?Need help?

安装遇到问题,扫页面上方的二维码进用户群在群里问;也可以在小程序「一点守护」里点「联系客服」,或者到开源仓库提问。Tap “Contact us” in the 一点守护 mini program, or open an issue in the repository. If it won’t install or you’d rather not bother, ask us whether a pre-installed router or installation service is currently available.