Repository navigation
Mini-Router v0.4.1
新内容 / What's new(v0.4.0 → v0.4.1)
IPv6 SLAAC 中继 / IPv6 relay for lines without PD (#160)
- 新选项
wan[].ipv6_relay(默认关闭,需要ipv6: true和lan.ipv6_ra: true):上游只给一个 SLAAC/64、没有 DHCPv6-PD 时,把这个/64通告到 LAN,LAN 设备直接用运营商的全局地址(不是 NAT66)。有 PD 时自动让位给 PD。 - 路由器按 LAN 邻居逐个代理地址:每分钟的 cron 先在 WAN 上探测(有人应答 = 上游占用,永不代理),结论记在
/run,钩子、apply、cron 都按同一份结论行事,只代理确认空闲的地址;最多 64 个,不加常驻进程。入站仍默认拒绝,开放端口照旧用firewall.ipv6_allow。 - 设备要先发一次 IPv6 流量才会被发现,之后约一到两分钟可达;LAN 设备不能直接访问上游同一
/64里的其它主机(互联网和其它网段不受影响)。目前在 router.yaml 或 API 里打开,网页暂无开关。 - New
wan[].ipv6_relay(off by default): relay an upstream SLAAC /64 to the LAN when there is no PD. LAN hosts are proxied one by one, only after a per-minute probe on the WAN found the address free (verdicts shared in /run); PD takes priority; inbound stays default-deny. Limitation: LAN hosts cannot reach upstream hosts inside the relayed /64.
首次向导:WiFi 国家码 / Wizard: WiFi country (#166)
- 有无线网卡时,首次向导要求选择 WiFi 国家码,按浏览器语言或时区给出建议并要求确认;国家码决定 5 GHz 可用信道和发射规则。
mr doctor在配置了射频却没设国家码时给出 warn(wifi.country),WiFi 页面也会提示。- The first-run wizard asks for the WiFi country (suggested from the browser language or time zone, confirmed by the user);
mr doctorwarns when radios are configured without a country.
实验室与文档 / Lab and docs (#163, #165)
tools/lab新场景 09:首次设置向导端到端(延迟安装、WAN 探测 PPPoE / DHCP / LAN 冲突、向导应用并确认、已安装的路由器不进向导);场景 08 覆盖 IPv6 中继。- README、install-alpine.md、flash.md 和 agent skill 跟上 v0.4:向导、WAN 探测、换环境、
require_public_ip、ipv6_relay、全新环境实验室,以及两种平台的升级步骤。 - Lab scenario 09 (first-run wizard end to end) and 08 (IPv6 relay); README, install and flash docs and the agent skill updated for v0.4, including upgrade steps.
升级说明 / Upgrade notes
-
ipv6_relay默认关闭,老配置不受影响:不打开时生成的所有文件与 v0.4.0 逐字节相同,mr plan应该没有差异(示例配置实测如此)。
ipv6_relayis off by default: with it off every generated file is byte-identical to v0.4.0, somr planshould show no changes. -
WiFi 国家码:已有配置留空国家码仍然有效、照常工作,只是
mr doctor多一条 warn;建议在 WiFi 页设上(之后mr plan、mr apply --confirm 120)。向导只在新装 / 恢复出厂后出现,升级不会弹出。
An existing config with no WiFi country still validates and works;mr doctornow warns about it. Set it on the WiFi page. Upgrades never start the wizard. -
Redmi AX6000:
/usr/libexec/mr/sysupgrade -T --sha256 <SHA256SUMS 里的值> /tmp/mini-router-ax6000-v0.4.1-sysupgrade.tar setsid /usr/libexec/mr/sysupgrade -y --sha256 <同上> /tmp/mini-router-ax6000-v0.4.1-sysupgrade.tar > /tmp/su.log 2>&1 &
约 2 分钟后回来,设置保留。Back in about 2 minutes with settings kept.
-
Alpine:把
mr-linux-<架构>装成/usr/sbin/mr、mini-router-rootfs.tar.gz解到/(不要重跑整个 install.sh),然后mr plan、mr apply --confirm 120;见 docs/install-alpine.md。
Alpine: replace/usr/sbin/mr, unpack the rootfs tarball over/(do not re-run the installer), thenmr planandmr apply --confirm 120.
安装 / Install
- 任意架构的 Alpine Linux(x86_64 / arm64 / armv7 / armv6 / x86 / riscv64 / ppc64le):
wget -O install.sh https://github.com/Cd1s/mini-router/releases/download/v0.4.1/install.sh && MR_VERSION=v0.4.1 sh install.sh
(预发布期间要写MR_VERSION=v0.4.1,否则 install.sh 下载的是 latest 那一版 / while this is a pre-release,MR_VERSION=v0.4.1is required)。
见 docs/install-alpine.md。 - Redmi AX6000(hanwckf 110M U-Boot 布局):
mini-router-ax6000-v0.4.1-sysupgrade.tar(刷机 / 升级)、-initramfs.cpio.xz、-kexec.tar.gz(从 OpenWrt 里先在内存试运行:Image、dtb、devmem、kexec-test.sh、initramfs)。见 docs/flash.md。镜像带 tailscaled 和 dstatus-agent(同 v0.4.0)。
文件 / Assets
SHA256SUMS 列出每个文件的校验值。