自己安装一点守护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.
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?
建议刷 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.
https://firmware-selector.openwrt.org/https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/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).
电脑连上这台路由器(网线或它的 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.
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.
https://gitee.com/xautlx/doti-kids-router/releaseshttps://github.com/xautlx/doti-kids-router/releases- 浏览器打开路由器管理页(LuCI,默认 192.168.1.1),登录。Open the router’s web admin (LuCI, default 192.168.1.1) and log in.
- 进入 系统 → 软件包,点 上传软件包…。Go to System → Software and click Upload Package….
- 选刚下载的文件,点 上传,再点 安装。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?”.
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:
手机连上它,打开微信小程序「一点守护」,按提示绑定路由器、给家长 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.
微信扫码打开小程序
+核对安装包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:
sha256sum doti-kids-router_all.ipkcertutil -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.10opkgopkgopkg update25.xapkapkapk 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.10sed -i 's_downloads.openwrt.org_mirrors.tuna.tsinghua.edu.cn/openwrt_' /etc/opkg/distfeeds.conf换清华镜像 · 25.xTsinghua mirror · 25.xsed -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 passwordPasswd4Doti, 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? Runpasswd— 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.